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

        :root {
            --bg-dark: #03080f;
            --bg-light: #0e1a26;
            --glass-bg: rgba(10, 20, 30, 0.4);
            --glass-border: rgba(0, 255, 200, 0.25);
            --primary: #00f0c0;
            --primary-glow: rgba(0, 240, 192, 0.5);
            --secondary: #ffd966;
            --danger: #ff5e7c;
            --text: #ffffff;
            --text-muted: rgba(255, 255, 255, 0.6);
            --card-radius: 28px;
        }

        body, html {
            width: 100%;
            min-height: 100vh;
            font-family: 'vazir', 'Inter', 'Segoe UI', system-ui, sans-serif;
            background: radial-gradient(ellipse at top, #132b36, #030b12);
            color: var(--text);
            overflow-x: hidden;
            position: relative;
        }

        .circuit-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(var(--primary) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--primary) 0.5px, transparent 0.5px);
            background-size: 40px 40px;
            opacity: 0.08;
            pointer-events: none;
            z-index: 0;
        }
        .dot-pattern {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(var(--primary) 1px, transparent 1px);
            background-size: 30px 30px;
            opacity: 0.15;
            pointer-events: none;
            z-index: 1;
        }
        .radio-waves {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            pointer-events: none;
            overflow: hidden;
        }
        .wave-svg {
            position: absolute;
            width: 150vmax;
            height: 150vmax;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .wave-ring {
            fill: none;
            stroke: var(--primary);
            stroke-width: 1.5;
            stroke-linecap: round;
            opacity: 0;
            animation: waveExpand 6s ease-out infinite;
            transform-origin: center;
        }
        .wave-ring:nth-child(1) { r: 15%; animation-delay: 0s; }
        .wave-ring:nth-child(2) { r: 30%; animation-delay: 1s; }
        .wave-ring:nth-child(3) { r: 45%; animation-delay: 2s; }
        .wave-ring:nth-child(4) { r: 60%; animation-delay: 3s; }
        .wave-ring:nth-child(5) { r: 75%; animation-delay: 4s; }
        .wave-ring:nth-child(6) { r: 90%; animation-delay: 5s; }
        .wave-ring-alt {
            stroke: var(--secondary);
            animation: waveExpandAlt 8s linear infinite;
        }
        .wave-ring-alt:nth-child(1) { r: 20%; animation-delay: 0.5s; }
        .wave-ring-alt:nth-child(2) { r: 40%; animation-delay: 1.5s; }
        .wave-ring-alt:nth-child(3) { r: 60%; animation-delay: 2.5s; }
        .wave-ring-alt:nth-child(4) { r: 80%; animation-delay: 3.5s; }
        .wave-ring-alt:nth-child(5) { r: 100%; animation-delay: 4.5s; }

        @keyframes waveExpand {
            0% { opacity: 0; stroke-dasharray: 10 90; transform: scale(0.8); }
            30% { opacity: 0.5; }
            70% { opacity: 0.3; }
            100% { opacity: 0; stroke-dasharray: 10 90; transform: scale(1.5); }
        }
        @keyframes waveExpandAlt {
            0% { opacity: 0; transform: scale(0.6); stroke-dasharray: 20 80; }
            30% { opacity: 0.4; }
            100% { opacity: 0; transform: scale(1.8); stroke-dasharray: 20 80; }
        }

        .hamburger-menu {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }
        .hamburger-icon {
            width: 30px;
            height: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            z-index: 1001;
            position: relative;
        }
        .hamburger-icon span {
            width: 100%;
            height: 1px;
            background-color: var(--primary);
            border-radius: 3px;
            transition: all 0.3s ease;
        }
        .hamburger-icon.open span:nth-child(1) {
            transform: translateY(10px) rotate(45deg);
        }
        .hamburger-icon.open span:nth-child(2) {
            opacity: 0;
        }
        .hamburger-icon.open span:nth-child(3) {
            transform: translateY(-10px) rotate(-45deg);
        }
        .menu-overlay {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            max-width: 300px;
            height: 100%;
            background: rgb(8 18 28 / 31%);
            backdrop-filter: blur(20px);
            z-index: 1000;
            transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            padding: 70px 20px 20px;
            border-left: 1px solid var(--glass-border);
            box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        }
        .menu-overlay.open { right: 0; }
        .close-menu-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 28px;
            cursor: pointer;
            color: var(--primary);
        }
        .menu-nav ul { list-style: none; padding: 0; }
        .menu-nav li { margin: 25px 0; }
        .menu-nav a {
            color: var(--text);
            text-decoration: none;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            border-radius: 16px;
            transition: 0.2s;
        }
        .menu-nav a:hover { background: rgba(0, 240, 192, 0.1); color: var(--primary); padding-right: 15px; }

        .container {
            position: relative;
            z-index: 10;
            max-width: 800px;
            margin: 0 auto;
            padding: 80px 20px 40px;
        }

        h1 {
            font-size: 1.8rem;
            font-weight: 700;
            text-align: center;
            background: linear-gradient(135deg, #fff, var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 30px;
            letter-spacing: -0.5px;
        }

        .step-indicator {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            padding: 15px 20px;
            border-radius: 60px;
            margin-bottom: 35px;
            border: 1px solid var(--glass-border);
            flex-wrap: wrap;
            gap: 8px;
        }
        .step-item {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
            transition: all 0.2s;
        }
        .step-icon { font-size: 22px; }
        .success-icon { color: var(--primary); text-shadow: 0 0 6px var(--primary-glow); }
        .error-icon { color: var(--danger); }
        .active-icon { color: var(--secondary); animation: pulse 1.5s infinite; }
        .pending-icon { color: var(--text-muted); }

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

        .step-image {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border-radius: var(--card-radius);
            padding: 20px;
            margin-bottom: 25px;
            text-align: center;
            border: 1px solid var(--glass-border);
        }
        .step-image img {
            max-width: 100%;
            max-height: 200px;
            border-radius: 20px;
        }

        .form-group {
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(4px);
            border-radius: 24px;
            padding: 18px 20px;
            margin-bottom: 20px;
            border: 1px solid var(--glass-border);
        }
        label {
            display: block;
            margin-bottom: 12px;
            font-weight: 500;
            color: var(--primary);
        }
        input[type="text"], input[type="number"] {
            width: 100%;
            padding: 14px 18px;
            background: rgba(0,0,0,0.4);
            border: 1px solid var(--glass-border);
            border-radius: 18px;
            color: var(--text);
            font-size: 1rem;
            transition: all 0.2s;
            direction: ltr;
            text-align: left;
        }
        input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 12px var(--primary-glow);
        }
        .radio-group {
            display: flex;
            gap: 25px;
            align-items: center;
            flex-wrap: wrap;
        }
        .radio-group label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: var(--text);
        }
        .input-group {
            display: flex;
            gap: 10px;
        }
        .scan-btn {
            background: var(--glass-bg);
            border: 1px solid var(--primary);
            border-radius: 18px;
            padding: 0 18px;
            color: var(--primary);
            cursor: pointer;
            transition: 0.2s;
        }
        .scan-btn:hover {
            background: var(--primary);
            color: #000;
            box-shadow: 0 0 12px var(--primary);
        }

        .btn, .action-button {
            background: linear-gradient(135deg, rgba(0,240,192,0.2), rgba(0,150,120,0.4));
            border: 1px solid var(--primary);
            padding: 12px 28px;
            border-radius: 40px;
            color: var(--primary);
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            backdrop-filter: blur(4px);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        .btn:hover, .action-button:hover {
            background: var(--primary);
            color: #03080f;
            box-shadow: 0 0 18px var(--primary-glow);
            transform: translateY(-2px);
        }
        .btn-secondary {
            background: rgba(255,255,255,0.05);
            border-color: var(--text-muted);
            color: var(--text);
        }
        .btn-secondary:hover {
            background: var(--text-muted);
            color: #03080f;
        }
        .button-group {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        .result-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: var(--card-radius);
            padding: 25px;
            border: 1px solid var(--glass-border);
            margin-top: 20px;
        }
        .status-section { text-align: center; margin-bottom: 25px; }
        .status-icon {
            font-size: 4rem;
            font-weight: bold;
            display: inline-block;
            background: rgba(0,0,0,0.3);
            width: 80px;
            height: 80px;
            line-height: 80px;
            border-radius: 50%;
            margin-bottom: 15px;
        }
        .status-text {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .status-subtext {
            color: var(--text-muted);
        }
        .product-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        .info-item {
            background: rgba(0,0,0,0.3);
            padding: 12px;
            border-radius: 20px;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 10px;
        }
        .info-label { font-weight: 600; color: var(--primary); font-size: 0.85rem; }
        .info-value { font-family: monospace; direction: ltr; text-align: left; word-break: break-all; }
        .ltr-number { direction: ltr; display: inline-block; }

        .modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(8px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
        }
        .modal-content img {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 20px;
            transform: rotate(180deg);
        }
        .close-modal {
            position: absolute;
            top: -40px;
            left: 0;
            color: white;
            font-size: 40px;
            cursor: pointer;
        }

        .qr-scanner-container {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.95);
            backdrop-filter: blur(8px);
            z-index: 1500;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .scanner-header {
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 20px;
        }
        .qr-scanner-box {
            position: relative;
            width: 80%;
            max-width: 400px;
            aspect-ratio: 1;
            background: #000;
            border-radius: 20px;
            overflow: hidden;
        }
        .video-container {
            width: 100%;
            height: 100%;
        }
        #video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .qr-frame {
            position: absolute;
            top: 10%;
            left: 10%;
            width: 80%;
            height: 80%;
            border: 2px solid var(--primary);
            border-radius: 20px;
            box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.7), 0 0 40px var(--primary);
            transition: all 0.3s;
        }
        .scan-line {
            position: absolute;
            top: 10%;
            left: 10%;
            width: 80%;
            height: 2px;
            background: var(--primary);
            box-shadow: 0 0 10px var(--primary);
            animation: scanMove 2s linear infinite;
        }
        @keyframes scanMove {
            0% { top: 10%; }
            50% { top: 88%; }
            100% { top: 10%; }
        }
        .guide-text {
            margin-top: 20px;
            color: var(--text-muted);
        }
        .scanner-controls {
            margin-top: 20px;
        }
        .control-button {
            background: var(--glass-bg);
            border: 1px solid var(--danger);
            padding: 10px 30px;
            border-radius: 40px;
            color: var(--danger);
            cursor: pointer;
        }
        #toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.9);
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            z-index: 3000;
            display: none;
            backdrop-filter: blur(8px);
            border: 1px solid var(--primary);
        }
        .warning-message, .info-message {
            padding: 12px;
            border-radius: 16px;
            margin-top: 10px;
        }
        .warning-message {
            background: rgba(255,152,0,0.2);
            border: 1px solid #ff9800;
            color: #ff9800;
        }
        .info-message {
            background: rgba(0,240,192,0.1);
            border: 1px solid var(--primary);
            color: var(--primary);
        }
        .lock-section {
            text-align: center;
            margin: 20px 0;
        }
        .lock-info {
            background: rgba(0,0,0,0.3);
            padding: 15px;
            border-radius: 20px;
        }
        .text-center { text-align: center; }
        .mt-4 { margin-top: 20px; }

        @media (max-width: 640px) {
            .step-indicator { gap: 5px; justify-content: center; }
            .step-item { width: 32px; height: 32px; }
            .product-info-grid { grid-template-columns: 1fr; }
            h1 { font-size: 1.4rem; }
            .container { padding: 70px 15px 30px; }
        }
        .product-thumbnail {
            margin-top: 8px;
        }
        .thumbnail-img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
            cursor: pointer;
            border: 2px solid var(--glass-border);
            transition: all 0.3s ease;
            background: rgba(0,0,0,0.3);
            transform: rotate(180deg);
        }
        .thumbnail-img:hover {
            transform: scale(1.05);
            border-color: var(--primary);
            box-shadow: 0 0 12px var(--primary-glow);
            
        }
        .input-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .input-group input {
            flex: 1;
        }
        
        .scan-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
        
        .scan-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .form-text {
            display: block;
            margin-top: 5px;
            font-size: 12px;
            color: #6c757d;
        }
        
        #otp-container-modal input {
            width: 13%;
        }
        /* هشدار سرقت/مفقودی */
.stolen-warning {
    background: rgba(255, 94, 124, 0.15);
    border: 2px solid var(--danger);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    animation: pulseRed 1s infinite;
}

.stolen-warning .stolen-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.stolen-warning .stolen-title {
    color: var(--danger);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stolen-warning .stolen-message {
    color: var(--text-muted);
    font-size: 14px;
}

.stolen-warning .stolen-date {
    font-size: 12px;
    margin-top: 8px;
    color: rgba(255, 94, 124, 0.8);
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 124, 0.4); border-color: #ff5e7c; }
    70% { box-shadow: 0 0 0 10px rgba(255, 94, 124, 0); border-color: #ff3333; }
    100% { box-shadow: 0 0 0 0 rgba(255, 94, 124, 0); border-color: #ff5e7c; }
}
.stolen-info {
    background: rgba(255, 94, 124, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}
.stolen-info i {
    color: var(--danger);
}