* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

:root {
    --primary: #6640c4;
    --primary-dark: #4f32a0;
    --primary-light: #8661e9;
    --secondary: #fd5ca1;
    --success: #38d9a9;
    --warning: #ffbe3d;
    --error: #ff6b6b;
    --background: #121222;
    --card: #1e1e30;
    --card-highlight: #2a2a3f;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 70% 20%, rgba(102, 64, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(253, 92, 161, 0.2) 0%, transparent 50%);
    transition: all 0.3s ease;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background-color: rgba(30, 30, 48, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(102, 64, 196, 0.3);
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(135deg, var(--text), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 16px;
}

.status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.scanner-container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

/* ÐœÐÐšÐ¡Ð˜ÐœÐÐ›Ð¬ÐÐž Ð£Ð›Ð£Ð§Ð¨Ð•ÐÐÐ«Ð• Ð¡Ð¢Ð˜Ð›Ð˜ Ð’Ð˜Ð”Ð•Ðž Ð¡ CANVAS-ÐžÐŸÐ¢Ð˜ÐœÐ˜Ð—ÐÐ¦Ð˜Ð•Ð™ Ð”Ð›Ð¯ ANDROID */
#video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    min-height: calc(100vh - 140px) !important;
    border: none !important;
    background: #000;
    
    /* Ð‘Ð°Ð·Ð¾Ð²Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ñ€ÐµÐ½Ð´ÐµÑ€Ð¸Ð½Ð³Ð° Ð´Ð»Ñ Ð²ÑÐµÑ… ÑƒÑÑ‚Ñ€Ð¾Ð¹ÑÑ‚Ð² */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: optimizeQuality;
    
    /* GPU ÑƒÑÐºÐ¾Ñ€ÐµÐ½Ð¸Ðµ Ð¸ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð¿Ñ€Ð¾Ð¸Ð·Ð²Ð¾Ð´Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾ÑÑ‚Ð¸ */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Ð¡Ð³Ð»Ð°Ð¶Ð¸Ð²Ð°Ð½Ð¸Ðµ Ð¸ ÐºÐ°Ñ‡ÐµÑÑ‚Ð²Ð¾ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ Ñ€Ð°Ð·Ð¼Ñ‹Ñ‚Ð¸Ðµ Ð¸ Ð°Ñ€Ñ‚ÐµÑ„Ð°ÐºÑ‚Ñ‹ Ð¿Ñ€Ð¸ Ñ‚Ñ€Ð°Ð½ÑÑ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ð¸ */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    
    /* ÐŸÐ»Ð°Ð²Ð½Ñ‹Ðµ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ñ‹ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ð´Ð»Ñ Ð¼Ð°ÑÑˆÑ‚Ð°Ð±Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ */
    transition: transform 0.15s ease-out;
}

/* Ð¡ÐŸÐ•Ð¦Ð˜ÐÐ›Ð¬ÐÐÐ¯ CANVAS-ÐžÐŸÐ¢Ð˜ÐœÐ˜Ð—ÐÐ¦Ð˜Ð¯ Ð”Ð›Ð¯ ANDROID */
#videoCanvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    min-height: calc(100vh - 140px) !important;
    border: none !important;
    background: #000;
    display: none; /* ÐŸÐ¾ ÑƒÐ¼Ð¾Ð»Ñ‡Ð°Ð½Ð¸ÑŽ ÑÐºÑ€Ñ‹Ñ‚, Ð¿Ð¾ÐºÐ°Ð·Ñ‹Ð²Ð°ÐµÑ‚ÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ð´Ð»Ñ Android */
    
    /* ÐœÐ°ÐºÑÐ¸Ð¼Ð°Ð»ÑŒÐ½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Canvas Ð´Ð»Ñ Android */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: optimizeQuality;
    
    /* GPU ÑƒÑÐºÐ¾Ñ€ÐµÐ½Ð¸Ðµ Canvas */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Canvas-ÑÐ¿ÐµÑ†Ð¸Ñ„Ð¸Ñ‡Ð½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    
    /* Ð¡Ð³Ð»Ð°Ð¶Ð¸Ð²Ð°Ð½Ð¸Ðµ Canvas */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* ÐŸÐ»Ð°Ð²Ð½Ñ‹Ðµ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ñ‹ */
    transition: transform 0.15s ease-out;
}

