     .meme-section {
            padding: 60px 0;
            background: #ffffff;
        }
        
        .meme-container {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
        }
        
        .canvas-wrapper {
            position: relative;
            background: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 400px;
            overflow: hidden;
            padding: 10px;
        }
        
        #memeCanvas {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
        }
        
        .controls-panel {
            padding: 30px;
            background: #fff;
        }
        
        .form-label {
            font-weight: 600;
            color: #475569;
            margin-bottom: 8px;
            font-size: 14px;
        }
        
        .form-control, .form-select {
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 14px;
            transition: all 0.2s;
            font-size: 14px;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }
        
        .form-range {
            cursor: pointer;
        }
        
        .btn-meme {
            background: #522c95;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .btn-meme:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }
        
        .btn-download {
            background: #10b981;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .btn-download:hover {
            background: #059669;
            transform: translateY(-2px);
        }
        
        .template-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 8px;
            margin-bottom: 20px;
            max-height: 192px;
            overflow-y: auto;
            padding: 10px;
            background: #f8fafc;
            border-radius: 8px;
        }
        
        .template-thumb {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.2s;
        }
        
        .template-thumb:hover {
            border-color: var(--primary);
            transform: scale(1.05);
        }
        
        .template-thumb.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
        }
        
        .watermark {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            pointer-events: none;
        }
        
        .ad-space {
            background: #f1f5f9;
            border: 1px dashed #cbd5e1;
            border-radius: 8px;
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 14px;
            margin: 20px 0;
        }
        
        .text-settings-card {
            background: #f8fafc;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid #e2e8f0;
        }
        
        .text-settings-card h6 {
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 12px;
            font-size: 14px;
        }
        
        .slider-group {
            margin-bottom: 12px;
        }
        
        .slider-group label {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #64748b;
            margin-bottom: 4px;
        }
        
        .slider-value {
            font-weight: 600;
            color: var(--primary);
        }
        
        @media (max-width: 768px) {
            .meme-section {
                padding: 30px 0;
            }
            
            .controls-panel {
                padding: 20px;
            }
            
            .template-grid {
                grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
            }
        }