/* Строки 1-9 */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #7C3AED;
    --primary-light: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --secondary-dark: #DB2777;

    /* Status Colors */
    --success: #10B981;
    --info: #3B82F6;
    --info-dark: #2563EB;
    --warning: #F59E0B;
    --warning-dark: #D97706;
    --error: #EF4444;

    /* Neutrals */
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --gradient-primary-hover: linear-gradient(135deg, #6D28D9 0%, #DB2777 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 14px 0 rgba(124, 58, 237, 0.25);
    --shadow-primary-hover: 0 8px 20px 0 rgba(124, 58, 237, 0.35);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px !important;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 70px 0;
    background: #ffffff;
    overflow: hidden;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-subtitle {
    color: #7C3AED;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 14px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
}

.features-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.features-description {
    font-size: 20px;
    color: #6B7280;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Content */
.features-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

/* Features Menu */
.features-menu {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: white;
    transform: translateZ(0);
    will-change: transform, background-color, border-color;
}

.feature-item:hover {
    background: #F9FAFB;
    transform: translateX(4px);
}

.feature-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-color: rgba(124, 58, 237, 0.2);
}

.feature-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #7C3AED 0%, #EC4899 100%);
    border-radius: 0 4px 4px 0;
}

/* Feature Header */
.feature-header {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-item.active .feature-icon {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.25);
}

.feature-info {
    flex: 1;
}

.feature-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.feature-item.active .feature-name {
    color: #7C3AED;
}

.feature-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

/* Chevron Icon */
.chevron-icon {
    width: 20px;
    height: 20px;
    color: #9CA3AF;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    margin-left: 8px;
    align-self: center;
    transform: translateZ(0);
}

.feature-item.active .chevron-icon {
    color: #7C3AED;
}

.feature-item:hover .chevron-icon {
    color: #6B7280;
}

.feature-item.active:hover .chevron-icon {
    color: #6D28D9;
}

/* Mobile Containers */
.mobile-feature-container {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    transform: translateZ(0);
    will-change: max-height;
}

.mobile-feature-container.active {
    max-height: 620px;
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    margin-bottom: 16px;
    overflow: visible;
}

/* Feature Display */
.feature-display {
    position: relative;
    height: 560px;
    perspective: 1000px;
}

.feature-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, visibility;
}

.feature-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.feature-screen.hiding {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mock Dashboard Styles */
.dashboard-mock {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.dash-header {
    height: 60px;
    background: #1F2937;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    flex-shrink: 0;
}

.dash-nav {
    display: flex;
    gap: 24px;
}

.dash-nav-item {
    color: #9CA3AF;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.dash-nav-item:hover {
    color: white;
}

.dash-nav-item.active {
    color: white;
}

.dash-content {
    flex: 1;
    padding: 32px;
    background: #F9FAFB;
    overflow: auto;
    min-height: 0;
}

.dash-footer {
    height: 48px;
    background: #F3F4F6;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    font-size: 12px;
    color: #6B7280;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-divider {
    width: 1px;
    height: 16px;
    background: #D1D5DB;
}

/* ===== REPRICER SCREEN STYLES ===== */
.repricer-screen .dash-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 22px;
}

.repricer-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
    padding: 0;
    width: 100%;
}

.repricer-main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    flex: 1;
    align-items: start;
}

.repricer-product-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
    position: relative;
    height: fit-content;
}

.repricer-processor-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
    z-index: 10;
}