#video.zoomed, #videoCanvas.zoomed {
    /* Ð§ÐµÑ‚ÐºÐ¾Ðµ Ð¼Ð°ÑÑˆÑ‚Ð°Ð±Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð±ÐµÐ· Ñ€Ð°Ð·Ð¼Ñ‹Ñ‚Ð¸Ñ */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform-origin: center center;
    
    /* ÐŸÑ€ÐµÐ´Ð¾Ñ‚Ð²Ñ€Ð°Ñ‰ÐµÐ½Ð¸Ðµ Ñ€Ð°Ð·Ð¼Ñ‹Ñ‚Ð¸Ñ Ð¿Ñ€Ð¸ Ð·ÑƒÐ¼Ðµ */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Ð¡ÐŸÐ•Ð¦Ð˜ÐÐ›Ð¬ÐÐÐ¯ ÐžÐŸÐ¢Ð˜ÐœÐ˜Ð—ÐÐ¦Ð˜Ð¯ Ð”Ð›Ð¯ ANDROID Ð£Ð¡Ð¢Ð ÐžÐ™Ð¡Ð¢Ð’ */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Ð­Ñ‚Ð¾ Ð±ÑƒÐ´ÐµÑ‚ Ð¿Ñ€Ð¸Ð¼ÐµÐ½ÑÑ‚ÑŒÑÑ Ð² Ð¾ÑÐ½Ð¾Ð²Ð½Ð¾Ð¼ Ðº Android Webkit/Chrome */
    #video {
        /* ÐœÐ°ÐºÑÐ¸Ð¼Ð°Ð»ÑŒÐ½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð»Ñ Android */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: pixelated;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        
        /* Ð”Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð¿Ñ€Ð¾Ð¸Ð·Ð²Ð¾Ð´Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾ÑÑ‚Ð¸ */
        -webkit-filter: none;
        filter: none;
        
        /* ÐŸÑ€Ð¸Ð½ÑƒÐ´Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾Ðµ GPU ÑƒÑÐºÐ¾Ñ€ÐµÐ½Ð¸Ðµ */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    #videoCanvas {
        /* Canvas Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð»Ñ Android */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: pixelated;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        
        /* Canvas-ÑÐ¿ÐµÑ†Ð¸Ñ„Ð¸Ñ‡Ð½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð»Ñ Android */
        -webkit-filter: none;
        filter: none;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Ð”Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ñ‹Ñ… ÑƒÑÑ‚Ñ€Ð¾Ð¹ÑÑ‚Ð² */
@media (max-width: 768px) {
    #video, #videoCanvas {
        /* ÐžÐ¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ñ‹Ñ… */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        
        /* Ð’Ñ‹ÑÐ¾ÐºÐ¾Ðµ ÐºÐ°Ñ‡ÐµÑÑ‚Ð²Ð¾ Ñ€ÐµÐ½Ð´ÐµÑ€Ð¸Ð½Ð³Ð° Ð½Ð° Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ñ‹Ñ… */
        image-rendering: -webkit-optimize-contrast;
        
        /* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ Ð»Ð¸ÑˆÐ½Ð¸Ðµ ÑÑ„Ñ„ÐµÐºÑ‚Ñ‹ Ð½Ð° ÑÐ»Ð°Ð±Ñ‹Ñ… ÑƒÑÑ‚Ñ€Ð¾Ð¹ÑÑ‚Ð²Ð°Ñ… */
        will-change: transform;
    }
    
    #video.zoomed, #videoCanvas.zoomed {
        /* Ð§ÐµÑ‚ÐºÐ¸Ð¹ Ð·ÑƒÐ¼ Ð½Ð° Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ñ‹Ñ… */
        image-rendering: pixelated;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

/* Ð¡Ð¿ÐµÑ†Ð¸Ð°Ð»ÑŒÐ½Ð°Ñ Ð¾Ð¿Ñ‚Ð¸Ð¼Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð»Ñ iOS (Ð¾ÑÑ‚Ð°Ð²Ð»ÑÐµÐ¼ ÐºÐ°Ðº ÐµÑÑ‚ÑŒ, Ñ‚Ð°Ðº ÐºÐ°Ðº Ñ€Ð°Ð±Ð¾Ñ‚Ð°ÐµÑ‚ Ð¸Ð´ÐµÐ°Ð»ÑŒÐ½Ð¾) */
@supports (-webkit-touch-callout: none) {
    #video {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

.scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    z-index: 5;
    pointer-events: none;
}

.scan-area {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    box-shadow: 0 0 0 3000px rgba(0, 0, 0, 0.7);
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 100;
}

