@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

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

/* Sync Status */
.cloud-sync-status {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-500);
}

.sync-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10B981;
}

.sync-dot.syncing {
    animation: pulseSync 1.5s infinite;
    background: #F59E0B;
}

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

/* Advanced Tools Tab Redesign */
.advanced-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.advanced-hero-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.advanced-hero-content p {
    font-size: 14px;
    opacity: 0.8;
}

.advanced-stats-strip {
    display: flex;
    gap: 24px;
}

.strip-item {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.strip-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.7;
}

.strip-val {
    font-size: 16px;
    font-weight: 800;
}

.adv-group-section {
    margin-bottom: 40px;
}

.adv-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.adv-group-header i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.adv-group-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-800);
}

.code-injection-container-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.code-editor-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.editor-header {
    background: #0f172a;
    padding: 12px 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}

.editor-header span {
    color: #38bdf8;
    font-family: monospace;
}

.code-editor-card textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-family: 'Courier New', monospace;
    padding: 20px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

@media (max-width: 768px) {
    .advanced-hero-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .code-injection-container-modern {
        grid-template-columns: 1fr;
    }
}

/* Advanced Tools */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--gray-50);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card.highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.tool-icon {
    font-size: 32px;
}

.tool-card h3 {
    font-size: 16px;
    font-weight: 800;
}

.tool-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Advanced Tool Items */
.bulk-tool-item {
    transition: transform 0.2s, border-color 0.2s;
}
.bulk-tool-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light) !important;
}

/* Lightbox Styles for Detail View */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 10001;
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out; opacity: 0; transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-img { 
    max-width: 90%; max-height: 90vh; 
    border-radius: 12px; box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }

:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #60A5FA;
    --success: #10B981;
    --success-dark: #059669;
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --warning: #F59E0B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --sidebar-width: 280px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

body {
    font-family: 'Almarai', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    /* Basic Copy Protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Lucide Icon Sizing in Sidebar */
.tab-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

/* Dashboard Stat Icons */
.stat-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}

/* Quick Action Icons */
.ac-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
    color: var(--primary);
}

.action-card.highlight .ac-icon i {
    color: var(--primary-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* App Layout with Sidebar */
#app {
    display: flex;
    min-height: 100vh;
    flex-direction: row-reverse;
}

/* Vertical Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: none;
    border-left: 1px solid var(--gray-200);
    position: fixed;
    left: auto;
    right: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.tab {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius);
    font-family: 'Almarai', sans-serif;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.tab .tab-icon {
    font-size: 18px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-200);
}

.btn-support-special {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    border: 1px solid #FECDD3;
    border-radius: var(--radius);
    color: #BE123C;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
}

.btn-support-special:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.1);
    background: #FECDD3;
}

/* Support Modal Styles */
.support-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: right;
    position: relative;
    background: #F9FAFB;
}

[dir="ltr"] .support-btn {
    text-align: left;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.support-btn .btn-icon {
    font-size: 24px;
    margin-left: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[dir="ltr"] .support-btn .btn-icon {
    margin-left: 0;
    margin-right: 12px;
}

.support-btn .btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.support-btn .label {
    font-weight: 800;
    font-size: 15px;
    color: #111827;
}

.support-btn .sub {
    font-size: 12px;
    color: #6B7280;
}

.support-btn.bmc {
    background: #FFF9C4;
    border-color: #FDE047;
}
.support-btn.bmc:hover {
    background: #FEF08A;
}

.support-btn.paypal {
    background: #E0F2FE;
    border-color: #7DD3FC;
}
.support-btn.paypal:hover {
    background: #BAE6FD;
}

.support-btn.benefit {
    background: #FFE4E6;
    border-color: #FDA4AF;
}
.support-btn.benefit:hover {
    background: #FECDD3;
}

.copy-icon {
    font-size: 16px;
    opacity: 0.5;
}

/* Sidebar Styles Improvement */
.app-sidebar {
    border-left: 1px solid rgba(0,0,0,0.05);
    box-shadow: -5px 0 25px rgba(0,0,0,0.03);
}

.tab {
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 14px 16px;
}

.tab:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.tab.active {
    background: #EFF6FF; /* Light blue background instead of solid primary for cleaner look */
    color: var(--primary);
    font-weight: 800;
    box-shadow: none;
    border-right: 3px solid var(--primary); /* Accent line */
    border-radius: 8px 0 0 8px; /* Flat edge on right */
}

/* Dashboard Redesign Styles */
.dashboard-hero-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 48px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
}

.dashboard-hero-modern::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 45%);
    pointer-events: none;
}