.repricer-processor-logo {
    font-size: 11px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.repricer-product-image {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.repricer-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.repricer-product-info {
    text-align: center;
    margin-bottom: 12px;
}

.repricer-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.repricer-product-sku {
    font-size: 11px;
    color: var(--gray-500);
    font-family: 'WB combo VF Variable', sans-serif;
}

.repricer-action-message {
    background: #D1FAE5;
    color: #059669;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.repricer-action-message svg {
    width: 14px;
    height: 14px;
    fill: #059669;
}

.repricer-results-section {
    background: white;
    width: 100%;
    border-radius: 16px;
    padding: 38px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: fit-content;
}

.repricer-main-price-block {
    text-align: center;
    margin-bottom: 24px;
}

.repricer-price-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.repricer-main-price {
    font-size: 46px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
    transition: color 0.2s ease;
    will-change: color;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.repricer-price-note {
    font-size: 12px;
    color: var(--gray-400);
}

.repricer-price-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0 0 0;
    border-top: 1px solid #f0f0f0;
    position: relative;
}

.repricer-range-point {
    text-align: center;
}

.repricer-range-value {
    font-size: 26px;
    font-weight: 700;
}

.repricer-range-value.max {
    color: var(--primary);
}

.repricer-range-label {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Mobile elements (скрыты по умолчанию) */
.repricer-mobile-header,
.repricer-mobile-results {
    display: none;
}

/* Margin Slider */
.repricer-margin-slider-container {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 12px 8px 12px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.repricer-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.repricer-slider-label {
    padding-left: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    flex: 1;
    min-width: 0;
}

.repricer-margin-display-minimal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding-right: 12px;
    position: relative;
}

.repricer-margin-value {
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: color 0.15s ease;
    will-change: color;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.repricer-margin-sublabel {
    font-size: 9px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: -2px;
}

.repricer-slider-wrapper {
    position: relative;
    padding: 14px 12px 6px 12px;
}

.repricer-slider-track {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.repricer-slider-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.1s ease;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.2);
}

.repricer-slider-thumb {
    width: 22px;
    height: 22px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.repricer-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
}

.repricer-slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.repricer-slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 8px;
    position: relative;
    height: 22px;
}

.repricer-marker {
    font-size: 11px;
    color: var(--gray-400);
    position: relative;
    bottom: 0;
    font-weight: 500;
}

.repricer-marker.min-marker,
.repricer-marker.target-marker {
    position: absolute;
    font-weight: 600;
    transform: translateX(-50%) translateZ(0);
    bottom: 0;
    min-width: 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 0 4px;
    border-radius: 4px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.repricer-marker.min-marker {
    color: var(--warning);
    left: 30%;
}

.repricer-marker.target-marker {
    color: var(--primary);
    left: 50%;
}

/* ===== ANALYTICS SCREEN STYLES ===== */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stat-card:hover {
    border-color: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-card.primary {
    border-color: rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
}

.stat-card.primary:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    height: 20px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 32px;
    margin-bottom: 8px;
}

.stat-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    opacity: 0.6;
}

.stat-chart svg {
    width: 100%;
    height: 100%;
}

.analytics-screen .dash-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(180deg, #7C3AED 0%, #EC4899 100%);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    height: 0;
    transition: height 0.6s ease-out, opacity 0.6s ease-out;
}

.chart-container.animate .chart-bar {
    opacity: 1;
}

.chart-container.animate .chart-bar:nth-child(1) { 
    height: 60%; 
    transition-delay: 0.1s; 
}
.chart-container.animate .chart-bar:nth-child(2) { 
    height: 80%; 
    transition-delay: 0.2s; 
}
.chart-container.animate .chart-bar:nth-child(3) { 
    height: 45%; 
    transition-delay: 0.3s; 
}
.chart-container.animate .chart-bar:nth-child(4) { 
    height: 90%; 
    transition-delay: 0.4s; 
}
.chart-container.animate .chart-bar:nth-child(5) { 
    height: 70%; 
    transition-delay: 0.5s; 
}
.chart-container.animate .chart-bar:nth-child(6) { 
    height: 85%; 
    transition-delay: 0.6s; 
}
.chart-container.animate .chart-bar:nth-child(7) { 
    height: 55%; 
    transition-delay: 0.7s; 
}
.chart-container.animate .chart-bar:nth-child(8) { 
    height: 95%; 
    transition-delay: 0.8s; 
}

/* ===== ORDERS SCREEN STYLES ===== */
.orders-screen .dash-content {
    padding: 0 !important;
    background: #F9FAFB;
}

.orders-section {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 0;
}

.orders-content {
    padding: 20px;
}

.orders-table-header {
    display: grid;
    grid-template-columns: 1fr 125px 140px;
    gap: 24px;
    padding: 0 20px 16px;
    border-bottom: 2px solid #F3F4F6;
    margin-bottom: 16px;
    align-items: center;
}

.orders-table-header > div {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.orders-table-header > div:first-child {
    padding-left: 64px;
}

.orders-table-header > div:nth-child(2) {
    text-align: center;
}

.orders-table-header > div:last-child {
    text-align: right;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr 110px 140px;
    gap: 24px;
    padding: 20px;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-item:hover {
    background: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.order-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.product-image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.product-image.sweater {
    background-image: url('../assets/img/sweater.jpg');
}

.product-image.samsung {
    background-image: url('../assets/img/samsung-phone.jpg');
}

.product-image.airfryer {
    background-image: url('../assets/img/airfryer.jpg');
}

.product-image.jeans {
    background-image: url('../assets/img/jeans.jpg');
}

.order-product-info {
    flex: 1;
    min-width: 0;
}

.order-product-name,
.mobile-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-details {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-sku,
.mobile-product-sku {
    font-size: 12px;
    color: #9CA3AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'WB combo VF Variable', sans-serif;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.25px;
    white-space: nowrap;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid;
    transition: all 0.2s ease;
    cursor: default;
}

.status-badge.delivered {
    background-color: #b0ffc0;
    color: #115c4a;
    border-color: #b0ffc0;
}

.status-badge.delivered:hover {
    background-color: #a0f5b0;
    border-color: #a0f5b0;
}

.status-badge.processing {
    background-color: #d6ebff;
    color: #184e6e;
    border-color: #d6ebff;
}

.status-badge.processing:hover {
    background-color: #c6dbf0;
    border-color: #c6dbf0;
}

.status-badge.pending {
    background-color: #ffe7d7;
    color: #d85b00;
    border-color: #ffe7d7;
}

.status-badge.pending:hover {
    background-color: #ffd7c7;
    border-color: #ffd7c7;
}

.order-profit {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.profit-amount,
.mobile-profit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
}

.profit-amount.negative,
.mobile-profit-amount.negative {
    color: #EF4444;
}

.order-mobile {
    display: none;
}

.mobile-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.mobile-product-info {
    flex: 1;
    min-width: 0;
}

.mobile-order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mobile-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== LOSSES SCREEN STYLES ===== */
.loss-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

@media (max-width: 768px) { 
.loss-title {    
    font-size: 16px;
}}

.pricing-badge-title {
    all: unset; /* сброс всех стандартных стилей h2 */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}


.loss-summary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.loss-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.loss-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.loss-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loss-period {
    font-size: 16px;
    color: #6B7280;
}

.loss-additional {
    margin-top: 8px;
}

.compensated-note {
    font-size: 14px;
    color: #16A34A;
    font-weight: 500;
    background: rgba(22, 163, 74, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.loss-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.loss-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.loss-action:hover::before {
    left: 100%;
}

.loss-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.loss-action:active {
    transform: translateY(0);
}

.loss-category {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
    margin-bottom: 12px;
}

.loss-category:last-child {
    margin-bottom: 0;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.losses-screen .product-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 80px;
}

.losses-screen .product-item:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.losses-screen .product-item:last-child {
    margin-bottom: 0;
}

.losses-screen .product-img {
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.losses-screen .product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.losses-screen .product-name {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.losses-screen .product-specs {
    font-size: 14px;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.losses-screen .product-sku {
    font-size: 13px;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'WB combo VF Variable', sans-serif;
}

.losses-screen .price-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 100px;
    min-height: 48px;
    justify-content: center;
    align-items: flex-end;
}

.losses-screen .current-price,
.losses-screen .profit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.losses-screen .profit-amount.negative {
    color: var(--error);
}

.losses-screen .price-change {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.losses-screen .price-change.compensated {
    color: #16A34A;
}

.losses-screen .price-change.lost {
    color: #D97706;
}

.losses-screen .price-change.error {
    color: var(--error);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1600px) {
    .features-content {
        gap: 60px;
    }
    
    .repricer-main-content {
        grid-template-columns: 240px 1fr;
        gap: 16px;
    }
    
    .repricer-product-card {
        padding: 14px;
    }
    
    .repricer-product-image {
        height: 140px;
    }
    
    .repricer-results-section {
        padding: 28px;
    }
    
    .repricer-main-price {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-menu {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        margin-bottom: 0;
    }

    .feature-display {
        height: 550px;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .orders-table-header {
        grid-template-columns: 1fr 160px 120px;
        gap: 20px;
    }
    
    .order-item {
        grid-template-columns: 1fr 160px 120px;
        gap: 20px;
        padding: 16px;
    }
    
    .orders-table-header > div:first-child {
        padding-left: 56px;
    }
    
    .product-image {
        width: 48px;
        height: 48px;
    }
    
    .order-product-name {
        font-size: 15px;
    }
    
    .order-product-details {
        font-size: 13px;
    }
    
    .profit-amount {
        font-size: 16px;
    }

    .status-badge {
        min-width: 120px;
        padding: 5px 12px;
        font-size: 12px;
    }

    .loss-summary {
        padding: 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .loss-amount {
        font-size: 36px;
    }

    .loss-action {
        min-width: 180px;
        padding: 16px 28px;
    }

    .losses-screen .product-item {
        grid-template-columns: 52px 1fr auto;
        gap: 14px;
        padding: 16px;
        min-height: 84px;
    }

    .losses-screen .product-img {
        width: 52px;
        height: 52px;
    }

    .losses-screen .product-name {
        font-size: 15px;
    }

    .losses-screen .product-specs {
        font-size: 13px;
    }

    .losses-screen .current-price,
    .losses-screen .profit-amount {
        font-size: 17px;
    }

    .losses-screen .price-change {
        font-size: 11px;
    }

    .losses-screen .price-info {
        min-width: 90px;
        min-height: 44px;
    }
    
    .repricer-main-content {
        grid-template-columns: 220px 1fr;
        gap: 14px;
    }
    
    .repricer-product-card {
        padding: 12px;
    }
    
    .repricer-product-image {
        height: 120px;
    }
    
    .repricer-results-section {
        padding: 24px;
    }
    
    .repricer-main-price {
        font-size: 36px;
    }
    
    .repricer-range-value {
        font-size: 22px;
    }
    
    .repricer-margin-value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .features-section {
        padding: 50px 0px 0px 0px;
    }

    .features-header {
        margin-bottom: 40px;
    }

    .features-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .features-description {
        font-size: 18px;
    }

    .features-subtitle {
        font-size: 12px;
        padding: 6px 16px;
    }

    .features-menu {
        grid-template-columns: 1fr;
        gap: 0;
        display: flex;
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 12px;
    }
    
    .feature-item:last-child {
        margin-bottom: 0;
    }

    .feature-header {
        padding: 16px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .feature-name {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 15px;
    }

    .feature-display {
        display: none !important;
    }

    .mobile-feature-container {
        display: block !important;
        visibility: visible !important;
    }

    .mobile-feature-container.active {
        max-height: 620px;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .feature-screen {
        position: relative;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        height: 570px;
        box-shadow: 
            0 0 0 1px rgba(0, 0, 0, 0.05),
            0 8px 20px -4px rgba(0, 0, 0, 0.15),
            0 4px 8px -2px rgba(0, 0, 0, 0.08);
        animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        margin-bottom: 16px;
    }

    .mobile-feature-container .dashboard-mock {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-feature-container .dash-header {
        height: 44px;
        flex-shrink: 0;
        background: #1F2937;
        padding: 0 16px;
    }

    .mobile-feature-container .dash-content {
        flex: 1;
        background: #F9FAFB;
        overflow-y: auto;
        min-height: 0;
    }

    .mobile-feature-container .dash-footer {
        height: 44px;
        flex-shrink: 0;
        background: #F3F4F6;
        border-top: 1px solid #E5E7EB;
        padding: 0 16px;
        font-size: 11px;
    }

    .mobile-feature-container .orders-section {
        margin: 0;
        border-radius: 10px;
        box-shadow: none;
    }

    .mobile-feature-container .orders-content {
        padding: 12px;
    }

    .mobile-feature-container .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .stat-card {
        padding: 12px;
    }

    .dash-nav {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dash-nav::-webkit-scrollbar {
        display: none;
    }

    .dash-nav-item {
        white-space: nowrap;
        font-size: 13px;
        padding: 4px 8px;
    }

    .chevron-icon {
        width: 18px;
        height: 18px;
    }

    /* ОБНОВЛЕННАЯ АДАПТАЦИЯ РЕПРАЙСЕРА ДЛЯ МОБИЛЬНЫХ */
    .repricer-screen .dash-content {
        padding: 10px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .overview-stats {
        padding-top: 20px;
    }

    .repricer-interface {
        gap: 8px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .repricer-main-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Скрываем десктопную карточку товара */
    .repricer-product-card {
        display: none !important;
    }

    /* Объединенный блок товара и результатов */
    .repricer-results-section {
        background: white !important;
        border-radius: 10px !important;
        padding: 14px !important;
        border: 1px solid #E5E7EB !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 16px;
    }

    /* Структура мобильного хедера - увеличенная */
    .repricer-mobile-header {
        display: flex !important;
        gap: 14px;
        margin-bottom: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid #F3F4F6;
    }

    .repricer-mobile-image {
        width: 85px !important;
        height: 85px !important;
        background: #E5E7EB;
        border-radius: 10px !important;
        flex-shrink: 0;
        background-image: url('../assets/img/nike-shoes.jpg');
        background-size: cover;
        background-position: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .repricer-mobile-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .repricer-mobile-name {
        font-size: 16px !important;
        font-weight: 600;
        color: #111827;
        margin-bottom: 0 !important;
        line-height: 1.3;
    }

    .repricer-mobile-sku {
        font-size: 12px !important;
        color: #6B7280;
        margin-bottom: 8px;
    }

    .repricer-mobile-action {
        background: #D1FAE5;
        color: #059669;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 11px !important;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        width: fit-content;
    }

    /* Мобильные результаты - вертикальный стек */
    .repricer-mobile-results {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        flex: 1;
    }

    .repricer-mobile-result-block {
        text-align: center;
        padding: 14px 12px;
        background: #F9FAFB;
        border-radius: 8px;
    }

    .repricer-mobile-label {
        font-size: 10px !important;
        color: #6B7280;
        margin-bottom: 6px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .repricer-mobile-price {
        font-size: 36px !important;
        font-weight: 700;
        background: linear-gradient(135deg, #7C3AED, #EC4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
    }

    .repricer-mobile-price-note {
        font-size: 10px !important;
        color: #9CA3AF;
        margin-top: 4px;
        font-weight: 500;
    }

    .repricer-mobile-target {
        font-size: 30px !important;
        font-weight: 600;
        color: #EC4899;
        line-height: 1;
    }

    /* Скрываем десктопные элементы */
    .repricer-main-price-block,
    .repricer-price-range {
        display: none !important;
    }

    /* Улучшенный слайдер маржи */
    .repricer-margin-slider-container {
        background: white;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        padding: 12px 10px 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .repricer-slider-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px !important;
        gap: 10px !important;
    }

    .repricer-slider-label {
        font-size: 12px !important;
        color: #4B5563;
        font-weight: 600;
        flex: 1;
        line-height: 1.3;
        padding-left: 0 !important;
    }

    .repricer-margin-display-minimal {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-right: 0 !important;
    }

    .repricer-margin-value {
        font-size: 22px !important;
        font-weight: 700;
        background: linear-gradient(135deg, #7C3AED, #EC4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
    }

    .repricer-margin-sublabel {
        font-size: 9px !important;
        color: #7C3AED;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        opacity: 0.7;
        margin-top: -2px;
    }

    .repricer-slider-wrapper {
        padding: 10px 6px 4px !important;
    }

    .repricer-slider-track {
        height: 10px !important;
        background: #E5E7EB;
        border-radius: 5px !important;
        position: relative;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
        cursor: pointer;
    }

    .repricer-slider-fill {
        height: 100%;
        background: linear-gradient(90deg, #7C3AED, #EC4899);
        border-radius: 5px !important;
        box-shadow: 0 1px 3px rgba(124, 58, 237, 0.2);
    }

    .repricer-slider-thumb {
        width: 20px !important;
        height: 20px !important;
        background: white;
        border: 2px solid #7C3AED;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
        cursor: grab;
    }

    .repricer-slider-markers {
        display: flex;
        justify-content: space-between;
        margin-top: 6px !important;
        padding: 0 8px;
        position: relative;
        height: 18px !important;
    }

    .repricer-marker {
        font-size: 10px !important;
        color: #9CA3AF;
        font-weight: 500;
    }

    .repricer-marker.target-marker {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: #7C3AED;
        font-weight: 600;
    }

    /* Скрываем процессорный бейдж на мобильных */
    .repricer-processor-badge {
        display: none !important;
    }

    .orders-section {
        margin: 20px;
        margin-bottom: 0;
    }
    
    .orders-content {
        padding: 16px;
    }
    
    .orders-table-header {
        display: none;
    }
    
    .order-item {
        display: block;
        padding: 0;
        background: white;
        border: 1px solid #E5E7EB;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .order-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .order-mobile {
        display: block;
        padding: 16px;
    }
    
    .order-product,
    .order-profit {
        display: none;
    }
    
    .order-item > .status-badge {
        display: none;
    }
    
    .mobile-product-header {
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .product-image {
        width: 48px;
        height: 48px;
    }
    
    .mobile-product-name {
        font-size: 15px;
    }
    
    .mobile-product-sku {
        font-size: 13px;
    }
    
    .mobile-order-info {
        gap: 12px;
        grid-template-columns: 1fr;
    }
    
    .mobile-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .order-mobile .status-badge {
        margin: 0;
        min-width: auto;
        width: auto;
        flex-shrink: 0;
    }
    
    .mobile-profit-amount {
        font-size: 16px;
    }

    .status-badge {
        min-width: 90px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        min-height: 85px;
    }

    .stat-header {
        height: 18px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 8px;
    }

    .chart-container {
        padding: 16px;
        height: 190px;
    }

    .chart-bar {
        width: 20px;
    }

    .loss-summary {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 16px;
    }

    .loss-info h3 {
        font-size: 16px;
    }

    .loss-amount {
        font-size: 28px;
    }

    .loss-period {
        font-size: 13px;
    }

    .compensated-note {
        font-size: 11px;
        padding: 2px 8px;
    }

    .loss-action {
        width: 100%;
        padding: 12px 18px;
        font-size: 13px;
    }

    .loss-category {
        padding: 10px;
        margin-bottom: 6px;
    }

    .losses-screen .product-item {
        grid-template-columns: 44px 1fr auto;
        gap: 10px;
        padding: 10px;
        min-height: 64px;
    }

    .losses-screen .product-img {
        width: 44px;
        height: 44px;
    }

    .losses-screen .product-name {
        font-size: 14px;
    }

    .losses-screen .product-specs {
        font-size: 12px;
    }

    .losses-screen .product-sku {
        font-size: 11px;
    }

    .losses-screen .current-price,
    .losses-screen .profit-amount {
        font-size: 15px;
    }

    .losses-screen .price-change {
        font-size: 10px;
    }

    .losses-screen .price-info {
        align-items: flex-end;
        min-width: 75px;
        min-height: 38px;
        justify-content: center;
    }
}

/* ===== NARROW SCREENS (360-420px) ===== */
@media (max-width: 420px) {

    .dash-header {
        height: 48px;
        padding: 0 12px;
    }

    .dash-footer {
        height: 40px;
        padding: 0 12px;
        font-size: 10px;
    }

    .dash-content {
        padding: 10px !important;
        overflow: hidden;
    }

    .repricer-interface {
        gap: 8px !important;
    }

    .repricer-results-section {
        padding: 14px !important;
        gap: 14px !important;
    }

    .repricer-mobile-header {
        gap: 12px !important;
        margin-bottom: 0 !important;
        padding-bottom: 18px !important;
    }

    .repricer-mobile-image {
        width: 75px !important;
        height: 75px !important;
    }

    .repricer-mobile-name {
        font-size: 15px !important;
    }

    .repricer-mobile-sku {
        font-size: 11px !important;
    }

    .repricer-mobile-action {
        font-size: 10px !important;
        padding: 4px 9px;
    }

    .repricer-mobile-results {
        gap: 8px !important;
    }

    .repricer-mobile-result-block {
        padding: 16px 12px !important;
    }

    .repricer-mobile-label {
        font-size: 10px !important;
        margin-bottom: 5px !important;
    }

    .repricer-mobile-price {
        font-size: 36px !important;
    }

    .repricer-mobile-price-note {
        font-size: 10px !important;
    }

    .repricer-mobile-target {
        font-size: 30px !important;
    }

    /* Compact slider for narrow screens */
    .repricer-margin-slider-container {
        padding: 12px 10px 8px !important;
    }

    .repricer-slider-header {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .repricer-slider-label {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .repricer-margin-value {
        font-size: 22px !important;
    }

    .repricer-margin-sublabel {
        font-size: 9px !important;
    }

    .repricer-slider-wrapper {
        padding: 10px 6px 4px !important;
    }

    .repricer-slider-track {
        height: 10px !important;
    }

    .repricer-slider-thumb {
        width: 20px !important;
        height: 20px !important;
        border: 2px solid #7C3AED !important;
    }

    .repricer-slider-markers {
        padding: 0 8px !important;
        height: 18px !important;
    }

    .repricer-marker {
        font-size: 10px !important;
    }
}

/* ===== EXTRA NARROW SCREENS (360-380px) ===== */
@media (max-width: 380px) {

    .dash-header {
        height: 44px;
        padding: 0 10px;
    }

    .dash-footer {
        height: 36px;
        padding: 0 10px;
        font-size: 9px;
    }

    .dash-content {
        padding: 10px !important;
        overflow: hidden;
    }

    .repricer-interface {
        gap: 8px !important;
    }

    .repricer-results-section {
        padding: 14px !important;
        gap: 12px !important;
    }

    .repricer-mobile-header {
        gap: 10px !important;
        margin-bottom: 0 !important;
        padding-bottom: 16px !important;
    }

    .repricer-mobile-image {
        width: 70px !important;
        height: 70px !important;
    }

    .repricer-mobile-name {
        font-size: 14px !important;
    }

    .repricer-mobile-results {
        gap: 8px !important;
    }

    .repricer-mobile-result-block {
        padding: 16px 10px !important;
    }

    .repricer-mobile-label {
        font-size: 10px !important;
        margin-bottom: 5px !important;
    }

    .repricer-mobile-price {
        font-size: 36px !important;
    }

    .repricer-mobile-price-note {
        font-size: 9px !important;
        margin-top: 3px;
    }

    .repricer-mobile-target {
        font-size: 30px !important;
    }

    .repricer-margin-slider-container {
        padding: 12px 10px 8px !important;
    }

    .repricer-margin-value {
        font-size: 22px !important;
    }
}

/* ===== MOBILE ELEMENTS VISIBILITY ===== */
@media (min-width: 769px) {
    .mobile-feature-container {
        display: none !important;
    }
    
    .feature-display {
        display: block !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SCROLLBAR STYLES ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #BDC1C6 #F8F9FA;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #BDC1C6, #D1D5DB);
    border-radius: 10px;
    border: 2px solid #F8F9FA;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #9CA3AF, #BDC1C6);
}

/* ===== NAV ITEM VISIBILITY RULES ===== */
.dashboard-mock .dash-nav-item {
    display: none !important;
}

.repricer-screen .dash-nav-item[data-feature="repricer"],
.analytics-screen .dash-nav-item[data-feature="analytics"],
.orders-screen .dash-nav-item[data-feature="orders"],
.losses-screen .dash-nav-item[data-feature="losses"] {
    display: flex !important;
}