.top-left {
    top: 0;
    left: 0;
    border-top: 3px solid #fd5ca1;
    border-left: 3px solid #fd5ca1;
    border-radius: 16px 0 0 0;
    animation: cornerPulse 2s infinite 0s;
}

.top-right {
    top: 0;
    right: 0;
    border-top: 3px solid #fd5ca1;
    border-right: 3px solid #fd5ca1;
    border-radius: 0 16px 0 0;
    animation: cornerPulse 2s infinite 0.5s;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid #6640c4;
    border-left: 3px solid #6640c4;
    border-radius: 0 0 0 16px;
    animation: cornerPulse 2s infinite 1s;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #6640c4;
    border-right: 3px solid #6640c4;
    border-radius: 0 0 16px 0;
    animation: cornerPulse 2s infinite 1.5s;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scan-line {
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        #6640c4 20%, 
        #fd5ca1 50%,
        #6640c4 80%, 
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(102, 64, 196, 0.7);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { top: 10%; opacity: 0.8; }
    50% { opacity: 1; }
    100% { top: 90%; opacity: 0.8; }
}

.scan-status {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 30, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    justify-content: center;
    transition: all 0.3s ease;
}

.scan-phase {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.phase-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(30, 30, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.phase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.phase-step.active {
    opacity: 1;
    transform: scale(1.05);
}

.phase-step.completed {
    opacity: 1;
    color: var(--success);
}

.phase-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.phase-step.active .phase-icon {
    background-color: var(--primary);
    color: white;
    animation: phaseActive 2s infinite;
    box-shadow: 0 0 15px rgba(102, 64, 196, 0.5);
}

.phase-step.completed .phase-icon {
    background-color: var(--success);
    color: white;
    box-shadow: 0 0 15px rgba(56, 217, 169, 0.5);
}

@keyframes phaseActive {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(102, 64, 196, 0.7); }
}

.phase-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    color: inherit;
}

.phase-arrow {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: bold;
}

.action-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background-color: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.action-button:hover, .action-button:active {
    transform: scale(1.05);
}

.action-button svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-button.flash.active {
    background: linear-gradient(135deg, var(--warning), #ffb300);
    border-color: var(--warning);
    box-shadow: 0 4px 20px rgba(255, 190, 61, 0.4), 0 0 30px rgba(255, 190, 61, 0.3);
    animation: flashActive 2s infinite;
}

.action-button.flash.active svg {
    stroke: #000;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

@keyframes flashActive {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(255, 190, 61, 0.4), 0 0 30px rgba(255, 190, 61, 0.3);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(255, 190, 61, 0.6), 0 0 40px rgba(255, 190, 61, 0.5);
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(30, 30, 48, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px 10px 5px;
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: 1;
    min-width: 0;
}

.nav-item.active {
    background-color: rgba(102, 64, 196, 0.2);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 2px;
}

.nav-item.active svg {
    stroke: var(--primary-light);
}

.nav-item span {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    display: block;
    margin-top: 2px;
}

.nav-item.active span {
    color: var(--text);
    font-weight: 500;
}

.panel {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 80px;
    background-color: var(--background);
    z-index: 20;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.panel.active {
    transform: translateX(0);
}

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

.panel-title {
    font-size: 24px;
    font-weight: 700;
}

#cameraSelector {
    display: none;
}

/* Info Panel Styles */
.info-content {
    padding: 10px 0;
}

.info-steps {
    margin-bottom: 30px;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.info-description {
    background-color: var(--card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.info-description h3 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
}

.info-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* History Panel Styles */
.search-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.search-toggle:hover {
    background: var(--card-highlight);
    color: var(--text);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.search-section {
    margin-bottom: 20px;
    display: none;
}

.search-section.active {
    display: block;
}

.search-input-container {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 16px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 64, 196, 0.1);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-search:hover {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.1);
}

.clear-search svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-tab:hover:not(.active) {
    background: var(--card-highlight);
    color: var(--text);
}

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

.history-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: var(--card-highlight);
    transform: translateY(-1px);
}

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

.product-name {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
}

.scan-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.scan-result {
    font-size: 14px;
    margin-bottom: 8px;
}

.scan-result.success {
    color: var(--success);
}

.scan-result.error {
    color: var(--error);
}

/* Profile Panel Styles */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.bonus-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.bonus-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--warning), #ffb300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: none;
}

.bonus-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.bonus-points {
    font-size: 24px;
    font-weight: 700;
    color: var(--warning);
}

.bonus-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), #ffb300);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.stats-header {
    margin-bottom: 16px;
}

.stats-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

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

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--background);
    border-radius: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.action-card:hover {
    background: var(--card-highlight);
    color: var(--text);
    transform: translateY(-1px);
}

