 :root {
            --primary: #b00b29; 
            --primary-hover: #8a081f;
            --bg-main: #fafafa;
            --bg-card: #ffffff;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
            --input-bg: #f8fafc;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
        body { font-family: 'Cairo', 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
        .container { max-width: 1300px; margin: 40px auto; width: 100%; padding: 0 20px; }
        
        #upload-section { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; background: transparent; padding: 20px; }
        #upload-section h1 { font-family: 'Playfair Display', 'Cairo', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: #000; margin-bottom: 20px; }
        #upload-section p { font-size: clamp(0.95rem, 2vw, 1.1rem); color: #111; margin-bottom: 50px; max-width: 600px; line-height: 1.6; }
        
        .upload-btn-label { background-color: var(--primary); color: #fff; font-family: 'Playfair Display', 'Cairo', serif; font-size: clamp(1.2rem, 3vw, 2rem); padding: 20px 40px; border-radius: 18px; cursor: pointer; box-shadow: 0 15px 40px rgba(176, 11, 41, 0.5); transition: all 0.3s ease; display: inline-block; text-align: center; width: 100%; max-width: 400px; }
        .upload-btn-label:hover { background-color: var(--primary-hover); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(176, 11, 41, 0.6); }

        #ai-loader { display: none; text-align: center; padding: 80px 20px; }
        .spinner { width: 70px; height: 70px; border: 4px solid #e2e8f0; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s infinite linear; margin: 0 auto 20px; }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        #studio { display: none; grid-template-columns: 450px 1fr; gap: 30px; animation: fadeIn 0.6s ease; align-items: start; padding-bottom: 30px; }
        .preview-column { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; z-index: 50; width: 100%; min-width: 0; }
        .preview-panel { background: var(--bg-card); border-radius: 24px; padding: 25px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; }
        
        .mobile-download-icon { display: none !important; }
        @media (min-width: 1025px) { .mobile-download-icon { display: none !important; visibility: hidden; opacity: 0; pointer-events: none; } }

        .preview-scale-wrapper { width: 100%; max-width: 380px; aspect-ratio: 1/1; position: relative; margin: 0 auto 15px; }
        
        .preview-scale-box { position: absolute; width: 400px; height: 400px; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); display: flex; justify-content: center; align-items: center; }

        .canvas-guide { position: absolute; width: 260px; height: 260px; top: 70px; left: 70px; border: 1.5px dashed rgba(148, 163, 184, 0.7); border-radius: 50%; pointer-events: none; z-index: 99; transition: border-radius 0.3s; }
        .canvas-guide.square-mode-guide { border-radius: 36px; }

        .layer-bg, .cinematic-lighting { position: absolute; border-radius: 50%; z-index: 1; transition: 0.3s; pointer-events: none; width: 100%; height: 100%; top:0; left:0; }
        .cinematic-lighting { z-index: 2; mix-blend-mode: overlay; opacity: 0.85; display: none; }
        .layer-bg.square-mode-shape, .cinematic-lighting.square-mode-shape { border-radius: 40px !important; }
        
        .layer-magazine-text { position: absolute; z-index: 3; font-weight: 900; text-transform: uppercase; white-space: nowrap; pointer-events: none; text-shadow: 0 15px 30px rgba(0,0,0,0.3); left: 50%; top: 50%; text-align: center; }
        .layer-border-back, .layer-border-front, .layer-text-badge { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
        .layer-border-back { z-index: 4; }
        .layer-border-front { z-index: 6; }
        .layer-text-badge { z-index: 7; }
        
        .workspace-mask { position: absolute; width: 400px; height: 400px; top: 0; left: 0; z-index: 5; transform: translate3d(0,0,0); }
        
        .workspace-mask.normal-mode {
            clip-path: circle(130px at 200px 200px);
            -webkit-clip-path: circle(130px at 200px 200px);
        }
        .workspace-mask.popout-mode {
            clip-path: url(#popout-clip);
            -webkit-clip-path: url(#popout-clip);
        }
        .workspace-mask.square-normal-mode {
            clip-path: inset(70px round 36px);
            -webkit-clip-path: inset(70px round 36px);
        }
        .workspace-mask.square-popout-mode {
            clip-path: url(#popout-square-clip);
            -webkit-clip-path: url(#popout-square-clip);
        }

        #cropper-wrap { position: absolute; width: 100%; height: 100%; top: 0; left: 0; touch-action: none; } 
        .cr-boundary, .cr-viewport { background: transparent !important; border: none !important; box-shadow: none !important; }
        
        .zoom-controls { width: 100%; display: flex; align-items: center; gap: 15px; background: var(--input-bg); padding: 12px 20px; border-radius: 16px; border: 1px solid var(--border-color); position: relative; z-index: 10; }
        .download-wrapper { width: 100%; }
        .btn-magic { width: 100%; background: var(--primary); color: white; border: none; padding: 20px; border-radius: 16px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(176, 11, 41, 0.4); display: flex; justify-content: center; align-items: center; gap: 10px; font-family: 'Cairo', sans-serif; }
        .btn-magic:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(176, 11, 41, 0.6); background: var(--primary-hover); }

        .controls-column { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }
        .control-card { background: var(--bg-card); border-radius: 20px; padding: 25px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); width: 100%; }
        .card-title { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .card-title .svg-icon-wrap { background: rgba(176, 11, 41, 0.1); color: var(--primary); padding: 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
        .card-title svg { width: 22px; height: 22px; stroke-width: 2.5; }

        .preset-category-title { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); margin: 20px 0 10px; text-transform: uppercase; letter-spacing: 0.5px; display: block; border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
        .preset-category-title:first-of-type { margin-top: 0; }
        .preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 15px; }
        
        .btn-preset { background: #f8fafc; border: 1px solid #e2e8f0; padding: 16px 10px; border-radius: 16px; color: #0f172a; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'Cairo', sans-serif; }
        .btn-preset:hover { background: #ffffff; border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
        .btn-preset .icon-emoji { font-size: 1.6rem; }

        .tool-group { margin-bottom: 25px; width: 100%; position: relative;}
        .tool-group:last-child { margin-bottom: 0; }
        .tool-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 1px; }

        .scrollable-tool-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
        .mini-arrow { position: absolute; z-index: 12; width: 32px; height: 32px; border-radius: 50%; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.12); border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; cursor: pointer; top: 50%; transform: translateY(-50%); color: var(--text-main); transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s; opacity: 0; pointer-events: none; }
        .mini-arrow:active { background: var(--primary); color: white; transform: translateY(-50%) scale(0.9); }
        .mini-arrow svg { width: 16px; height: 16px; stroke-width: 2.5; }
        .mini-arrow.left { left: -8px; }
        .mini-arrow.right { right: -8px; }
        .scrollable-tool-wrapper.has-overflow-left .mini-arrow.left { opacity: 1; pointer-events: auto; }
        .scrollable-tool-wrapper.has-overflow-right .mini-arrow.right { opacity: 1; pointer-events: auto; }

        .scroll-content { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; gap: 12px; padding: 5px 2px; width: 100%; scrollbar-width: none; cursor: grab; user-select: none; touch-action: pan-x; }
        .scroll-content::-webkit-scrollbar { display: none; }
        .grabbing { cursor: grabbing !important; scroll-snap-type: none !important; }
        
        .swatch-btn { flex: 0 0 55px; height: 55px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; background-color: #f1f5f9; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); scroll-snap-align: start; pointer-events: auto; }
        .swatch-btn:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .swatch-btn.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(176, 11, 41, 0.2); transform: scale(1.05); }
        .transparent-swatch { background: repeating-conic-gradient(#e2e8f0 0% 25%, #ffffff 0% 50%) 50% / 10px 10px; }
        
        .border-preview { width: 80%; height: 80%; border-radius: 50%; mask: radial-gradient(circle, transparent 52%, black 54%); -webkit-mask: radial-gradient(circle, transparent 52%, black 54%); }
        .border-preview.square-preview-shape { border-radius: 8px !important; mask: none !important; -webkit-mask: none !important; border: 3px solid #cbd5e1; }
        .border-none .border-preview { border: 2px dashed #94a3b8; background: transparent !important; mask: none; -webkit-mask: none; }
        
        .glow-preview { width: 40%; height: 40%; border-radius: 50%; background: #ffffff; }
        .badge-preview { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
        
        .btn-opt { flex: 1 1 auto; white-space: nowrap; background: #f8fafc; border: 1px solid var(--border-color); color: var(--text-muted); padding: 14px 20px; border-radius: 12px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; display: flex; justify-content: center; align-items: center; gap: 6px; scroll-snap-align: start; font-family: 'Cairo', sans-serif; }
        .btn-opt:hover { background: #f1f5f9; color: var(--text-main); }
        .btn-opt.active { background: rgba(176, 11, 41, 0.08); color: var(--primary); border-color: var(--primary); }
        .btn-premium { background: linear-gradient(45deg, rgba(176, 11, 41, 0.05), rgba(176, 11, 41, 0.1)); border-color: rgba(176, 11, 41, 0.3); color: var(--primary); }
        .btn-premium.active { background: var(--primary); color: white; box-shadow: 0 0 20px rgba(176, 11, 41, 0.4); }

        .text-input, .select-input { width: 100%; background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-main); padding: 14px; border-radius: 12px; font-family: 'Cairo', 'Inter', sans-serif; font-size: 16px; font-weight: 500; outline: none; transition: 0.3s; }
        .text-input:focus, .select-input:focus { background: #ffffff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(176, 11, 41, 0.1); }
        
        .slider-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; width: 100%;}
        .slider-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 700; min-width: 90px; text-transform: uppercase; }
        
        input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; } 
        input[type=range]::-webkit-slider-thumb { 
            -webkit-appearance: none; 
            height: 24px; 
            width: 8px; 
            border-radius: 3px; 
            background: var(--primary); 
            cursor: pointer; 
            margin-top: -5px; 
            box-shadow: 0 0 8px rgba(176, 11, 41, 0.5); 
            transition: 0.1s; 
        }
        input[type=range]::-webkit-slider-runnable-track { 
            width: 100%; 
            height: 14px; 
            cursor: pointer; 
            background: repeating-linear-gradient(to right, #94a3b8 0px, #94a3b8 1px, transparent 1px, transparent 8px); 
            border-radius: 3px; 
            border: 1px solid #cbd5e1;
        }
        input[type=range]::-moz-range-thumb {
            height: 24px; 
            width: 8px; 
            border-radius: 3px; 
            background: var(--primary); 
            cursor: pointer; 
            border: none;
            box-shadow: 0 0 8px rgba(176, 11, 41, 0.5); 
        }
        input[type=range]::-moz-range-track {
            width: 100%; 
            height: 14px; 
            cursor: pointer; 
            background: repeating-linear-gradient(to right, #94a3b8 0px, #94a3b8 1px, transparent 1px, transparent 8px); 
            border-radius: 3px; 
            border: 1px solid #cbd5e1;
        }

        .color-picker-wrapper { 
            position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; 
            border: 2px dashed #94a3b8; background: #f8fafc !important;
        }
        .color-picker-wrapper input[type="color"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; border: none; padding: 0; }
        .color-picker-wrapper .swatch-icon svg { stroke: #64748b; width: 24px; height: 24px; }
        .color-picker-wrapper.active { border: 2px solid var(--primary); background: rgba(176, 11, 41, 0.05) !important; }
        .color-picker-wrapper.active .swatch-icon svg { stroke: var(--primary); }

        .switch-wrapper { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 15px 20px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); flex-wrap: wrap; gap: 10px; width: 100%; margin-bottom: 10px;}
        .switch-text { font-size: 0.95rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
        .switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0;}
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
        .slider-toggle:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        input:checked + .slider-toggle { background-color: var(--primary); }
        input:checked + .slider-toggle:before { transform: translateX(24px); }

        .pattern-dots { background-image: radial-gradient(rgba(0,0,0,0.1) 2px, transparent 2px) !important; background-size: 20px 20px !important; }
        .pattern-grid { background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px) !important; background-size: 20px 20px !important; }
        .pattern-pixel { background-image: linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(0,0,0,0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.08) 75%) !important; background-size: 16px 16px !important; }
        
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        @media (max-width: 1024px) { 
            body { padding: 10px; background: var(--bg-main); height: auto; overflow-y: auto; padding-bottom: 30px; }
            .container { padding: 0; height: auto; overflow: visible; margin: 20px auto;}
            #studio { display: none; flex-direction: column; gap: 15px; height: auto; overflow: visible; } 
            .preview-column { position: relative; top: 0; background: var(--bg-card); padding: 0; z-index: 50; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; }
            .preview-panel { padding: 20px 15px; border-radius: 20px; background: transparent; }
            
            .mobile-download-icon { display: flex !important; position: absolute; top: 15px; right: 15px; width: 44px; height: 44px; background: var(--primary); color: #ffffff; border: none; border-radius: 50%; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(176, 11, 41, 0.35); cursor: pointer; z-index: 100; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
            .mobile-download-icon:active { transform: scale(0.9) translateY(1px); background-color: var(--primary-hover); }
            
            .preview-scale-wrapper { max-width: 310px; margin: 0 auto 10px auto; }
            .preview-scale-box { transform: translate(-50%, -50%) scale(0.77); }
            .zoom-controls { margin-top: 5px; padding: 10px 15px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 14px; max-width: 280px; width: 100%; margin-left: auto; margin-right: auto; }
            
            .mobile-tabs-container { display: flex !important; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 15px; gap: 12px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); cursor: grab; user-select: none; touch-action: pan-x; }
            .mobile-tabs-container::-webkit-scrollbar { display: none; }
            .tab-pill { flex: 0 0 auto; padding: 12px 24px; border-radius: 30px; background: #f1f5f9; color: #475569; font-size: 0.9rem; font-weight: 700; transition: all 0.3s ease; cursor: pointer; white-space: nowrap; border: 1px solid transparent; scroll-snap-align: start; }
            .tab-pill.active { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(176, 11, 41, 0.3); transform: translateY(-2px); }
            
            @keyframes subtlePulse { 0% { box-shadow: 0 0 0 0 rgba(176, 11, 41, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(176, 11, 41, 0); } 100% { box-shadow: 0 0 0 0 rgba(176, 11, 41, 0); } }
            .tab-pill.hint-next { animation: subtlePulse 2s infinite; border: 1px solid rgba(176, 11, 41, 0.3); color: var(--primary); background: #fff0f2; }

            .controls-column { padding: 0; overflow: visible; }
            .control-card { padding: 24px 20px; border-radius: 20px; display: none; margin: 0; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); background: var(--bg-card); }
            .control-card.active-card { display: block; animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
            .switch-wrapper { margin-bottom: 20px; border-radius: 16px; padding: 15px; background: var(--input-bg); border: 1px solid var(--border-color); box-shadow: none; }
            .slider-wrapper { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 18px; }
            .slider-label { margin-bottom: 2px; }
            .desktop-only { display: none !important; }
        }
        @media (max-width: 550px) and (orientation: landscape) { .preview-scale-wrapper { max-width: 170px; } .preview-scale-box { transform: translate(-50%, -50%) scale(0.42); } }
        
        .header { border: 2px solid #B30032; padding: 10px; display: flex; justify-content: space-between; align-items: center; background-color:#FAF9F6; }
        .logo { display: flex; align-items: center; }
        .logo-image { width: 40px; height: 40px; margin-left: 10px; }
        .navigation { display: flex; justify-content: flex-end; align-items: center; }
        .menu li { margin-left: 10px; }
        .menu li a { text-decoration: none; color: #333; font-weight: bold; }
        .hamburger { display:none; cursor:pointer; user-select:none; }

        @media only screen and (max-width : 1900px) {
            .header { flex-direction :row; align-items :center; }
            .logo, .navigation { justify-content :space-between; }
            .menu { flex-direction :column; align-items :flex-start; position :fixed; top :100%; right: 100%; height :40vh; background-color :#FAF9F6; transition :bottom .3s ease-in-out; padding-right :0rem; top: 56px; width:300px; align-items: center; border-radius: 8px; text-align:center; padding-top: 10px; list-style: none; z-index: 9999; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); }
            .menu.active { left :10px; }
            .menu li { margin-left :0; margin-bottom :1.5rem; }
            .menu li:hover { border: 2px solid #B30032; font-size: 102%; border-radius: 6px; }
            .hamburger { display:block; }
        }

        .dropdown { position: relative; display: inline-block; align-items :flex-start; align-items: center; padding-left: 70px; text-decoration: none; cursor: pointer; }
        .dropdown::after { content :'▼'; font-size :10px; margin-right :5px; color: #B30032; }
        .dropdown-menu { display: none; position: absolute; background-color: #FAF9F6; min-width: 1000px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); padding: 30px 16px; z-index: 1; right: 45%; float: center; transform: translateX(50%); padding-right: 80px; border-radius: 8px; z-index: 9999; text-align: right; }
        .dropdown a { text-decoration: none; font-size: 16px; color: black; }
        .dropdown-menu li { float: right; width: 20%; list-style-type: none; margin-bottom: 10px; color: black; }
        .dropdown-menu li ul { padding:0; margin: 0; display: flex; flex-direction: column; margin-top: 15px; color: black; }
        .dropdown-menu li ul a { text-decoration: none; color: black; }
        .dropdown-menu li a { text-decoration: none; color: black; font-weight: bold; }
        .dropdown-menu li ul li { margin-bottom: 5px; width: auto; }
        .dropdown-menu li a:hover { font-size: 110%; }
        .dropdown-menu.active { display: block; }
        .dropdown-menu .men li a svg { vertical-align: middle; margin-left: 5px; }

        @media only screen and (max-width :1180px) { .dropdown-menu { min-width: 900px; transform: translateX(50%); padding-right: 70px; } }
        @media only screen and (max-width :1060px) { .dropdown-menu { min-width: 800px; transform: translateX(50%); padding-right: 70px; } }
        @media only screen and (max-width :975px) { .dropdown-menu { min-width: 780px; transform: translateX(50%); padding-right: 70px; } }
        @media only screen and (max-width :890px) { .dropdown-menu { min-width: 650px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 25%; margin-bottom: 30px; } }
        @media only screen and (max-width :800px) { .dropdown-menu { min-width: 600px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 33.33%; margin-bottom: 30px; } }
        @media only screen and (max-width :750px) { .dropdown-menu { min-width: 550px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 33.33%; margin-bottom: 30px; } }
        @media only screen and (max-width :690px) { .dropdown-menu { min-width: 500px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 50%; margin-bottom: 30px; } }
        @media only screen and (max-width :650px) { .dropdown-menu { min-width: 450px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 50%; margin-bottom: 30px; } }
        @media only screen and (max-width :600px) { .dropdown-menu { min-width: 400px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 50%; margin-bottom: 30px; } }
        @media only screen and (max-width :550px) { .dropdown-menu { min-width: 350px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 50%; margin-bottom: 30px; } }
        @media only screen and (max-width :480px) { .dropdown-menu { min-width: 280px; transform: translateX(50%); padding-right: 70px; } .dropdown-menu li { width: 100%; margin-bottom: 30px; } }
        @media only screen and (max-width :420px) { .dropdown-menu { min-width: 260px; transform: translateX(50%); padding-right: 20px; } .dropdown-menu li { width: 100%; margin-bottom: 30px; margin-right: 20px; } }
        .dropdown-menu .men li { margin-bottom: 15px; }

        .footer { display: flex; flex-direction: column; background-color: #B30032; padding: 20px; align-items: center; }
        .footer div { width: 100%; margin-bottom: 20px; text-align: center; }
        .footer div h3 { color: white; font-family: 'Cairo', sans-serif; margin-bottom: 15px; }
        .footer a { display: block; text-decoration: none; color: white; margin-bottom: 8px; }
        @media (min-width: 375px) { .footer { flex-direction: row; flex-wrap: wrap; } .footer div { width: 50%; margin-bottom: 50px; } }
        @media (min-width: 600px) { .footer div { width: 30%; margin-bottom: 0px; } }
        .footer-bottom { text-align: center; margin-top: 20px; padding: 20px; border-top: 1px solid var(--border-color); }
        .footer-bottom a { text-decoration: none; color: black; }
        .footer div a:hover { font-size: 110%; }

        .editorial-section { max-width: 1100px; margin: 100px auto 60px; padding: 0 20px; font-family: 'Cairo', sans-serif; color: var(--text-main); line-height: 1.7; text-align: right; }
        .ed-hero { text-align: center; margin-bottom: 80px; }
        .ed-hero h2 { font-family: 'Playfair Display', 'Cairo', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: #000; margin-bottom: 20px; letter-spacing: -0.5px; }
        .ed-hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

        .ed-feature-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
        .ed-feature-row.reverse { flex-direction: row-reverse; }
        
        .ed-content { flex: 1; }
        .ed-content h3 { font-size: 2rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; letter-spacing: -0.5px; }
        .ed-content p { font-size: 1.1rem; color: #475569; margin-bottom: 20px; }
        
        .ed-image-container { flex: 1; border-radius: 24px; overflow: hidden; background: #f8fafc; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); aspect-ratio: 4/3; display: flex; justify-content: center; align-items: center; position: relative; }
        .ed-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
        .ed-image-container:hover img { transform: scale(1.03); }

        @media (max-width: 1024px) {
            .editorial-section { margin: 60px auto 40px; padding: 0 15px; }
            .ed-hero { margin-bottom: 40px; }
            .ed-feature-row, .ed-feature-row.reverse { flex-direction: column !important; gap: 30px; margin-bottom: 50px; }
            .ed-content h3 { font-size: 1.6rem; margin-bottom: 12px; text-align: right; }
            .ed-content p { font-size: 1rem; margin-bottom: 15px; text-align: right; }
            .ed-image-container { width: 100%; aspect-ratio: 16/10; }
        }

        .ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
        .ed-card { padding: 40px; background: var(--bg-card); border-radius: 24px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); transition: transform 0.3s; text-align: right; }
        .ed-card:hover { transform: translateY(-5px); }
        .ed-card h4 { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; color: #0f172a; }
        .ed-card p { font-size: 1.05rem; color: #475569; }

        .ed-steps-container { background: var(--bg-card); border-radius: 24px; padding: 50px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); margin-bottom: 80px; }
        .ed-steps-title { font-family: 'Playfair Display', 'Cairo', serif; font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 40px; color: #000; }
        .ed-step { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
        .ed-step:last-child { margin-bottom: 0; }
        .ed-step-number { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
        .ed-step-content h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: #0f172a; }
        .ed-step-content p { color: #475569; font-size: 1.05rem; line-height: 1.6; }

        .faq-container { margin-top: 80px; max-width: 800px; margin-left: auto; margin-right: auto; }
        .faq-title { font-family: 'Playfair Display', 'Cairo', serif; font-size: 2.5rem; text-align: center; margin-bottom: 40px; font-weight: 800; color: #000;}
        .faq-item { border-bottom: 1px solid var(--border-color); padding: 25px 0; text-align: right; }
        .faq-item:last-child { border-bottom: none; }
        .faq-question { font-weight: 700; font-size: 1.2rem; color: #000; display: flex; justify-content: space-between; align-items: center; user-select: none; cursor: pointer; }
        .faq-answer { color: #475569; font-size: 1.05rem; }
        .faq-answer p { padding-top: 15px; }