        .review-media-grid {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        }

        .media-thumb {
            position: relative;
            aspect-ratio: 1/1;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,.08);
            cursor: zoom-in;
            padding: 0;
            background: #f8f9fa;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .media-thumb:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .media-thumb img,
        .media-thumb video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .media-thumb .video-badge {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(0,0,0,.6);
            color:#fff;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 8px;
        }

        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .play-icon::after {
            content: "";
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            border-left: 12px solid #333;
            margin-left: 3px;
        }

        /* مودال ثبت نظر */
        .custom-review-modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1050;
            padding: 1rem;
        }

        .custom-review-dialog {
            background: #fff;
            padding: 1.5rem;
            border-radius: 12px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 10px;
            right: 15px;
            border: none;
            background: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6c757d;
            transition: color 0.2s;
        }

        .close-modal:hover { color: #000; }

        /* آپلود فایل */
        .drop-area {
            background: #f9fafb;
            border: 2px dashed #ccc;
            transition: all .3s;
            cursor: pointer;
        }

        .drop-area.dragover {
            background: #e6f0ff;
            border-color: #0d6efd;
        }

        .file-preview {
            position: relative;
            width: 100px;
            height: 100px;
            border-radius: 8px;
            overflow: hidden;
        }

        .file-preview img,
        .file-preview video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .file-preview .remove-file {
            position: absolute;
            top: 5px;
            left: 5px;
            width: 24px;
            height: 24px;
            background: rgba(255,0,0,0.8);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .file-preview:hover .remove-file { opacity: 1; }

        /* لایت‌باکس */
        .media-lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.85);
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .media-lightbox.active {
            display: flex;
            flex-direction: column;
        }

        .lightbox-content img,
        .lightbox-content video {
            max-width: 90vw;
            max-height: 80vh;
            border-radius: 10px;
            object-fit: contain;
        }

        .close-lightbox {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 2rem;
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
        }

        /* دکمه لایک */
        .like-btn.active {
            background-color: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
        }

        /* انیمیشن */
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .custom-review-modal { animation: fadeIn 0.3s ease-out; }