.action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.action-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* Settings Panel Styles */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.settings-header {
    padding: 16px 20px;
    background: var(--background);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: var(--card-highlight);
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
}

.settings-details {
    flex: 1;
}

.settings-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.settings-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-control {
    flex-shrink: 0;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: 0.3s;
    border-radius: 28px;
    border: 1px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: white;
}

.camera-select, .resolution-select {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 14px;
    min-width: 120px;
    outline: none;
}

.refresh-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: var(--primary-dark);
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.language-selector {
    display: flex;
    gap: 4px;
    background: var(--background);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
}

.language-option {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option.active {
    background: var(--primary);
    color: white;
}

.language-option:hover:not(.active) {
    background: var(--card);
    color: var(--text);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.close-auth {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-auth:hover {
    background: var(--background);
    color: var(--text);
}

.close-auth svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--background);
    border-radius: 12px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--card);
    color: var(--text);
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 64, 196, 0.1);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-container input {
    width: 0;
    height: 0;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary);
}

.auth-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-submit:hover {
    background: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--card);
    padding: 0 16px;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--card-highlight);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Theme Modal */
.theme-modal {
    max-width: 500px;
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--background);
    color: var(--text);
}

.close-modal svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.theme-option {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.theme-option.active {
    border-color: var(--primary);
    background: rgba(102, 64, 196, 0.1);
}

.theme-option:hover:not(.active) {
    border-color: var(--text-tertiary);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.dark-preview {
    background: #121222;
}

.light-preview {
    background: #ffffff;
}

.blue-preview {
    background: #1a237e;
}

.green-preview {
    background: #1b5e20;
}

.preview-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px;
    border-radius: 6px;
}

.preview-content {
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px;
    border-radius: 6px;
}

.theme-name {
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

/* ============================================================================
   ÐžÐ‘ÐÐžÐ’Ð›Ð•ÐÐÐ«Ð• Ð¡Ð¢Ð˜Ð›Ð˜ PRODUCT MODAL (ÑƒÐ±Ñ€Ð°Ð»Ð¸ verification-details ÑÐµÐºÑ†Ð¸ÑŽ)
   ============================================================================ */

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    animation: productModalSlideIn 0.6s ease;
}

.product-modal.active {
    display: flex;
}

@keyframes productModalSlideIn {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

.product-modal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px;
    background: linear-gradient(135deg, var(--success) 0%, #20bf6b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    
    /* Ð”ÐžÐ‘ÐÐ’Ð˜Ð¢Ð¬ Ð­Ð¢Ð˜ Ð¡Ð¢Ð ÐžÐšÐ˜ Ð”Ð›Ð¯ Ð˜Ð¡ÐŸÐ ÐÐ’Ð›Ð•ÐÐ˜Ð¯ Ð¡Ð–ÐÐ¢Ð˜Ð¯: */
    flex-shrink: 0 !important;
    min-height: 80px !important;
    height: auto !important;
    flex-basis: auto !important;
}

.product-price {
    display: none !important;
}

/* Ð”ÐžÐŸÐžÐ›ÐÐ˜Ð¢Ð•Ð›Ð¬ÐÐ«Ð• Ð¡Ð¢Ð˜Ð›Ð˜ Ð”Ð›Ð¯ Ð¡Ð’Ð•Ð¢Ð›ÐžÐ™ Ð¢Ð•ÐœÐ« */
body.light-theme {
    color: #212529 !important;
}

body.light-theme .panel-title,
body.light-theme .settings-label,
body.light-theme .product-name,
body.light-theme .badge-title,
body.light-theme .modal-title,
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4, 
body.light-theme h5, 
body.light-theme h6 {
    color: #212529 !important;
}

body.light-theme .nav-item span,
body.light-theme .detail-label,
body.light-theme .detail-value,
body.light-theme .info-content {
    color: #495057 !important;
}

.product-modal-header.fake-product {
    background: linear-gradient(135deg, var(--error) 0%, #e74c3c 100%);
}

.product-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerShimmer 3s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { opacity: 0.3; transform: rotate(0deg); }
    50% { opacity: 0.6; transform: rotate(180deg); }
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
}

.badge-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.badge-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.close-product-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-product-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.close-product-modal svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.product-modal-body {
    flex: 1;
    padding: 20px;
}

.product-image-section {
    margin-bottom: 30px;
    text-align: center;
}

.product-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: imageLoad 0.8s ease-out;
}

@keyframes imageLoad {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.authenticity-seal {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--success), #20bf6b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(56, 217, 169, 0.4);
    animation: sealPulse 2s ease-in-out infinite;
}

.authenticity-seal.fake {
    background: linear-gradient(135deg, var(--error), #e74c3c);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 6px 20px rgba(56, 217, 169, 0.6); }
}

.authenticity-seal svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.product-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 20px;
    color: #ddd;
    transition: color 0.2s ease;
}

.star.active {
    color: #ffd700;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.like-section {
    margin-top: 8px;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: var(--card-highlight);
    color: var(--text);
}

.like-btn.liked {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.like-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.like-btn.liked svg {
    fill: currentColor;
}

.product-main-info {
    background: var(--card);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--border);
    animation: infoSlideIn 0.8s ease-out 0.2s both;
}

@keyframes infoSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-category {
    font-size: 16px;
    color: var(--text-secondary);
    background: rgba(102, 64, 196, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 16px;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(102, 64, 196, 0.3);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: detailItemSlideIn 0.6s ease-out both;
}

.detail-item:nth-child(1) { animation-delay: 0.1s; }
.detail-item:nth-child(2) { animation-delay: 0.2s; }
.detail-item:nth-child(3) { animation-delay: 0.3s; }
.detail-item:nth-child(4) { animation-delay: 0.4s; }
.detail-item:nth-child(5) { animation-delay: 0.5s; }
.detail-item:nth-child(6) { animation-delay: 0.6s; }
.detail-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes detailItemSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.detail-item:hover {
    background: var(--card-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-item.clickable {
    cursor: pointer;
}

.detail-item.clickable:hover {
    border-color: var(--primary);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 64, 196, 0.3);
}

.detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-value {
    font-size: 18px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

.website-link {
    color: var(--primary-light);
    text-decoration: underline;
}

.detail-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
    opacity: 0;
    transition: all 0.2s ease;
}

.detail-item.clickable:hover .detail-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.detail-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.additional-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    animation: sectionSlideIn 0.8s ease-out 0.4s both;
}

@keyframes sectionSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-title::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='2'/%3E%3Cpath d='M12 16v-4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 8h.01' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    flex-shrink: 0;
}

.info-content {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 20px;
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 64, 196, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 64, 196, 0.6);
}