.hero-text {
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.version-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    color: #38bdf8;
    backdrop-filter: blur(4px);
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-tags span {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-btns {
    display: flex;
    gap: 14px;
}

.btn-secondary-glass {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-secondary-glass:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-illustration {
    position: relative;
    width: 320px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illus-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0.2;
    filter: blur(50px);
    position: absolute;
}

.illus-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 24px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    position: absolute;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
    font-size: 14px;
}

.ic1 { top: 20px; left: 0px; animation-delay: 0s; z-index: 2; }
.ic2 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 1.5s; z-index: 1; }
.ic3 { bottom: 30px; left: 40px; animation-delay: 3s; z-index: 3; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.features-section-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.feat-card-d {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    text-align: center;
    transition: 0.3s;
}

.feat-card-d:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.feat-icon-d {
    font-size: 32px;
    margin-bottom: 12px;
    background: var(--gray-50);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feat-card-d h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feat-card-d p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.stat-card-modern {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.purple .stat-icon { background: #f3e8ff; color: #7c3aed; }
.blue .stat-icon { background: #e0f2fe; color: #0284c7; }
.green .stat-icon { background: #dcfce7; color: #16a34a; }
.orange .stat-icon { background: #ffedd5; color: #ea580c; }

.stat-info h3 {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-text {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

.dashboard-layout-split {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-layout-split { grid-template-columns: 1fr; }
    .hero-illustration { display: none; }
    .dashboard-hero-modern { text-align: center; justify-content: center; }
    .hero-text { text-align: center; margin: 0 auto; }
    .hero-btns { justify-content: center; }
}

.dash-section {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f8fafc;
}

.section-head h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.actions-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: right;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.action-card.highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.action-card.highlight:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.15);
}

.ac-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.ac-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1e293b;
}

.ac-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.guide-step-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
}

.guide-step-item.complete .step-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.step-text {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.guide-step-item:hover .step-text {
    color: var(--primary);
}

.sample-data-card {
    margin-top: 32px;
    padding: 24px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 16px;
    text-align: center;
}

.sample-data-card h3 {
    font-size: 16px;
    color: #92400e;
    margin-bottom: 6px;
}

.sample-data-card p {
    font-size: 14px;
    color: #b45309;
    margin-bottom: 16px;
}

.btn-sm-outline {
    background: white;
    border: 1px solid #f59e0b;
    color: #d97706;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.btn-sm-outline:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: 0;
    margin-right: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 32px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
    transition: padding 0.3s;
}

@media (max-width: 768px) {
    .app-header {
        padding: 16px 20px;
        padding-right: 70px; /* Make space for menu button in RTL */
    }
    
    [dir="ltr"] .app-header {
        padding-right: 20px;
        padding-left: 70px; /* Make space for menu button in LTR */
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions button {
        width: 100%;
        justify-content: center;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .stat-card-header {
        margin-bottom: 0;
        flex-direction: row-reverse;
        gap: 12px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .stat-card-trend {
        display: none;
    }
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-card-icon {
    font-size: 32px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-card-trend {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
    margin-top: 8px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: var(--white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
    color: var(--white);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content */
.main-content {
    padding: 32px;
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    
    .section {
        padding: 20px;
        border-radius: 16px;
    }
    
    .section h2 {
        font-size: 18px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Section */
.section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.section-header .actions {
    display: flex;
    gap: 12px;
}

.section h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

/* Search and Filter Bar */
.toolbar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-group select {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.product-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.product-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-card-actions {
    display: flex;
    gap: 10px;
}

.product-card-actions button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* Design Workspace Layout */
.design-workspace {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    min-height: 700px;
    box-shadow: var(--shadow-xl);
}

.design-nav {
    width: 200px;
    background: #fff;
    border-left: 1px solid var(--gray-200);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.design-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    color: var(--gray-500);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
    font-family: inherit;
    font-size: 13.5px;
}

.design-nav-item i {
    width: 18px;
    height: 18px;
}

.design-nav-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.design-nav-item.active {
    background: #f1f5f9;
    color: var(--primary);
    border-color: #e2e8f0;
}

.design-nav-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.design-config-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
}

.design-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.section-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-intro h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.section-intro p {
    color: var(--gray-500);
    font-size: 15px;
}

.badge-pill {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
}

/* Professional Templates List View */
.templates-grid-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-list-item:hover {
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.template-list-item.active {
    background: #eff6ff;
    border-color: var(--primary);
    border-right: 4px solid var(--primary);
}

.t-list-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 16px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.t-list-content {
    flex: 1;
    min-width: 0;
}

.t-list-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-premium-dot {
    font-size: 12px;
    vertical-align: middle;
}

.t-list-desc {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-list-status {
    padding-right: 16px;
}

.t-selected-label {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.t-select-action {
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.template-list-item:hover .t-select-action {
    color: var(--primary);
}

/* Config Cards */
.config-card {
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.config-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.identity-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    right: 14px;
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.input-with-icon input {
    padding-right: 44px !important;
}

/* Styling Section Custom */
.color-pickers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.color-picker-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-preview-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.color-preview-box input[type="color"] {
    width: 150%;
    height: 150%;
    transform: translate(-25%, -25%);
    cursor: pointer;
    border: none;
}

.color-label {
    display: flex;
    flex-direction: column;
}

.color-label span {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
}

.color-label code {
    font-size: 12px;
    color: var(--gray-500);
    font-family: monospace;
}

.font-preview-box {
    margin-top: 16px;
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    color: var(--gray-800);
}

/* SEO Layout Custom */
.seo-config-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.preview-group {
    margin-bottom: 24px;
}

.preview-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.btn-primary-ghost {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-ghost:hover {
    background: var(--primary);
    color: white;
}

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .design-workspace {
        flex-direction: column;
    }
    .design-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-left: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .design-nav-item {
        white-space: nowrap;
    }
    .design-nav-footer {
        display: none;
    }
    .identity-config-grid, .seo-config-layout {
        grid-template-columns: 1fr;
    }
}

/* New Design Tab Styles */
.design-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.design-main-area {
    flex: 1;
}

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

.section-header-row h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.badge {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.design-sidebar {
    position: sticky;
    top: 100px;
}

.settings-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: var(--gray-50);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 24px;
}

.setting-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.setting-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.2s;
}

[dir="ltr"] .input-icon {
    left: 12px;
    right: auto;
}

[dir="ltr"] .input-icon-wrapper input {
    padding: 12px 12px 12px 40px;
}

.input-icon-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.mt-2 {
    margin-top: 12px;
}

.color-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-input-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.color-input-item input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

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

.color-info span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.color-info code {
    font-family: monospace;
    font-size: 13px;
    color: var(--gray-900);
    background: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid var(--gray-200);
}

.select-wrapper select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.select-wrapper select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Template Preview Enhancements */
.template-preview {
    height: 180px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.template-card:hover .template-preview {
    transform: scale(1.02);
}

.template-info {
    padding: 16px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.template-name {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Responsive Design for New Layout */
@media (max-width: 1024px) {
    .design-container {
        grid-template-columns: 1fr;
    }
    
    .design-sidebar {
        position: static;
        order: -1; /* Sidebar on top on mobile/tablet */
    }
    
    .settings-card {
        margin-bottom: 24px;
    }
    
    .color-inputs {
        flex-direction: row;
    }
    
    .color-input-item {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .color-inputs {
        flex-direction: column;
    }
}

/* Customization Panel */
.customization-panel {
    max-width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.2s;
    background: var(--white);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[type="color"] {
    width: 100%;
    height: 56px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 4px;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-group small {
    display: block;
    margin: 10px 0 0 0;
    color: var(--gray-600);
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.file-upload {
    position: relative;
    display: inline-block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 2px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.close-btn {
    background: var(--gray-100);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--gray-50);
}

/* Preview Modal */
.preview-modal .modal-content {
    max-width: 1200px;
    height: 90vh;
}

.preview-modal .modal-body {
    padding: 0;
    height: calc(100% - 140px);
}

.preview-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* AI Button */
.btn-ai-magic {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-ai-magic:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-ai-magic.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-ai-magic.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Sample Data Modal */
.sample-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sample-option-btn {
    padding: 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: right;
    font-size: 16px;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-800);
    width: 100%;
}

.sample-option-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

[dir="ltr"] .sample-option-btn {
    text-align: left;
}

/* RTL Adjustments */
[dir="rtl"] .form-group input[type="checkbox"] {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .search-box::before {
    left: auto;
    right: 16px;
}

[dir="rtl"] .search-box input {
    padding: 12px 44px 12px 16px;
}

/* Mobile */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    
    .app-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .app-main {
        margin-left: 0;
        margin-right: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 8px;
    }

    .btn-primary, .btn-secondary, .btn-success {
        padding: 10px 16px;
        font-size: 13px;
    }

    .products-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    .section-header .actions button,
    .section-header .actions label {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 20px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Theme Custom Variables */
:root {
    --theme-primary: #2563EB;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, #1e40af 100%);
}

.tab.active {
    color: var(--theme-primary);
    border-right-color: var(--theme-primary);
}

.section-header h2::before, .section h2::before {
    background: linear-gradient(180deg, var(--theme-primary) 0%, var(--primary-light) 100%);
}

/* SEO Preview Mockup */
.seo-preview-mockup {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-family: arial, sans-serif;
}
.seo-url { color: #202124; font-size: 12px; margin-bottom: 4px; }
.seo-title { color: #1a0dab; font-size: 18px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.seo-title:hover { text-decoration: underline; }
.seo-desc { color: #4d5156; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.social-preview-mockup {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
    font-family: Helvetica, Arial, sans-serif;
}
.social-img-mock {
    height: 120px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    background-size: cover;
    background-position: center;
}
.social-info { padding: 12px; background: white; border-top: 1px solid #eee; }
.social-domain { font-size: 11px; color: #65676b; text-transform: uppercase; margin-bottom: 4px; }
.social-title { font-weight: bold; color: #050505; font-size: 15px; }

/* Inventory Alerts */
.inventory-alert {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #92400E;
}
.inventory-alert.danger {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #991B1B;
}

/* Advanced Tab Enhanced Styles */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-chip {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.status-chip.success { background: #DCFCE7; color: #16A34A; }
.status-chip.warning { background: #FEF3C7; color: #D97706; }

.bulk-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.bulk-tool-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bulk-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-icon {
    font-size: 24px;
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bulk-tool-header h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    color: #1E293B;
}

.bulk-tool-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-injection-container textarea {
    background: #0F172A !important;
    color: #38BDF8 !important;
    border-color: #1E293B !important;
}

/* Modern Auth Styles */
.auth-container {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, #3b82f6 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, #1e40af 0%, #0f172a 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 440px;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo-modern {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.auth-logo-modern i { width: 32px; height: 32px; }

.auth-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #64748b;
    font-size: 15px;
}

.form-group-auth {
    margin-bottom: 20px;
}

.input-wrapper-auth {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper-auth i {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: 0.3s;
}

.input-wrapper-auth input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.input-wrapper-auth input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper-auth input:focus + i {
    color: #2563eb;
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.forgot-link:hover { text-decoration: underline; }

.btn-auth-submit {
    width: 100%;
    padding: 18px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.btn-auth-submit i { width: 20px; height: 20px; }

.btn-auth-submit:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
}

.btn-auth-submit.register {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px; background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.auth-switch a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* Custom Checkbox */
.checkbox-container input { display: none; }
.checkmark {
    width: 18px; height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    transition: 0.2s;
}
.checkbox-container input:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}
.checkmark::after {
    content: '';
    position: absolute;
    width: 10px; height: 5px;
    border: 2px solid white;
    border-top: none; border-right: none;
    top: 4px; left: 3px;
    transform: rotate(-45deg);
    opacity: 0;
}
.checkbox-container input:checked + .checkmark::after { opacity: 1; }

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
}

/* Enhanced Admin Dashboard Styles */
.admin-dashboard { 
    padding: 0 0 40px; 
    max-width: 100%;
}

.admin-only.active {
    background: #FEF2F2 !important;
    border-right: 4px solid #DC2626 !important;
    color: #DC2626 !important;
}

.admin-services-list {
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.service-stat-row:hover {
    background: #f1f5f9;
}

.user-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-family: monospace;
}
.admin-hero {
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ah-content h1 { font-size: 32px; font-weight: 900; margin: 0 0 8px 0; }
.ah-content p { opacity: 0.8; font-size: 16px; }
.ah-actions { display: flex; gap: 12px; }

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.a-stat-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.a-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    border-color: #d1d5db;
}
.a-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.a-stat-icon.blue { background: #eff6ff; }
.a-stat-icon.green { background: #f0fdf4; }
.a-stat-icon.purple { background: #f5f3ff; }
.a-stat-icon.orange { background: #fff7ed; }
.a-stat-label { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; }
.a-stat-value { font-size: 32px; font-weight: 900; color: #111827; }

.admin-layout-split { 
    display: grid; 
    grid-template-columns: 1fr 340px; 
    gap: 24px; 
}
.admin-section { 
    background: white; 
    border-radius: 24px; 
    border: 1px solid #e5e7eb; 
    padding: 24px; 
    box-shadow: var(--shadow-sm);
}
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-search input { padding: 10px 16px; border: 1px solid #d1d5db; border-radius: 10px; width: 250px; font-family: inherit; }

.admin-users-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: right; padding: 16px; border-bottom: 2px solid #f3f4f6; color: #6b7280; font-size: 13px; font-weight: 800; }
.admin-table td { padding: 16px; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.user-badge { background: #f3f4f6; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-family: monospace; }
.btn-action-sm { padding: 6px 12px; border-radius: 6px; border: 1px solid #d1d5db; background: white; cursor: pointer; font-size: 12px; font-weight: 700; font-family: inherit; }
.btn-action-sm:hover { border-color: #2563eb; color: #2563eb; }

.admin-activity-list { display: flex; flex-direction: column; gap: 12px; max-height: 500px; overflow-y: auto; padding-right: 5px; }
.activity-item { padding: 14px; border-radius: 12px; border: 1px solid #f3f4f6; font-size: 13px; }
.activity-item .time { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.activity-item .user { font-weight: 800; color: #111827; }

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 12px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}
.logout-link { font-size: 11px; color: #ef4444; text-decoration: none; font-weight: 700; }
.logout-link:hover { text-decoration: underline; }

@media (max-width: 1200px) {
    .admin-layout-split { grid-template-columns: 1fr; }
    .admin-section.side-activity { order: 2; }
}

@media (max-width: 768px) {
    .admin-hero { 
        flex-direction: column; 
        text-align: center; 
        gap: 24px; 
        padding: 30px 20px;
    }
    .ah-actions {
        width: 100%;
        flex-direction: column;
    }
    .ah-actions button {
        width: 100%;
    }
    .admin-section {
        padding: 16px;
    }
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .admin-search {
        width: 100%;
    }
    .admin-search input {
        width: 100% !important;
    }
}

/* My Account Tab Styles */
.account-dashboard { padding: 0 10px; }
.account-hero {
    background: white; border-radius: 24px; padding: 40px;
    display: flex; align-items: center; gap: 30px; margin-bottom: 32px;
    border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.user-large-avatar {
    width: 100px; height: 100px; background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white; border-radius: 30px; display: flex; align-items: center; justify-content: center;
    font-size: 48px; font-weight: 900; box-shadow: 0 10px 20px rgba(37,99,235,0.2);
}
.user-meta-header h1 { margin: 0; font-size: 28px; font-weight: 900; color: #111827; }
.user-meta-header p { margin: 4px 0 12px; color: #6b7280; font-weight: 600; }
.role-badge {
    background: #eff6ff; color: #2563eb; padding: 4px 12px; border-radius: 50px;
    font-size: 12px; font-weight: 800; border: 1px solid #dbeafe;
}
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.acc-section { background: white; border-radius: 20px; padding: 30px; border: 1px solid #e5e7eb; }
.acc-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #111827; }
.acc-section-header i { color: #2563eb; width: 24px; height: 24px; }
.acc-section-header h3 { font-size: 18px; font-weight: 800; margin: 0; }

.recovery-info-box {
    margin-top: 24px; padding-top: 24px; border-top: 1px dashed #e5e7eb;
}
.recovery-code-display {
    background: #f8fafc; border: 2px solid #e2e8f0; padding: 12px; border-radius: 12px;
    text-align: center; font-family: monospace; font-size: 20px; font-weight: 800;
    color: #0f172a; margin: 10px 0; letter-spacing: 2px;
}
.user-stats-list { display: flex; flex-direction: column; gap: 12px; }
.u-stat-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; background: #f8fafc; border-radius: 14px;
}
.u-stat-label { font-weight: 700; color: #4b5563; font-size: 14px; }
.u-stat-val { font-weight: 900; color: #111827; font-size: 20px; }
.btn-danger-ghost {
    background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2;
    padding: 14px; border-radius: 12px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.2s; font-family: inherit;
}
.btn-danger-ghost:hover { background: #fee2e2; }

@media (max-width: 600px) {
    .account-hero { flex-direction: column; text-align: center; }
    .user-meta-header { display: flex; flex-direction: column; align-items: center; }
}

/* Account Tab Professional Redesign */
.account-profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-card-main {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.profile-cover {
    height: 100px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.profile-avatar-wrap {
    margin-top: -50px;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.user-large-avatar {
    width: 100px;
    height: 100px;
    background: white;
    border: 6px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
}

.profile-identity { padding: 0 20px 20px; }
.profile-identity h1 { font-size: 22px; font-weight: 800; margin: 0; color: #111827; }
.profile-identity p { font-size: 14px; color: #6b7280; margin: 5px 0 15px; }

.profile-quick-stats {
    display: flex;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.p-stat {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #f3f4f6;
}
.p-stat:last-child { border-right: none; }
.p-stat-val { font-size: 24px; font-weight: 900; color: #111827; }
.p-stat-label { font-size: 12px; color: #6b7280; font-weight: 700; margin-top: 4px; }

.profile-meta-details {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.meta-row:last-child { border-bottom: none; }
.meta-row i { color: #94a3b8; width: 18px; height: 18px; }
.meta-row span { color: #6b7280; flex: 1; }
.meta-row strong { color: #111827; }

.btn-logout-alt {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.btn-logout-alt:hover { background: #fee2e2; }

.acc-settings-section {
    background: white;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.section-title-alt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}
.section-title-alt i { color: var(--primary); }

.recovery-display-card {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.recovery-text-info h4 { margin: 0 0 5px 0; font-size: 16px; color: #1e293b; }
.recovery-text-info p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }

.recovery-code-pill {
    background: #1e293b;
    color: #38bdf8;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .account-profile-container { grid-template-columns: 1fr; }
}


/* Dashboard FAQ Styles */
.dashboard-faq-container {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 40px 32px;
    margin-top: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.dash-section-header {
    margin-bottom: 32px;
    text-align: center;
    border-bottom: 2px dashed #F3F4F6;
    padding-bottom: 24px;
}

.dash-section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.dash-section-header p {
    color: #6B7280;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.dash-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.dash-faq-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dash-faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #CBD5E1;
    transition: 0.2s;
}

.dash-faq-item:hover {
    background: white;
    border-color: #93C5FD;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
}

.dash-faq-item:hover::before {
    background: var(--primary);
}

.dash-faq-item .faq-q {
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-faq-item .faq-a {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .dashboard-faq-container {
        padding: 24px 20px;
    }
    .dash-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-trend {
        font-size: 11px;
    }

    /* Quick start buttons */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    /* Settings sections */
    .setting-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .setting-label {
        font-size: 13px;
    }

    /* Sample data buttons */
    .sample-option-btn {
        padding: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .sample-option-btn span:first-child {
        font-size: 20px;
    }

    /* Product card actions */
    .product-card-actions {
        flex-direction: column;
    }

    .product-card-actions button {
        width: 100%;
    }

    /* Input fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Color input area */
    .color-input-item {
        padding: 12px;
    }

    .color-input-item input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .color-info {
        flex: 1;
    }

    /* Service card improvements */
    .service-card {
        padding: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-body {
        gap: 8px;
    }

    .service-body input,
    .service-body textarea {
        padding: 12px;
        font-size: 14px;
    }

    /* FAQ improvements */
    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Dynamic list items */
    .dynamic-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .dynamic-item input,
    .dynamic-item textarea,
    .dynamic-item select {
        font-size: 14px;
        padding: 10px;
    }

    /* Newsletter section */
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-icon {
        font-size: 48px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 13px;
    }

    /* Tab content */
    .tab-content {
        padding: 0;
    }

    /* Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
    }

    .main-content {
        padding-top: 70px;
        padding: 16px;
    }

    /* Scroll friendly forms */
    .form-group {
        margin-bottom: 12px;
    }

    label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Touch-friendly buttons */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for small screens */
    .section {
        border-radius: 8px;
    }

    .product-card {
        border-radius: 12px;
    }

    .template-preview {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .stat-card-icon {
        font-size: 24px;
        /* Improved stat icon style */
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state-hint {
    font-size: 15px;
    color: var(--gray-500);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 50%, #FB923C 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.services-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #F59E0B 0%, #F97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.services-intro {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Service Card Mobile Fix */
@media (max-width: 768px) {
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: #F59E0B;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-6px) scale(1.01);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 36px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.3px;
}

.service-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 64px;
    height: 36px;
}

.service-toggle input {
    display: none;
}

.toggle-switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.service-toggle input:checked + .toggle-switch::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 14px;
    color: var(--gray-600);
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--radius);
    border-left: 4px solid #F59E0B;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.service-body input,
.service-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    transition: all 0.25s;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-body input:focus,
.service-body textarea:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.dynamic-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.service-body small {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-section {
        padding: 32px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Enhanced animation for service cards */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    }
}

.service-card.active {
    animation: cardPulse 2s infinite;
}

/* Deployment Guide Styles */
.deployment-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.deployment-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-bottom: 48px;
}

.deployment-hero-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.deployment-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deployment-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.deployment-steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.step-overview-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-400);
    font-weight: bold;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-options {
    margin-bottom: 48px;
}

.hosting-category {
    margin-bottom: 48px;
}

.hosting-category-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-800);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-200);
}

.hosting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hosting-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hosting-card.featured {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hosting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.hosting-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.hosting-header h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.hosting-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hosting-badge.free {
    background: #D1FAE5;
    color: #065F46;
}

.hosting-badge.paid {
    background: #FEF3C7;
    color: #92400E;
}

.hosting-features {
    margin-bottom: 24px;
}

.hosting-features .feature {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.hosting-features .feature:last-child {
    border-bottom: none;
}

.hosting-guide-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.hosting-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.deployment-tips {
    margin-bottom: 48px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #9A3412;
}

.tip-content p {
    font-size: 14px;
    margin: 0;
    color: #7C2D12;
    line-height: 1.6;
}

.deployment-faq {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.faq-item-deploy {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item-deploy:hover {
    border-color: #667eea;
}

.faq-item-deploy.active .faq-answer-deploy {
    max-height: 300px;
    padding: 20px 24px 24px;
}

.faq-item-deploy.active .faq-icon-deploy {
    transform: rotate(45deg);
}

.faq-question-deploy {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s;
    color: var(--gray-900);
}

.faq-question-deploy:hover {
    background: var(--gray-100);
}

.faq-icon-deploy {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer-deploy {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Hosting Guide Modal Content */
.guide-step {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.guide-step h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.guide-step p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.guide-step ul {
    margin: 8px 0;
    padding-right: 20px;
}

.guide-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.guide-note {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.guide-note strong {
    color: #92400E;
}

@media (max-width: 768px) {
    .deployment-hero-title {
        font-size: 28px;
    }
    
    .deployment-hero-subtitle {
        font-size: 16px;
    }
    
    .deployment-steps-overview {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hosting-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 16px; /* Default for RTL */
    z-index: 1001;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

[dir="ltr"] .mobile-menu-toggle {
    left: 16px;
    right: auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: none;
    }
    
    [dir="ltr"] .app-sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-main {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .app-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Main Content */
    .main-content {
        padding: 16px;
    }

    /* Section Styling */
    .section {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header .actions {
        width: 100%;
        flex-direction: column;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    /* Templates Grid */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Design Container */
    .design-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .design-main-area {
        order: 2;
    }

    .design-sidebar {
        order: 1;
        position: static;
        top: auto;
    }

    .settings-card {
        margin-bottom: 20px;
    }

    /* Form Inputs */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group input[type="color"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Color Inputs */
    .color-inputs {
        flex-direction: column;
    }

    .color-input-item {
        flex: 1;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
        grid-column: span 1 !important;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        font-size: 24px;
        min-width: 32px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-toggle {
        width: 56px;
        height: 32px;
    }

    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }

    .service-toggle input:checked + .toggle-switch::before {
        transform: translateX(24px);
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        padding: 12px;
    }

    /* Preview Modal */
    .preview-modal .modal-content {
        height: 95vh;
        max-height: none;
    }

    .preview-modal .modal-body {
        height: calc(95vh - 140px);
    }

    /* Service Sections */
    .about-section, .newsletter-section, .delivery-section, .payments-section, 
    .faq-section, .social-section, .reviews-section, .location-section {
        padding: 20px !important;
        margin: 16px 0 !important;
    }

    .section-header-feat {
        flex-direction: column;
        gap: 12px;
    }

    .section-icon {
        font-size: 32px;
    }

    .about-section h2, .newsletter-section h2, .faq-section h2, .reviews-section h2, 
    .social-section h2, .delivery-section h2, .payments-section h2, .location-section h2 {
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .payment-methods,
    .reviews-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 20px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .delivery-card {
        padding: 24px 16px;
    }

    .delivery-icon {
        font-size: 48px;
    }

    /* Deployment Guide */
    .deployment-hero-title {
        font-size: 32px;
    }

    .deployment-steps-overview {
        flex-direction: column;
        gap: 12px;
    }

    .step-overview-item {
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hosting-cards {
        grid-template-columns: 1fr;
    }

    .hosting-card {
        padding: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 16px;
        gap: 12px;
    }

    .tip-icon {
        font-size: 24px;
        min-width: 30px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question-deploy {
        padding: 16px;
       