.secondary-btn {
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: var(--card-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .product-modal-header {
        padding: 20px 16px 12px;
    }
    
    .badge-title {
        font-size: 18px;
    }
    
    .product-modal-body {
        padding: 16px;
    }
    
    .product-image-container {
        height: 250px;
        max-width: 250px;
    }
    
    .product-name {
        font-size: 24px;
    }
    
    .product-main-info {
        padding: 20px 16px;
    }
    
    .detail-item {
        padding: 16px;
    }
    
    .detail-icon {
        width: 45px;
        height: 45px;
    }
    
    .detail-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .additional-info {
        padding: 20px;
    }
    
    .product-modal-footer {
        padding: 16px;
        flex-direction: column;
    }
    
    .btn {
        min-width: auto;
    }
}

/* Ð¡Ð’Ð•Ð¢Ð›ÐÐ¯ Ð¢Ð•ÐœÐ - Ð˜Ð¡ÐŸÐ ÐÐ’Ð›Ð•ÐÐ˜Ð¯ Ð’Ð•Ð Ð¥ÐÐ•Ð™ ÐŸÐžÐ›ÐžÐ¡Ð« */
body.light-theme .header {
    background-color: rgba(248, 249, 250, 0.95) !important;
    border-bottom: 1px solid #dee2e6 !important;
}

body.light-theme .logo-text {
    background: linear-gradient(135deg, #212529, #495057) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body.light-theme .status {
    color: #495057 !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Ð¡Ð’Ð•Ð¢Ð›ÐÐ¯ Ð¢Ð•ÐœÐ - Ð˜Ð¡ÐŸÐ ÐÐ’Ð›Ð•ÐÐ˜Ð¯ ÐÐ˜Ð–ÐÐ•Ð™ ÐÐÐ’Ð˜Ð“ÐÐ¦Ð˜Ð˜ */
body.light-theme .bottom-nav {
    background-color: rgba(248, 249, 250, 0.95) !important;
    border-top: 1px solid #dee2e6 !important;
}

body.light-theme .nav-item svg {
    stroke: #6c757d !important;
}

body.light-theme .nav-item.active svg {
    stroke: #6640c4 !important;
}

body.light-theme .nav-item span {
    color: #6c757d !important;
}

body.light-theme .nav-item.active span {
    color: #212529 !important;
}

/* Ð¡Ð’Ð•Ð¢Ð›ÐÐ¯ Ð¢Ð•ÐœÐ - Ð“Ð ÐÐ”Ð˜Ð•ÐÐ¢ Ð¤ÐžÐÐ */
body.light-theme .bg-gradient {
    background: 
        radial-gradient(circle at 70% 20%, rgba(102, 64, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(253, 92, 161, 0.05) 0%, transparent 50%) !important;
}

/* Ð¡Ð’Ð•Ð¢Ð›ÐÐ¯ Ð¢Ð•ÐœÐ - Ð”ÐžÐŸÐžÐ›ÐÐ˜Ð¢Ð•Ð›Ð¬ÐÐ«Ð• Ð˜Ð¡ÐŸÐ ÐÐ’Ð›Ð•ÐÐ˜Ð¯ */
body.light-theme .scan-status .status-text {
    color: #212529 !important;
}

body.light-theme .phase-step {
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

body.light-theme .phase-step.active {
    background: #6640c4 !important;
    color: white !important;
}

/* Ð˜Ð¡ÐŸÐ ÐÐ’Ð›Ð•ÐÐ˜Ð• ÐŸÐ ÐžÐ”Ð£ÐšÐ¢ÐžÐ’ÐžÐ“Ðž ÐœÐžÐ”ÐÐ›Ð Ð”Ð›Ð¯ Ð¡Ð’Ð•Ð¢Ð›ÐžÐ™ Ð¢Ð•ÐœÐ« */
body.light-theme .product-modal {
    background: #ffffff !important;
}

body.light-theme .product-main-info {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

body.light-theme .additional-info {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

body.light-theme .product-modal-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Ð˜Ð¡ÐŸÐ ÐÐ’Ð›Ð•ÐÐ˜Ð• ÐŸÐÐÐ•Ð›Ð•Ð™ Ð”Ð›Ð¯ Ð¡Ð’Ð•Ð¢Ð›ÐžÐ™ Ð¢Ð•ÐœÐ« */
body.light-theme .panel {
    background-color: #ffffff !important;
}

.review-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.review-content {
    padding: 0;
}

.review-form-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.review-form-section h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.rating-input {
    margin-bottom: 16px;
}

.rating-input label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.rating-stars-input {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.rating-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating-star:hover,
.rating-star.highlighted {
    color: #ffd700;
    transform: scale(1.1);
}

.rating-star.selected {
    color: #ffd700;
}

.review-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.review-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 64, 196, 0.1);
}

.review-form textarea::placeholder {
    color: var(--text-tertiary);
}

.review-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-counter {
    font-size: 12px;
    color: var(--text-tertiary);
}

.review-submitted {
    background: rgba(56, 217, 169, 0.1);
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--success);
    font-weight: 600;
}

.reviews-section h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading-reviews {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.no-reviews {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-style: italic;
}

.review-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

.review-item:hover {
    background: var(--card-highlight);
    transform: translateY(-1px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-star {
    font-size: 16px;
    color: #ddd;
}

.review-star.filled {
    color: #ffd700;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
}

/* Ð¡Ð¢Ð˜Ð›Ð˜ Ð”Ð›Ð¯ Ð¤ÐžÐ ÐœÐ« Ð Ð•Ð“Ð˜Ð¡Ð¢Ð ÐÐ¦Ð˜Ð˜ */
.auth-modal {
    max-width: 420px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--background);
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.input-group input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 64, 196, 0.1);
}

.input-group input::placeholder {
    color: var(--text-tertiary);
}

.auth-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ÐÐ”ÐÐŸÐ¢ÐÐ¦Ð˜Ð¯ Ð”Ð›Ð¯ Ð¡Ð’Ð•Ð¢Ð›ÐžÐ™ Ð¢Ð•ÐœÐ« */
body.light-theme .review-form textarea {
    background: #ffffff;
    border-color: #dee2e6;
}

body.light-theme .review-form textarea:focus {
    border-color: #6640c4;
}

body.light-theme .input-group input {
    background: #ffffff;
    border-color: #dee2e6;
}

body.light-theme .input-group input:focus {
    border-color: #6640c4;
}

body.light-theme .auth-tabs {
    background: #f8f9fa;
}