/* ========================================
   MASTER SPLINTER - BROWSER COMPATIBILITY
   Cross-Browser Support for All Major Browsers
   ======================================== */

/* Fix for Chrome deprecated H1UserAgentFontSizeInSection warning */
h1 {
  font-size: 2rem;
}
section h1, article h1, aside h1, nav h1 {
  font-size: 2rem;
}

/* ========================================
   CSS RESET & NORMALIZATION
   ======================================== */

/* Ensure consistent box-sizing across all browsers */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* Remove default margins and paddings */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
}

/* HTML5 display definitions for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* ========================================
   FLEXBOX COMPATIBILITY
   ======================================== */

/* Flexbox with vendor prefixes for older browsers */
.flex-container,
.site-header,
.hero__stats,
.services-grid,
.footer-grid,
.header-controls,
.cart-item,
.newsletter-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
}

/* Flex direction */
.flex-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

/* Flex wrap */
.flex-wrap {
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* Justify content */
.justify-center {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.justify-between {
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

/* Align items */
.align-center {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* Flex grow */
.flex-1 {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/* ========================================
   GRID LAYOUT COMPATIBILITY
   ======================================== */

/* CSS Grid with fallback for older browsers */
.services-grid,
.products-grid,
.gallery-track,
.trust-badges,
.process-steps {
  display: -ms-grid;
  display: grid;
}

/* Grid template columns with IE11 support */
@supports not (display: grid) {
  .services-grid,
  .products-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .services-grid > *,
  .products-grid > * {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(33.333% - 1.5rem);
    -ms-flex: 0 0 calc(33.333% - 1.5rem);
    flex: 0 0 calc(33.333% - 1.5rem);
    margin: 0.75rem;
  }
}

/* ========================================
   TRANSFORM COMPATIBILITY
   ======================================== */

/* Transform with vendor prefixes */
.transform-scale {
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
  transform: scale(1.05);
}

.transform-translate {
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.transform-rotate {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* ========================================
   TRANSITION COMPATIBILITY
   ======================================== */

/* Transitions with vendor prefixes */
.button,
.service-card,
.product-card,
.nav-link {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* ========================================
   BORDER RADIUS COMPATIBILITY
   ======================================== */

/* Border radius with vendor prefixes */
.button,
.service-card,
.product-card,
.modal,
.input {
  -webkit-border-radius: var(--radius-md);
  -moz-border-radius: var(--radius-md);
  border-radius: var(--radius-md);
}

/* ========================================
   BOX SHADOW COMPATIBILITY
   ======================================== */

/* Box shadow with vendor prefixes */
.service-card,
.product-card,
.modal,
.floating-whatsapp {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BACKDROP FILTER COMPATIBILITY
   ======================================== */

/* Backdrop filter with fallback */
.site-nav,
.modal-overlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .site-nav,
  .modal-overlay {
    background: rgba(246, 251, 255, 0.95);
  }
  
  [data-theme="dark"] .site-nav,
  [data-theme="dark"] .modal-overlay {
    background: rgba(26, 31, 38, 0.95);
  }
}

/* ========================================
   GRADIENT COMPATIBILITY
   ======================================== */

/* Linear gradient with vendor prefixes */
.hero,
.newsletter-section {
  background: -webkit-linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background: -moz-linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background: -o-linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* ========================================
   APPEARANCE COMPATIBILITY
   ======================================== */

/* Remove default appearance for form elements */
input,
select,
textarea,
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ========================================
   USER SELECT COMPATIBILITY
   ======================================== */

/* Prevent text selection on interactive elements */
.button,
.nav-link,
.service-card,
.product-card {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ========================================
   SCROLLBAR STYLING (Webkit browsers)
   ======================================== */

/* Custom scrollbar for Webkit browsers */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
}

/* ========================================
   PLACEHOLDER STYLING
   ======================================== */

/* Placeholder with vendor prefixes */
::-webkit-input-placeholder {
  color: var(--color-muted);
  opacity: 1;
}

::-moz-placeholder {
  color: var(--color-muted);
  opacity: 1;
}

:-ms-input-placeholder {
  color: var(--color-muted);
  opacity: 1;
}

::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

/* ========================================
   OBJECT FIT COMPATIBILITY
   ======================================== */

/* Object fit with fallback */
img,
video {
  -o-object-fit: cover;
  object-fit: cover;
}

/* Fallback for IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  img,
  video {
    width: 100%;
    height: auto;
  }
}

/* ========================================
   STICKY POSITIONING COMPATIBILITY
   ======================================== */

/* Fixed header for all browsers */
.site-header {
  position: -webkit-fixed;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
}

/* ========================================
   CALC() COMPATIBILITY
   ======================================== */

/* Calc with vendor prefixes */
.container {
  width: -webkit-calc(100% - 4rem);
  width: -moz-calc(100% - 4rem);
  width: calc(100% - 4rem);
}

/* ========================================
   CSS VARIABLES FALLBACK
   ======================================== */

/* Fallback for browsers that don't support CSS variables */
@supports not (--css: variables) {
  body {
    background: #f6fbff;
    color: #181819;
  }
  
  .button {
    background: #82cfe2;
    color: white;
  }
  
  .service-card {
    background: white;
    border: 1px solid #d9e6ef;
  }
}

/* ========================================
   FILTER EFFECTS COMPATIBILITY
   ======================================== */

/* Filter with vendor prefixes */
.image-filter {
  -webkit-filter: blur(5px);
  filter: blur(5px);
}

/* ========================================
   ANIMATION COMPATIBILITY
   ======================================== */

/* Animation with vendor prefixes */
@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-moz-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  -webkit-animation: fadeIn 0.5s ease;
  -moz-animation: fadeIn 0.5s ease;
  animation: fadeIn 0.5s ease;
}

/* ========================================
   CLIP-PATH COMPATIBILITY
   ======================================== */

/* Clip path with vendor prefixes */
.clip-path {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* ========================================
   WILL-CHANGE OPTIMIZATION
   ======================================== */

/* Performance optimization for animations */
.service-card,
.product-card,
.button {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* ========================================
   TOUCH ACTION (Mobile)
   ======================================== */

/* Prevent double-tap zoom on mobile */
a, button, input, select, textarea {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

/* ========================================
   TEXT RENDERING OPTIMIZATION
   ======================================== */

/* Optimize text rendering across browsers */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* ========================================
   SAFE AREA INSETS (iPhone X+)
   ======================================== */

/* Support for notch devices */
@supports (padding: max(0px)) {
  .site-header,
  .site-footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  /* لا تعديل لزر الواتساب في الكمبيوتر */
}

/* ========================================
   INTERNET EXPLORER SPECIFIC FIXES
   ======================================== */

/* IE10+ specific styles */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* Fix flexbox bugs in IE */
  .flex-container {
    display: -ms-flexbox;
  }
  
  /* Fix min-height in IE */
  .hero,
  .section {
    height: auto;
  }
  
  /* Fix object-fit in IE */
  img {
    width: 100%;
  }
}

/* IE11 specific fixes */
_:-ms-fullscreen, :root .services-grid {
  display: -ms-grid;
  -ms-grid-columns: 1fr 1fr 1fr;
  -ms-grid-rows: auto;
}

/* ========================================
   SAFARI SPECIFIC FIXES
   ======================================== */

/* Fix for Safari's viewport units bug */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* Fix for Safari's date input */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

/* ========================================
   FIREFOX SPECIFIC FIXES
   ======================================== */

/* Firefox-specific button fixes */
@-moz-document url-prefix() {
  button::-moz-focus-inner,
  input[type="button"]::-moz-focus-inner,
  input[type="submit"]::-moz-focus-inner {
    border: 0;
    padding: 0;
  }
}

/* ========================================
   EDGE SPECIFIC FIXES
   ======================================== */

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
  .services-grid {
    display: -ms-grid;
  }
}

/* ========================================
   PRINT COMPATIBILITY
   ======================================== */

@media print {
  /* Optimize for printing */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  @page {
    margin: 2cm;
  }
}
/* ========================================
   MASTER SPLINTER - PERFORMANCE OPTIMIZATION
   CSS Performance & Loading Optimizations
   ======================================== */

/* ========================================
   CRITICAL CSS - ABOVE THE FOLD
   ======================================== */

/* Optimize font loading - fonts loaded via Google Fonts in HTML */

/* ========================================
   WILL-CHANGE OPTIMIZATION
   ======================================== */

/* Optimize animations and transitions */
.service-card,
.product-card,
.button,
.nav-link {
  will-change: transform;
}

.service-card:hover,
.product-card:hover,
.button:hover {
  will-change: auto;
}

/* ========================================
   CONTAIN PROPERTY
   ======================================== */

/* Improve rendering performance */
.service-card,
.product-card,
.testimonial-card,
.process-step {
  contain: layout style paint;
}

.service-modal,
.cart-sidebar,
.checkout-modal {
  contain: layout;
}

/* ========================================
   CONTENT-VISIBILITY
   ======================================== */

/* Lazy render off-screen content */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

.service-card,
.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ========================================
   HARDWARE ACCELERATION
   ======================================== */

/* Force GPU acceleration for smooth animations */
.service-card,
.product-card,
.button,
.modal,
.floating-whatsapp {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

/* ========================================
   IMAGE OPTIMIZATION
   ======================================== */

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
}

/* Lazy loading hint */
img[loading="lazy"] {
  content-visibility: auto;
}

/* ========================================
   REDUCE PAINT AREAS
   ======================================== */

/* Isolate layers to reduce repaints */
.site-header,
.floating-whatsapp,
.live-chat-widget,
.modal-overlay {
  isolation: isolate;
}

/* ========================================
   OPTIMIZE SHADOWS
   ======================================== */

/* Use optimized shadows */
.service-card,
.product-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.service-card:hover,
.product-card:hover {
  box-shadow: 0 8px 24px rgba(130, 207, 226, 0.3);
}

/* ========================================
   REDUCE LAYOUT SHIFTS
   ======================================== */

/* Prevent layout shifts */
.brand__logo {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
}

.product-card__image {
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
}

/* ========================================
   OPTIMIZE ANIMATIONS
   ======================================== */

/* Use transform instead of position changes */
@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-in {
  animation: slideIn 0.5s ease-out;
}

/* ========================================
   REDUCE REFLOWS
   ======================================== */

/* Batch DOM reads and writes */
.services-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  /* Prevent reflow on content changes */
  min-height: 400px;
}

/* ========================================
   OPTIMIZE FILTERS
   ======================================== */

/* Use efficient filters */
.modal-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Fallback for better performance */
@supports not (backdrop-filter: blur(8px)) {
  .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
  }
}

/* ========================================
   REDUCE COMPOSITE LAYERS
   ======================================== */

/* Optimize composite layers */
.button,
.nav-link {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* ========================================
   OPTIMIZE SCROLL PERFORMANCE
   ======================================== */

/* Smooth scrolling optimization */
html {
  scroll-behavior: smooth;
}

/* Optimize scroll containers */
.cart-sidebar__items,
.invoice-content,
.shop-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ========================================
   REDUCE JAVASCRIPT LAYOUT THRASHING
   ======================================== */

/* Use CSS for animations instead of JS */
.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-up {
  animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ========================================
   OPTIMIZE FONT LOADING
   ======================================== */

/* Prevent FOIT (Flash of Invisible Text) */
body {
  font-display: swap;
}

/* System font stack fallback */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
               "Noto Color Emoji";
}

/* ========================================
   REDUCE UNUSED CSS
   ======================================== */

/* Remove unused pseudo-elements */
.service-card::before,
.product-card::before {
  content: none;
}

/* ========================================
   OPTIMIZE MEDIA QUERIES
   ======================================== */

/* Use efficient media queries */
@media (max-width: 768px) {
  /* Reduce complexity on mobile */
  .service-card,
  .product-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Disable expensive effects on mobile */
  .service-card:hover,
  .product-card:hover {
    transform: none;
  }
}

/* ========================================
   OPTIMIZE GRID LAYOUTS
   ======================================== */

/* Use efficient grid layouts */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

/* ========================================
   REDUCE PAINT COMPLEXITY
   ======================================== */

/* Simplify gradients on mobile */
@media (max-width: 768px) {
  .hero,
  .newsletter-section {
    background: var(--color-primary);
  }
}

/* ========================================
   OPTIMIZE TRANSITIONS
   ======================================== */

/* Use efficient transition properties */
.button,
.service-card,
.product-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Avoid transitioning expensive properties */
.avoid-transition {
  transition: none;
}

/* ========================================
   LOADING STATES
   ======================================== */

/* Skeleton loading states */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   INTERSECTION OBSERVER OPTIMIZATION
   ======================================== */

/* Optimize visibility detection */
.lazy-load {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-load.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   REDUCE MEMORY USAGE
   ======================================== */

/* Optimize large lists */
.virtual-scroll {
  overflow-y: auto;
  height: 500px;
}

/* ========================================
   OPTIMIZE FLEXBOX
   ======================================== */

/* Use efficient flexbox properties */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.flex-item {
  flex: 1 1 auto;
  min-width: 0; /* Prevent flex item overflow */
}

/* ========================================
   REDUCE SPECIFICITY
   ======================================== */

/* Use low-specificity selectors */
.card { /* Instead of .section .container .card */
  background: var(--color-surface);
}

/* ========================================
   OPTIMIZE Z-INDEX
   ======================================== */

/* Use consistent z-index scale */
:root {
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

.site-header {
  z-index: var(--z-sticky);
}

.modal-overlay {
  z-index: var(--z-modal-backdrop);
}

.service-modal {
  z-index: var(--z-modal);
}

/* ========================================
   PRELOAD CRITICAL RESOURCES
   ======================================== */

/* Hint browser to preload critical resources */
/* Add to HTML: <link rel="preload" as="style" href="css/styles.css"> */

/* ========================================
   REDUCE RENDER BLOCKING
   ======================================== */

/* Use CSS containment */
.independent-component {
  contain: layout style paint;
}

/* ========================================
   OPTIMIZE CUSTOM PROPERTIES
   ======================================== */

/* Cache computed values */
.cached-value {
  --computed-width: calc(100% - 2rem);
  width: var(--computed-width);
}

/* ========================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
  /* Reduce animation complexity */
  * {
    animation-duration: 0.3s !important;
  }
  
  /* Simplify shadows */
  .service-card,
  .product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Disable expensive effects */
  .backdrop-blur {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.9);
  }
}

/* ========================================
   PERFORMANCE MONITORING
   ======================================== */

/* Performance monitoring is handled via JavaScript Performance API */
:root {
  --color-bg: #f6fbff;
  --color-primary: #82cfe2;
  --color-primary-dark: #4aa0ba;
  --color-accent: #181819;
  --color-surface: #ffffff;
  --color-muted: #6f7a87;
  --color-border: #d9e6ef;
  --shadow-lg: 0 40px 80px -40px rgba(24, 24, 25, 0.4);
  --shadow-md: 0 20px 45px -25px rgba(24, 24, 25, 0.35);
  --shadow-sm: 0 10px 20px -15px rgba(24, 24, 25, 0.35);
  --radius-lg: 32px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --color-bg: #0a0e13;
  --color-surface: #1a2332;
  --color-accent: #ffffff;
  --color-muted: #c5d0de;
  --color-border: #4a5568;
  --shadow-lg: 0 40px 80px -40px rgba(130, 207, 226, 0.4);
  --shadow-md: 0 20px 45px -25px rgba(130, 207, 226, 0.35);
  --shadow-sm: 0 10px 20px -15px rgba(130, 207, 226, 0.3);
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .site-header {
  background: rgba(26, 31, 38, 0.95);
  border-bottom-color: rgba(130, 207, 226, 0.2);
}

[data-theme="dark"] .hero {
  background: var(--color-surface);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(130, 207, 226, 0.15) 0%, rgba(130, 207, 226, 0) 70%);
}

[data-theme="dark"] .section--light {
  background: rgba(26, 31, 38, 0.6);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .process-list li,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .hero__card,
[data-theme="dark"] .hero__stats div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .service-card__badge {
  background: rgba(130, 207, 226, 0.9);
  box-shadow: 0 0 20px rgba(130, 207, 226, 0.4);
}

[data-theme="dark"] .button--ghost {
  background: rgba(26, 31, 38, 0.8);
  border-color: rgba(130, 207, 226, 0.3);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(26, 31, 38, 0.8);
  border-color: var(--color-border);
  color: var(--color-accent);
}

[data-theme="dark"] .site-footer {
  background: #0a0d11;
}

[data-theme="dark"] .hero__title,
[data-theme="dark"] .section__title,
[data-theme="dark"] h1, [data-theme="dark"] h2, 
[data-theme="dark"] h3, [data-theme="dark"] h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .hero__subtitle,
[data-theme="dark"] .section__subtitle,
[data-theme="dark"] p {
  color: #c5d0de !important;
}

[data-theme="dark"] .service-card__desc,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .process-list li p {
  color: #b0b8c1 !important;
}

[data-theme="dark"] .hero__eyebrow,
[data-theme="dark"] .section__eyebrow {
  color: var(--color-primary) !important;
}

[data-theme="dark"] .floating-whatsapp {
  box-shadow: 0 8px 30px rgba(130, 207, 226, 0.5);
}

[data-theme="dark"] .cta-button {
  box-shadow: 0 4px 20px rgba(130, 207, 226, 0.4);
}

[data-theme="dark"] .request-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] label {
  color: #ffffff;
}

[data-theme="dark"] .form-footnote {
  color: #b0b8c1;
}

[data-theme="dark"] .site-footer h3 {
  color: var(--color-primary);
}

[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer a {
  color: #c5d0de;
}

[data-theme="dark"] .testimonial-card blockquote {
  color: #c5d0de !important;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  font-family: "Cairo", "Tajawal", "Poppins", system-ui, sans-serif;
}

[dir="rtl"] .brand__text strong {
  letter-spacing: 0.05em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1.7;
  padding-top: 80px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(246, 251, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(130, 207, 226, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  width: clamp(120px, 15vw, 160px);
  height: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(130, 207, 226, 0.4));
  display: block;
  content: url('../assets/logos/logo0.png');
}

.brand__logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(130, 207, 226, 0.6));
}

[data-theme="dark"] .brand__logo {
  filter: drop-shadow(0 4px 12px rgba(130, 207, 226, 0.6));
  content: url('../assets/logos/logo.png');
}

[data-theme="dark"] .brand__logo:hover {
  filter: drop-shadow(0 6px 20px rgba(130, 207, 226, 0.8));
}

.brand__text strong {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand__text small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

/* القائمة الثانوية - تظهر فقط في الشاشات الكبيرة */
.site-nav .secondary-nav {
  display: none;
}

@media (min-width: 1200px) {
  .site-nav .secondary-nav {
    display: flex;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }
}

.site-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}


.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  margin-right: 1rem;
}

.header-control-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.theme-toggle,
.lang-toggle,
.user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(130, 207, 226, 0.1), rgba(130, 207, 226, 0.05));
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(130, 207, 226, 0.15);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.theme-toggle::before,
.lang-toggle::before,
.user-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.theme-toggle:hover,
.lang-toggle:hover,
.user-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(130, 207, 226, 0.3);
  border-color: var(--color-primary);
}

.theme-toggle:hover::before,
.lang-toggle:hover::before,
.user-btn:hover::before {
  opacity: 0.1;
}

.theme-toggle:active,
.lang-toggle:active,
.user-btn:active {
  transform: translateY(0);
}

.theme-toggle i,
.user-btn i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

/* User Menu Styles */
.user-menu {
  position: relative;
}

.user-btn.logged-in {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  min-width: 200px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

.user-menu.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(130, 207, 226, 0.1);
  border-bottom: 1px solid var(--color-border);
}

.user-info i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.user-info span {
  font-weight: 600;
  color: var(--color-accent);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(130, 207, 226, 0.1);
  color: var(--color-primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--color-muted);
}

.dropdown-item:hover i {
  color: var(--color-primary);
}

.logout-btn {
  border-top: 1px solid var(--color-border);
  color: #ef4444;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.logout-btn i {
  color: #ef4444;
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

.lang-flag {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.lang-text {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Gmail Aliases Button in Theme Customizer - نصف الحجم */
.gmail-aliases-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 0.375rem 0.625rem;
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.gmail-aliases-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.gmail-aliases-btn:hover::before {
  left: 100%;
}

.gmail-aliases-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.gmail-icon {
  font-size: 0.7rem;
  animation: sparkle 2s infinite;
}

.gmail-text {
  font-size: 0.65rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.magic-sparkle {
  font-size: 0.7rem;
  animation: rotate 3s linear infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* تنسيق متجاوب لزر Gmail المصغر */
@media (max-width: 768px) {
  .gmail-aliases-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }
  
  .gmail-text {
    display: none;
  }
  
  .gmail-icon,
  .magic-sparkle {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .gmail-aliases-btn {
    padding: 0.25rem 0.4rem;
  }
  
  .gmail-icon,
  .magic-sparkle {
    font-size: 0.55rem;
  }
}

/* Heart Animation in Gmail Modal Footer */
.heart {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  color: #e74c3c;
  font-size: 1.2em;
  margin: 0 0.5rem;
}

/* تكبير حقل العدد لإظهار الأرقام الكبيرة */
.variations-input {
  width: 120px !important;
  min-width: 120px;
  font-size: 1.1rem !important;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0.5rem !important;
  border: 2px solid var(--color-primary) !important;
  border-radius: 8px;
  background: rgba(130, 207, 226, 0.05);
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.variations-input:focus {
  outline: none;
  border-color: var(--color-primary-dark) !important;
  box-shadow: 0 0 0 3px rgba(130, 207, 226, 0.2);
  background: rgba(130, 207, 226, 0.1);
}

/* تحسين container الحقل */
.gmail-range-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.variations-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

/* تنسيق متجاوب لحقل العدد */
@media (max-width: 768px) {
  .variations-input {
    width: 100px !important;
    min-width: 100px;
    font-size: 1rem !important;
    padding: 0.6rem 0.4rem !important;
  }
  
  .variations-controls {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .variations-input {
    width: 90px !important;
    min-width: 90px;
    font-size: 0.95rem !important;
    padding: 0.5rem 0.3rem !important;
  }
  
  .gmail-range-container {
    gap: 0.75rem;
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle,
[data-theme="dark"] .user-btn {
  background: linear-gradient(135deg, rgba(130, 207, 226, 0.15), rgba(130, 207, 226, 0.08));
  box-shadow: 0 2px 8px rgba(130, 207, 226, 0.25);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-toggle:hover,
[data-theme="dark"] .user-btn:hover {
  box-shadow: 0 4px 16px rgba(130, 207, 226, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-surface);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5vw, 6rem);
  padding: clamp(1rem, 3vw, 3rem);
  padding-top: 180px; /* مساحة كافية للهيدر الثابت */
}

/* تعديل إضافي للموبايل والتابلت */
@media (max-width: 1024px) {
  main {
    padding-top: 140px;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 110px;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 6rem);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 0; /* تأكد من عدم وجود margin سالب */
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: clamp(18rem, 35vw, 30rem);
  height: clamp(18rem, 35vw, 30rem);
  background: radial-gradient(circle, rgba(130, 207, 226, 0.25) 0%, rgba(130, 207, 226, 0) 70%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.hero__eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1.1;
}

.hero__subtitle {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.1rem, 1.65vw, 1.3rem);
  color: var(--color-muted);
  max-width: 46ch;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
}

.button--ghost {
  border-color: rgba(24, 24, 25, 0.15);
  background: rgba(255, 255, 255, 0.6);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero__highlights {
  display: grid;
  gap: 0.85rem;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.hero__highlights span.nowrap {
  white-space: nowrap;
}

.hero__media {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero__orb--primary {
  width: clamp(12rem, 18vw, 16rem);
  height: clamp(12rem, 18vw, 16rem);
  top: -8%;
  right: 8%;
  background: linear-gradient(145deg, rgba(130, 207, 226, 0.65), rgba(130, 207, 226, 0.15));
}

.hero__orb--accent {
  width: clamp(8rem, 14vw, 12rem);
  height: clamp(8rem, 14vw, 12rem);
  bottom: -12%;
  left: 25%;
  background: linear-gradient(145deg, rgba(24, 24, 25, 0.35), rgba(24, 24, 25, 0.05));
}

.hero__card {
  background: var(--color-surface);
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: clamp(0.88rem, 2.3vw, 0.98rem);
  line-height: 1.45;
}

.hero__card span {
  display: block;
  margin-top: clamp(0.45rem, 1.8vw, 0.65rem);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  color: var(--color-muted);
}

.hero__stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hero__stats div {
  background: var(--color-surface);
  padding: clamp(0.9rem, 2.4vw, 1.15rem) clamp(1rem, 3vw, 1.35rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero__stats strong {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  display: block;
}

.hero__stats span {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.section--light {
  background: rgba(255, 255, 255, 0.8);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section--cta {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(130, 207, 226, 0.95), rgba(130, 207, 226, 0.4));
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--color-accent);
}

.section__header {
  display: grid;
  gap: 0.75rem;
  max-width: 56ch;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.section__title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.01em;
}

.section__subtitle {
  color: rgba(111, 122, 135, 0.95);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.78;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card__body {
  padding: 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.service-card__body h3 {
  font-size: 1.3rem;
}

.service-card__body ul li {
  color: var(--color-muted);
  font-size: 1.02rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(130, 207, 226, 0.2);
  display: grid;
  gap: 0.75rem;
}

.feature-card h3 {
  font-size: 1.3rem;
}

.feature-card p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.process-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-list li {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.75rem;
}

.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(130, 207, 226, 0.25);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.05rem;
}

.process-list li h3 {
  font-size: 1.28rem;
}

.process-list li p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.3rem;
}

.testimonial-card blockquote {
  color: var(--color-muted);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.82;
}

.section--cta .button--light {
  background: var(--color-accent);
  color: var(--color-surface);
  padding-inline: 2rem;
}

.request-form {
  display: grid;
  gap: 1.25rem;
  background: var(--color-surface);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  gap: 0.5rem;
  position: relative;
  z-index: 50;
}

.form-row--split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
  z-index: 50;
}

label {
  font-weight: 600;
  font-size: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  color: var(--color-accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(130, 207, 226, 0.2);
  position: relative;
  z-index: 10000;
}

select {
  position: relative;
  z-index: 1;
}

textarea {
  resize: vertical;
}

.form-footnote {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.site-footer {
  margin-top: clamp(3rem, 5vw, 5rem);
  background: var(--color-accent);
  color: var(--color-surface);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer__brand img {
  width: 80px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.site-footer ul li + li {
  margin-top: 0.35rem;
}

.social-links {
  display: grid;
  gap: 0.6rem;
}

.site-footer__meta {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* زر الواتساب الثابت - الموضع الأصلي للكمبيوتر */
.floating-whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem); /* الموضع الأصلي للكمبيوتر */
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-surface);
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-2px);
}

.floating-whatsapp__icon {
  font-size: 1.25rem;
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 0;
    padding: 7rem 2rem 3rem;
    display: grid;
    align-content: start;
    background: rgba(246, 251, 255, 0.98);
    backdrop-filter: blur(12px);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    font-size: 0.95rem;
  }

  .site-nav ul li {
    width: 100%;
  }

  .site-nav ul a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.95rem;
    min-height: 70px;
  }

  .site-nav ul a i {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
  }

  .nav-creative-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    justify-content: center;
    margin: 0.75rem 0 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(130, 207, 226, 0.15);
  }

  .nav-creative-link i {
    font-size: 0.8rem;
  }

  .site-nav .secondary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.25rem;
  }

  .site-nav .secondary-nav li {
    width: 100%;
  }

  .site-nav .secondary-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.95rem;
    min-height: 70px;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .site-nav .secondary-nav li a i {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
  }

  .site-nav .secondary-nav .nav-creative-link {
    grid-column: auto;
    flex-direction: column;
    min-height: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header .cta-button {
    display: none;
  }

  .site-nav[aria-expanded="true"] {
    transform: translateY(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header-controls {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    align-items: stretch;
  }

}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Service Modal - Full screen overlay like product modal */
.service-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.95) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.service-modal.active {
  display: flex !important;
}

/* Service Modal Content Wrapper */
.service-modal__content {
  background: var(--color-surface);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1000000 !important;
}

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

[data-theme="dark"] .service-modal__content {
  background: #1a1f26;
}

/* Close button - inside content */
.service-modal__content .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000001 !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .service-modal__content .modal-close {
  right: auto;
  left: 1rem;
}

.service-modal__content .modal-close:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1) rotate(90deg);
}

/* Legacy modal close (without wrapper) */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000001 !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 1rem;
}

.modal-close:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1) rotate(90deg);
  transform: rotate(90deg);
}

.modal-header {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 2px solid rgba(130, 207, 226, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(130, 207, 226, 0.05) 0%, transparent 100%);
}

.modal-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  filter: drop-shadow(0 2px 8px rgba(130, 207, 226, 0.3));
}

.modal-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--color-surface);
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(130, 207, 226, 0.1);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark);
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-weight: 600;
}

.modal-subsection {
  margin-bottom: 1.5rem;
}

.modal-subsection h4 {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modal-subsection p,
.modal-subsection ul {
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 1rem;
}

[data-theme="dark"] .modal-header {
  border-bottom: 2px solid rgba(130, 207, 226, 0.3);
}

[data-theme="dark"] .modal-header h2 {
  color: #ffffff;
}

[data-theme="dark"] .modal-subsection h4 {
  color: #e0e0e0;
}

[data-theme="dark"] .modal-subsection p,
[data-theme="dark"] .modal-subsection ul {
  color: #b0b0b0;
}

.modal-subsection ul {
  list-style: none;
  padding: 0;
}

.modal-subsection ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.modal-subsection ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.modal-note,
.modal-availability {
  background: rgba(130, 207, 226, 0.1);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.modal-note i,
.modal-availability i {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.modal-note p,
.modal-availability p {
  margin: 0;
  color: var(--color-accent);
  line-height: 1.6;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-footer .button {
  min-width: 200px;
}

.modal-footer .button--secondary {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.modal-footer .button--secondary:hover {
  background: var(--color-primary);
  color: #1a2332;
}

[data-theme="dark"] .modal-note,
[data-theme="dark"] .modal-availability {
  background: rgba(130, 207, 226, 0.15);
}

@media (max-width: 768px) {
  .service-modal {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 2rem 1.5rem 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }

  .modal-footer .button {
    min-width: 100%;
  }
}

/* Service Details Expandable */
.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(130, 207, 226, 0.03) 0%, transparent 100%);
}

.service-details.active {
  max-height: 2000px;
  border-top: 2px solid rgba(130, 207, 226, 0.2);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.service-details h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.service-details h4:first-child {
  margin-top: 0;
}

.service-details p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}

.service-details ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-details ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.service-details-note {
  background: rgba(130, 207, 226, 0.1);
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.service-details-note i {
  color: var(--color-primary);
  font-size: 1rem;
  margin-top: 0.2rem;
}

.service-details-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.button--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

.button--ghost:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.button--ghost i {
  transition: transform 0.3s ease;
}

.service-card.expanded .button--ghost i {
  transform: rotate(90deg);
}

[data-theme="dark"] .service-details {
  background: linear-gradient(135deg, rgba(130, 207, 226, 0.05) 0%, transparent 100%);
}

[data-theme="dark"] .service-details.active {
  border-top-color: rgba(130, 207, 226, 0.3);
}

[data-theme="dark"] .service-details h4 {
  color: var(--color-primary);
}

[data-theme="dark"] .service-details p,
[data-theme="dark"] .service-details ul li {
  color: #b0b0b0;
}

[data-theme="dark"] .service-details-note {
  background: rgba(130, 207, 226, 0.15);
}

/* Required Mark */
.required-mark {
  color: var(--color-primary);
  font-weight: bold;
  margin-left: 0.25rem;
}

[dir="rtl"] .required-mark {
  margin-left: 0;
  margin-right: 0.25rem;
}

/* ===================================
   E-COMMERCE SHOP STYLES
   =================================== */

/* Shop Page Container */
.shop-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-background);
  z-index: 800;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.shop-page.active {
  display: flex;
}

/* Hide floating WhatsApp button when shop is active */
.shop-page.active ~ .floating-whatsapp {
  display: none !important;
}

/* Shop Header */
.shop-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-header__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.shop-close {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-close:hover {
  background: var(--color-primary);
  color: white;
}

.shop-header__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.shop-header__title i {
  font-size: 2rem;
  color: var(--color-primary);
}

.shop-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-title-wrapper h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--color-accent);
}

.shop-instructions {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .shop-instructions {
    font-size: 0.75rem;
  }
}

.cart-toggle {
  position: relative;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-toggle:hover {
  background: var(--color-dark);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.shop-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary) !important;
  font-weight: 600;
}

.shop-link i {
  font-size: 1.1rem;
}

/* Service Card Enhancements */
.service-card__image {
  position: relative;
  overflow: hidden;
}

.service-card__image img {
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.1);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(130, 207, 226, 0.95);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

[dir="rtl"] .service-card__badge {
  right: auto;
  left: 1rem;
}

.service-card__desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card__btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.service-card__btn i {
  transition: transform 0.3s ease;
}

.service-card__btn:hover i {
  transform: translateY(2px);
}

/* Service Modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.service-modal__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.service-modal.active .service-modal__content {
  transform: translateY(0);
}

.service-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

[dir="rtl"] .service-modal__close {
  right: auto;
  left: 1.5rem;
}

.service-modal__close:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(90deg);
}

.service-modal h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.service-detail {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(130, 207, 226, 0.05);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

[dir="rtl"] .service-detail {
  border-left: none;
  border-right: 4px solid var(--color-primary);
}

.service-detail h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.service-detail h3 i {
  font-size: 1.2rem;
}

.service-category {
  margin-bottom: 1.25rem;
}

.service-category h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.service-category ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.5rem;
}

[dir="rtl"] .service-category ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

.service-category ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-muted);
  line-height: 1.6;
}

[dir="rtl"] .service-category ul li {
  padding-left: 0;
  padding-right: 1.5rem;
}

.service-category ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

[dir="rtl"] .service-category ul li::before {
  left: auto;
  right: 0;
}

.service-note,
.service-remote {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(130, 207, 226, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.service-remote {
  background: rgba(255, 193, 7, 0.1);
  color: var(--color-accent);
  font-weight: 500;
}

/* Hero highlights with icons */
.hero__highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__highlights li i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Smooth transitions for all elements */
* {
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

@media (max-width: 960px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .theme-toggle,
  .lang-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .service-modal__content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 0.65rem 0.75rem;
  }
  
  .hero__subtitle {
    font-size: 0.95rem;
  }

  .section--light,
  .hero,
  main {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  .section--cta {
    text-align: center;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .theme-toggle,
  .lang-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .lang-text {
    display: none;
  }

  .service-modal__content {
    padding: 1.5rem 1rem;
  }

  .service-modal h2 {
    font-size: 1.5rem;
  }
}
/* Shop Content & Categories */
.shop-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  /* تحسين التمرير في الموبايل */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

@media (max-width: 575px) {
  .shop-header {
    padding: 0.75rem 0;
  }
  
  .shop-header__content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .shop-close,
  .cart-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .shop-close span {
    display: inline;
    font-size: 0.85rem;
    font-weight: 500;
  }
  
  .shop-title-wrapper {
    align-items: center;
  }
  
  .shop-title-wrapper h1 {
    font-size: clamp(1.35rem, 6vw, 1.6rem);
  }
  
  .shop-content {
    padding: 0.75rem 0.75rem 1.5rem;
    /* إضافة مساحة إضافية في الأسفل لتجنب شريط المتصفح */
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 60px));
  }
  
  .shop-search {
    padding: 0 0.75rem;
  }
  
  .shop-categories {
    padding: 0 0.75rem 0.65rem;
    margin: 0 -0.75rem 1.25rem;
  }
  
  .products-grid {
    gap: 0.75rem;
    /* إضافة مساحة إضافية في الأسفل للمنتجات */
    margin-bottom: calc(1rem + env(safe-area-inset-bottom, 40px));
    /* كارتين في الصف بدل 3 */
    justify-content: center;
  }
  
  .product-card {
    width: calc(50% - 0.5rem);
    min-width: 150px;
    max-width: 200px;
  }
  
  .product-card__image {
    height: 140px;
  }
  
  .product-card__body {
    padding: 0.75rem;
  }
  
  .product-card__title {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .product-card__desc {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-card__footer {
    gap: 0.5rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .add-to-cart-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .checkout-modal {
    padding: 1rem;
  }
  
  .checkout-modal__content {
    padding: 1.25rem;
    border-radius: 1rem;
    max-width: 520px;
  }
  
  .checkout-form .form-row {
    margin-bottom: 1rem;
  }
}

.shop-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Category Filters Container */
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.shop-search {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
  padding: 0 1rem;
}

.shop-search__field {
  position: relative;
  width: min(420px, 100%);
}

#product-search {
  width: 100%;
  padding: 0.8rem 1rem;
  padding-inline-end: 2.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-surface);
}

#product-search:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(130, 207, 226, 0.15);
}

.shop-search__field i {
  position: absolute;
  top: 50%;
  inset-inline-end: 1rem;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 1.1rem;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-muted);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Main Categories Container */
.main-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

/* Subcategory Bar - Like Software Page */
.subcategory-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease;
}

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

.subcategory-btn {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.subcategory-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.subcategory-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #1a2332;
}

/* Products Grid */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 100%;
}

.product-card {
  width: calc((100% - (1.5rem * 4)) / 5);
  min-width: 200px;
  max-width: 260px;
  flex-shrink: 0;
}

.products-empty {
  text-align: center;
  color: var(--color-muted);
  font-size: 1rem;
  padding: 2rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(130, 207, 226, 0.3);
}

.product-card__image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.product-card__desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-price span {
  font-size: 0.9rem;
  font-weight: 400;
}

.add-to-cart-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-to-cart-btn:hover {
  background: var(--color-dark);
  transform: scale(1.05);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

[dir="rtl"] .cart-sidebar {
  right: auto;
  left: -400px;
}

[dir="rtl"] .cart-sidebar.active {
  left: 0;
}

.cart-sidebar__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-sidebar__header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.cart-sidebar__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.cart-sidebar__close:hover {
  color: var(--color-accent);
}

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-background);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
}

.cart-item__title {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.cart-item__price {
  color: var(--color-primary);
  font-weight: 600;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.cart-item__remove {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
}

.cart-sidebar__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.checkout-modal.active {
  display: flex;
}

.checkout-modal__content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.checkout-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
}

.checkout-modal__close:hover {
  color: var(--color-accent);
}

.checkout-modal h2 {
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.checkout-form .form-row {
  margin-bottom: 1.5rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: var(--color-primary);
}

.payment-method input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.payment-method input[type="radio"]:checked + span {
  color: var(--color-primary);
  font-weight: 600;
}

/* Responsive */
@media (min-width: 1200px) {
  .product-card {
    width: calc((100% - (1.5rem * 4)) / 5);
    min-width: 200px;
    max-width: 260px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .product-card {
    width: calc((100% - (1.5rem * 3)) / 4);
    min-width: 200px;
    max-width: 250px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .product-card {
    width: calc((100% - (1.5rem * 2)) / 3);
    min-width: 200px;
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .shop-header__content {
    padding: 0 1rem;
    gap: 1rem;
    align-items: stretch;
  }
  
  .shop-close span {
    display: inline;
    font-size: 0.9rem;
  }
  
  .shop-close,
  .cart-toggle {
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }
  
  .shop-header__title {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .shop-header__title i {
    font-size: 1.75rem;
  }
  
  .shop-content {
    padding: 1rem;
    /* إضافة مساحة إضافية في الأسفل لتجنب شريط المتصفح في الشاشات المتوسطة */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 50px));
  }
  
  .shop-search {
    margin-bottom: 1.25rem;
    padding: 0;
  }
  
  .products-grid {
    gap: 1rem;
    /* إضافة مساحة إضافية في الأسفل للمنتجات في الشاشات المتوسطة */
    margin-bottom: calc(1rem + env(safe-area-inset-bottom, 35px));
    justify-content: center;
  }
  
  /* كارتين في الصف على الموبايل */
  .product-card {
    width: calc(50% - 0.5rem);
    min-width: 160px;
    max-width: 220px;
  }
  
  .shop-categories {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .main-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0 -1rem 0;
    padding: 0 1rem 0.75rem;
    gap: 0.75rem;
    scroll-snap-type: x proximity;
  }
  
  .main-categories::-webkit-scrollbar {
    display: none;
  }
  
  .subcategory-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0 -1rem 0;
    padding: 0 1rem 0.5rem;
    gap: 0.5rem;
    scroll-snap-type: x proximity;
  }
  
  .subcategory-bar::-webkit-scrollbar {
    display: none;
  }
  
  .category-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
  }
  
  .subcategory-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  
  .product-card {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  
  .product-card__image {
    height: 160px;
  }
  
  .product-card__body {
    padding: 1rem;
  }
  
  .product-card__title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .product-card__desc {
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    /* ضمان أن أزرار إضافة للسلة مرئية */
    margin-bottom: 0.5rem;
  }
  
  .product-price {
    font-size: 1.2rem;
  }
  
  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  [dir="rtl"] .cart-sidebar {
    left: -100%;
  }
  
  .cart-sidebar__footer {
    padding: 1.5rem 1rem;
    /* إضافة مساحة إضافية لتجنب تغطية شريط المتصفح السفلي */
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 30px));
    margin-bottom: calc(0.75rem + env(safe-area-inset-bottom, 8px));
    /* رفع العنصر لأعلى أكثر */
    transform: translateY(-0.75rem);
  }
  
  .cart-total {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: var(--color-background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-primary);
    font-weight: 600;
    /* رفع الإجمالي أكثر */
    transform: translateY(-0.5rem);
  }
  
  /* رفع زر إتمام الطلب في الشاشات المتوسطة */
  .cart-sidebar__footer .button {
    transform: translateY(-0.5rem);
    margin-top: 0.25rem;
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .checkout-modal {
    padding: 1rem;
    /* إضافة مساحة إضافية للمودال */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 15px));
  }
  
  .checkout-modal__content {
    padding: 1.5rem;
    max-width: 100%;
    /* إضافة مساحة إضافية للمحتوى */
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 15px));
  }
  
  .checkout-form .form-row {
    margin-bottom: 1rem;
  }
  
  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select {
    font-size: 16px;
  }
}

/* إخفاء زر الواتساب في المتجر */
.floating-whatsapp.shop-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* إخفاء زر الواتساب عند فتح المتجر */
body.shop-open .floating-whatsapp {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Mobile Small Screens - إصلاح السلة للشاشات الصغيرة */
@media (max-width: 480px) {
  .cart-sidebar__footer {
    padding: 2rem 0.75rem;
    position: sticky;
    bottom: 0;
    background: var(--color-surface);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    /* رفع الإجمالي وزر إتمام الطلب لأعلى أكثر */
    margin-top: 2rem;
    /* إضافة مساحة إضافية أكبر لتجنب تغطية شريط المتصفح السفلي */
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 40px));
    margin-bottom: calc(1.5rem + env(safe-area-inset-bottom, 15px));
    /* رفع العنصر بالكامل لأعلى أكثر */
    transform: translateY(-1.5rem);
  }
  
  .cart-total {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: var(--color-background);
    border-radius: var(--radius-sm);
    /* رفع الإجمالي أكثر */
    transform: translateY(-1.25rem);
    /* إضافة حدود واضحة */
    border: 2px solid var(--color-primary);
    font-weight: bold;
  }
  
  /* رفع زر إتمام الطلب أكثر */
  .cart-sidebar__footer .button {
    transform: translateY(-0.75rem);
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
  }
  
  .cart-sidebar__items {
    padding: 1rem;
    /* تقليل المساحة السفلية لرفع المحتوى */
    padding-bottom: 0.25rem;
  }
  
  .cart-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .cart-item__image {
    width: 70px;
    height: 70px;
  }
  
  .cart-item__title {
    font-size: 0.95rem;
  }
  
  .cart-item__price {
    font-size: 0.9rem;
  }
  
  .checkout-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }
  
  .checkout-modal__content {
    padding: 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
  }
  
  .checkout-modal h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .checkout-form .form-row {
    margin-bottom: 0.85rem;
  }
  
  .checkout-form label {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }
  
  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select {
    padding: 0.65rem;
    font-size: 16px;
  }
  
  .checkout-form button[type="submit"] {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .payment-method {
    padding: 0.75rem;
  }
  
  .payment-method span {
    font-size: 0.9rem;
  }
  
  /* ضمان أن المنتجات في الصف الأخير مرئية بالكامل */
  .product-card:last-child,
  .product-card:nth-last-child(2),
  .product-card:nth-last-child(3) {
    margin-bottom: calc(0.5rem + env(safe-area-inset-bottom, 30px));
  }
}


/* ==================== DISCOUNT STYLES ==================== */

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Price Wrapper */
.product-price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Original Price (Strikethrough) */
.product-price--original {
  font-size: 0.875rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

/* Discounted Price */
.product-price--discounted {
  color: #ef4444 !important;
  font-size: 1.25rem;
  font-weight: 700;
}

/* RTL Support - في العربي الخصم يظهر يسار والفئة يمين */
[dir="rtl"] .discount-badge {
  right: auto;
  left: 10px;
}

/* Category Badge - تأكد إنها على الجهة المعاكسة */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

[dir="rtl"] .product-badge {
  left: auto;
  right: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .discount-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .product-price--discounted {
    font-size: 1.1rem;
  }
}


/* ==================== IMAGE GALLERY MODAL ==================== */

.image-gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.image-gallery-modal.active {
  display: flex;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-close:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .gallery-close {
  right: auto;
  left: 20px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10002;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

[dir="rtl"] .gallery-prev {
  left: auto;
  right: 20px;
}

[dir="rtl"] .gallery-next {
  right: auto;
  left: 20px;
}

.gallery-image-container {
  max-width: 90%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 10px;
  overflow-x: auto;
  max-width: 90%;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 0.8;
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: white;
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Product Card Image - Make clickable */
.product-card__image {
  position: relative;
  cursor: pointer;
}

.product-card__image::after {
  content: '\f002'; /* Font Awesome search icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-card__image:hover::after {
  opacity: 0.8;
}

.product-card__image:hover img {
  filter: brightness(0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-close {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    top: 15px;
    right: 15px;
  }
  
  [dir="rtl"] .gallery-close {
    right: auto;
    left: 15px;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  [dir="rtl"] .gallery-prev {
    left: auto;
    right: 10px;
  }

  [dir="rtl"] .gallery-next {
    right: auto;
    left: 10px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }

  .gallery-image-container {
    max-height: 60vh;
  }

  .gallery-image-container img {
    max-height: 60vh;
  }
}



/* ==================== Product Detail Modal ==================== */
.product-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-detail-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.product-detail-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-muted);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-detail-close:hover {
  background: var(--color-primary);
  color: white;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail-main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.product-detail-thumbnails .thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.product-detail-thumbnails .thumb:hover,
.product-detail-thumbnails .thumb.active {
  border-color: var(--color-primary);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}

.product-detail-desc {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

.product-detail-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-detail-price .price-current {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-detail-price .price-original {
  font-size: 1.1rem;
  color: var(--color-muted);
  text-decoration: line-through;
}

.product-detail-price .price-discounted {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-detail-price .discount-tag {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.product-detail-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: #1a2332;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.product-detail-add-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .product-detail-close {
    top: 0.75rem;
    left: 0.75rem;
  }
  
  .product-detail-title {
    font-size: 1.25rem;
  }
  
  .product-detail-price .price-current,
  .product-detail-price .price-discounted {
    font-size: 1.5rem;
  }
}


/* Gallery Hint on Product Detail Main Image */
.product-detail-main-image {
  position: relative;
}

.product-detail-main-image .gallery-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-detail-main-image .gallery-hint i {
  color: white;
  font-size: 1.5rem;
}

.product-detail-main-image:hover .gallery-hint {
  opacity: 1;
}

.product-detail-main-image:hover img {
  filter: brightness(0.8);
}
/* Invoice Page Styles */
.invoice-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-background);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.invoice-page.active {
  display: flex;
}

/* Invoice Image Lightbox */
.invoice-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.invoice-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.invoice-lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.invoice-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.invoice-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.invoice-lightbox-close:hover {
  background: white;
  color: #000;
  transform: rotate(90deg);
}

.invoice-lightbox-hint {
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .invoice-lightbox-content img {
    max-height: 80vh;
  }
  
  .invoice-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Invoice Header */
.invoice-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.invoice-close {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.invoice-close:hover {
  background: var(--color-primary);
  color: white;
}

.invoice-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  color: var(--color-accent);
  flex: 1;
  text-align: center;
}

.invoice-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary) !important;
  font-weight: 600;
}

.invoice-link i {
  font-size: 1.1rem;
}

/* Invoice Content */
.invoice-content {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.invoice-section {
  margin-bottom: 4rem;
}

.invoice-section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.invoice-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--color-primary);
}

.invoice-description {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(130, 207, 226, 0.3);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Invoice Preview */
.invoice-preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.invoice-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.invoice-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(130, 207, 226, 0.4);
}

.invoice-details {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.invoice-details h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.invoice-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.invoice-details ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-muted);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
}

.invoice-details ul li:last-child {
  border-bottom: none;
}

.invoice-details ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Important Notes */
.important-notes {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.note-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-item i {
  color: var(--color-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.note-item p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* CTA Button */
.invoice-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
}

.invoice-cta .button {
  font-size: 1.2rem;
  padding: 1rem 3rem;
}

/* Responsive */
@media (max-width: 968px) {
  .invoice-preview-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .invoice-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .invoice-header h1 {
    font-size: 1.5rem;
  }
  
  .invoice-close span {
    display: none;
  }
  
  .invoice-content {
    padding: 2rem 1rem;
  }
  
  .invoice-section h2 {
    font-size: 1.5rem;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto;
  }
}

/* Dark Mode */
[data-theme="dark"] .invoice-page {
  background: #0a0e14;
}

[data-theme="dark"] .process-step,
[data-theme="dark"] .invoice-details,
[data-theme="dark"] .note-item {
  background: #1a1f26;
}

[data-theme="dark"] .invoice-image {
  border-color: var(--color-primary);
}
/* ========================================
   MASTER SPLINTER - ENHANCEMENTS STYLES
   All 30 Features CSS
   ======================================== */

/* ========================================
   1. LOADING ANIMATION
   ======================================== */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(130, 207, 226, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loader-text {
  color: var(--color-text);
  font-size: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   2. BACK TO TOP BUTTON - تم إلغاؤه
   ======================================== */
/* تم حذف هذه الميزة بناءً على طلب العميل */

/* ========================================
   3. SCROLL ANIMATIONS
   ======================================== */
.service-card,
.why-card,
.process-step,
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.service-card.animate-in,
.why-card.animate-in,
.process-step.animate-in,
.testimonial-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   10. LIVE CHAT WIDGET
   ======================================== */
.live-chat-widget {
  position: fixed;
  bottom: 8rem;
  left: 2rem;
  z-index: 10050;
}

/* Make English chat button same size as Arabic */
html[lang="en"] .chat-toggle {
  width: 50px;
  height: 50px;
  font-size: 1.3rem;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 350px;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10051;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-body {
  padding: 1rem;
}

.chat-message {
  background: rgba(130, 207, 226, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-option {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.chat-option:hover {
  background: var(--color-primary);
  color: white;
  transform: translateX(5px);
}

.chat-option i {
  font-size: 1.2rem;
}

/* ========================================
   19. SHARE BUTTON
   ======================================== */
.share-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 500;
}

.share-button,
.facebook-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
  transform: translateX(0);
}

.share-button:hover,
.facebook-button:hover {
  transform: translateX(-4px);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}

.facebook-button {
  background: #1877f2;
}

/* ========================================
   20. THEME CUSTOMIZER
   ======================================== */
.theme-customizer {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 500;
}

.customizer-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.customizer-toggle {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 1rem 0.75rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.shop-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: white;
  border: none;
  padding: 0.95rem 0.75rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

.shop-shortcut:hover,
.shop-shortcut:focus-visible {
  transform: translateX(4px);
  box-shadow: 6px 0 16px rgba(0, 0, 0, 0.2);
}

.shop-shortcut i {
  pointer-events: none;
}

.customizer-toggle:hover {
  padding-left: 1rem;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
}

.customizer-panel {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  min-width: 250px;
}

.customizer-panel.active {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .share-buttons {
    transform: translateY(-50%) scale(0.85);
    right: -6px;
  }

  .share-button,
  .facebook-button {
    width: 3rem;
    height: 3rem;
  }

  .theme-customizer {
    transform: translateY(-50%) scale(0.85);
  }

  .shop-shortcut,
  .customizer-toggle {
    padding: 0.75rem 0.55rem;
    font-size: 1.05rem;
  }

  .customizer-panel {
    min-width: 220px;
  }
}

@media (max-width: 480px) {
  .share-buttons {
    transform: translateY(-50%) scale(0.75);
    right: -10px;
  }

  .theme-customizer {
    transform: translateY(-50%) scale(0.75);
  }

  .customizer-panel {
    min-width: 200px;
  }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.customizer-panel h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.color-option {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: var(--color-text);
}

/* ========================================
   21. FONT SIZE CONTROL - تم إلغاؤه
   ======================================== */
/* تم حذف هذه الميزة بناءً على طلب العميل */

/* ========================================
   24. WELCOME POPUP - تم إلغاؤه
   ======================================== */
/* تم حذف هذه الميزة بناءً على طلب العميل */

/* ========================================
   25. NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.newsletter-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  background: white;
  color: var(--color-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   26. FAQ SECTION
   ======================================== */
.faq-section {
  background: var(--color-bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--color-bg-secondary);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   28. TRUST BADGES
   ======================================== */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(130, 207, 226, 0.1);
  border-radius: 12px;
}

.badge {
  text-align: center;
  padding: 1rem;
}

.badge i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.badge span {
  font-weight: 600;
  color: var(--color-text);
}

/* ========================================
   9. SERVICE SEARCH
   ======================================== */
.service-search {
  position: relative;
  max-width: 500px;
  margin: 2rem auto 0;
}

.service-search input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.service-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(130, 207, 226, 0.1);
}

.service-search i {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
}

/* ========================================
   8. WORKS GALLERY (أعمالنا)
   ======================================== */
.gallery-slider {
  position: relative;
  margin-top: 2rem;
  padding: 0 3rem;
}

.gallery-track-container {
  overflow: hidden;
  border-radius: 12px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1rem;
  direction: ltr;
}

.gallery-slide {
  min-width: calc(25% - 0.75rem); /* 4 slides on desktop */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--color-bg-secondary);
}

.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-slide:hover img,
.gallery-slide:hover video {
  transform: scale(1.1);
}

.gallery-video {
  display: block;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.video-play-icon i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-left: 4px;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(130, 207, 226, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-slide:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 3rem;
  color: white;
}

/* Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
  left: 0;
}

.gallery-nav-next {
  right: 0;
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--color-primary);
  width: 30px;
  border-radius: 6px;
}

.gallery-dot:hover {
  background: var(--color-primary);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1199px) {
  .gallery-slide {
    min-width: calc(33.333% - 0.67rem); /* 3 slides on tablet */
  }
}

@media (max-width: 767px) {
  .gallery-slide {
    min-width: calc(50% - 0.5rem); /* 2 slides on mobile */
  }
  
  .gallery-slider {
    padding: 0 2rem;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 479px) {
  .gallery-slide {
    min-width: calc(50% - 0.5rem); /* 2 slides - زي الصورة الأصلية */
  }
  
  .gallery-slider {
    padding: 0 1.5rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

#lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-content img,
#lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-video {
  width: 100%;
  max-width: 1200px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    padding: 0.75rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
}

/* ========================================
   14. MAP SECTION
   ======================================== */
.map-container {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   NOTIFICATION
   ======================================== */
.notification {
  position: fixed;
  top: 100px;
  right: -300px;
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 10001;
}

.notification.show {
  right: 2rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  /* Overlay behind chat window */
  .chat-window::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .chat-window.active::before {
    opacity: 1;
  }
  
  .chat-window {
    position: fixed;
    width: calc(100vw - 2rem);
    max-width: 400px;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
  }
  
  .chat-window.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .chat-body {
    max-height: calc(80vh - 120px);
    overflow-y: auto;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: 100%;
  }
  
  .live-chat-widget {
    bottom: 5.5rem;
    left: 1rem;
  }
  
  .scroll-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
  
  .share-button,
  .theme-customizer {
    display: none;
  }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
.dark-mode .chat-window,
.dark-mode .customizer-panel,
.dark-mode .popup-content {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.dark-mode .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   DROPDOWN & SELECT IMPROVEMENTS
   ======================================== */

/* تحسينات القائمة المنسدلة */
select {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
}


select:focus {
  z-index: 10000;
  position: relative;
}

select option {
  padding: 0.5rem;
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-accent);
}

select option:hover {
  background: var(--color-primary);
  color: white;
}

select option:checked {
  background: var(--color-primary);
  color: white;
}

[data-theme="dark"] select option {
  background: var(--color-surface);
  color: var(--color-accent);
}

[data-theme="dark"] select option:hover {
  background: rgba(130, 207, 226, 0.3);
}

[data-theme="dark"] select option:checked {
  background: rgba(130, 207, 226, 0.5);
}

/* تحسينات النموذج للتأكد من أن الـ selects فوق كل شيء */
.request-form select {
  z-index: 1;
}

.request-form select:focus,
.request-form select:active {
  z-index: 10000;
}

/* تقليل حجم الخط في الخيارات */
select {
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* تحسين استجابة الهاتف المحمول */
@media (max-width: 768px) {
  select {
    font-size: 16px;
    padding: 0.7rem 0.8rem !important;
  }

  select option {
    font-size: 16px;
    padding: 0.6rem;
  }
}

.request-form select {
  background-image: none !important;
  background-position: initial !important;
  padding-left: 0.9rem !important;
}

[data-theme="dark"] .request-form select {
  background-image: none !important;
}

@media (max-width: 768px) {
  .request-form select {
    padding-left: 0.8rem !important;
  }
}



/* ========================================
   FORM VALIDATION ENHANCEMENT - 10/10
   ======================================== */

/* Real-time validation styles */
.form-row input.valid,
.form-row select.valid,
.form-row textarea.valid {
  border-color: #22c55e !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2322c55e' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 40px !important;
}

[dir="rtl"] .form-row input.valid,
[dir="rtl"] .form-row textarea.valid {
  background-position: right 12px center;
  padding-right: 40px !important;
  padding-left: 12px !important;
}

.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: #ef4444 !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Error message styles */
.field-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.field-error.show {
  opacity: 1;
  transform: translateY(0);
}

.field-error i {
  font-size: 0.8rem;
}

/* Required field indicator */
.required-mark {
  color: #ef4444;
  margin-right: 2px;
}

/* ========================================
   LOADING STATES - 10/10
   ======================================== */

/* Button loading state */
.btn-loading,
button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after,
button.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-right: 8px;
}

[dir="rtl"] .btn-loading::after,
[dir="rtl"] button.loading::after {
  margin-right: 0;
  margin-left: 8px;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Form submitting state */
.form-submitting {
  opacity: 0.7;
  pointer-events: none;
}

.form-submitting::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

/* Image loading placeholder */
img.img-loading {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-surface) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: img-shimmer 1.5s infinite;
}

@keyframes img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENT - 10/10
   ======================================== */

/* Focus indicators */
*:focus-visible {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(130, 207, 226, 0.2) !important;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 99999;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0066cc;
    --color-border: #000;
  }
  
  button, a, input, select, textarea {
    border-width: 2px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keyboard navigation indicator */
body.keyboard-nav *:focus {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}
/* ========================================
   MASTER SPLINTER - RESPONSIVE STYLES
   Complete Responsive Design for All Devices
   ======================================== */

/* ========================================
   VIEWPORT & BASE RESPONSIVE SETTINGS
   ======================================== */

/* Ensure proper box-sizing for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 599px) {
  .shop-page .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .shop-page .product-card {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  .shop-page .product-card__image {
    height: 150px;
  }

  .shop-page .product-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .shop-page .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Prevent horizontal scroll on small screens */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Responsive images and media */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LARGE DESKTOP (1920px+)
   ======================================== */
@media (min-width: 1920px) {
  :root {
    --max-width: 1600px;
  }
  
  .container {
    max-width: 1600px;
  }
  
  .hero__title {
    font-size: 4rem;
  }
  
  .section__title {
    font-size: 3rem;
  }
}

/* ========================================
   DESKTOP (1440px - 1919px)
   ======================================== */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    max-width: 1400px;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   LAPTOP (1024px - 1439px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ========================================
   TABLET LANDSCAPE (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  
  .hero {
    padding: 3rem 1.5rem;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-slide {
    min-width: calc(50% - 0.5rem);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Header adjustments */
  .site-header {
    padding: 1rem 1.5rem;
  }
  
  body {
    padding-top: 75px;
  }
  
  .brand__logo {
    width: 45px;
    height: 45px;
  }
  
  /* Footer adjustments */
  .site-footer {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ========================================
   TABLET PORTRAIT (600px - 767px)
   ======================================== */
@media (min-width: 600px) and (max-width: 767px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero {
    padding: 2.5rem 1.25rem;
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-card__icon {
    font-size: 2rem;
  }
  
  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .section {
    padding: 3rem 1.25rem;
  }
}

/* ========================================
   MOBILE LARGE (480px - 599px)
   ======================================== */
@media (min-width: 480px) and (max-width: 599px) {
  .container {
    padding: 0 1rem;
  }
  
  /* إصلاح عرض نص زر العودة في المتجر */
  .shop-close span {
    display: inline !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .hero__subtitle {
    font-size: 0.9rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .button {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 2.5rem 1rem;
  }
  
  .section__title {
    font-size: 1.75rem;
  }
  
  /* Stack hero stats vertically */
  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Single column layouts */
  .process-steps,
  .trust-badges,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  /* Gallery adjustments */
  .gallery-slide {
    min-width: calc(50% - 0.5rem); /* 2 slides زي الصورة الأصلية */
  }
  
  .gallery-slider {
    padding: 0 1.5rem;
  }
}

/* ========================================
   MOBILE MEDIUM (375px - 479px)
   ======================================== */
@media (min-width: 375px) and (max-width: 479px) {
  .container {
    padding: 0 0.875rem;
  }
  
  /* إصلاح عرض نص زر العودة في المتجر */
  .shop-close span {
    display: inline !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
  }
  
  .hero {
    padding: 1.75rem 0.875rem;
  }
  
  .hero__title {
    font-size: 1.35rem;
  }
  
  .hero__subtitle {
    font-size: 0.85rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.875rem;
  }
  
  .service-card {
    padding: 0.875rem;
  }
  
  .service-card__icon {
    font-size: 1.75rem;
  }
  
  .button {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
  
  .section {
    padding: 2rem 0.875rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
  
  /* Header adjustments */
  .site-header {
    padding: 0.75rem 0.875rem;
  }
  
  body {
    padding-top: 70px;
  }
  
  .brand__logo {
    width: 40px;
    height: 40px;
  }
  
  .brand__text strong {
    font-size: 0.95rem;
  }
  
  .brand__text small {
    font-size: 0.65rem;
  }
  
  /* Modal adjustments */
  .service-modal {
    width: 95%;
    max-height: 85vh;
  }
  
  .service-modal__content {
    padding: 1.25rem 0.875rem;
  }
  
  /* Cart sidebar */
  .cart-sidebar {
    width: 100%;
  }
  
  /* Footer */
  .site-footer {
    padding: 1.5rem 0.875rem;
  }
}

/* ========================================
   MOBILE SMALL (320px - 374px)
   ======================================== */
@media (max-width: 374px) {
  .container {
    padding: 0 0.75rem;
  }
  
  /* إصلاح عرض نص زر العودة في المتجر */
  .shop-close {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.9rem !important;
  }
  
  .shop-close span {
    display: inline !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }
  
  .shop-close i {
    margin-left: 0.4rem;
  }
  
  [dir="rtl"] .shop-close i {
    margin-left: 0;
    margin-right: 0.4rem;
  }
  
  .hero {
    padding: 1.5rem 0.75rem;
  }
  
  .hero__title {
    font-size: 1.2rem;
    line-height: 1.25;
  }
  
  .hero__subtitle {
    font-size: 0.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .service-card {
    padding: 0.75rem;
  }
  
  .service-card__icon {
    font-size: 1.5rem;
  }
  
  .service-card__title {
    font-size: 0.95rem;
  }
  
  .button {
    padding: 0.6rem 0.875rem;
    font-size: 0.8rem;
  }
  
  .section {
    padding: 1.75rem 0.75rem;
  }
  
  .section__title {
    font-size: 1.35rem;
  }
  
  /* Header adjustments */
  .site-header {
    padding: 0.65rem 0.75rem;
  }
  
  body {
    padding-top: 65px;
  }
  
  .brand__logo {
    width: 35px;
    height: 35px;
  }
  
  .brand__text strong {
    font-size: 0.85rem;
  }
  
  .brand__text small {
    font-size: 0.6rem;
  }
  
  .header-controls {
    gap: 0.4rem;
  }
  
  /* Modal adjustments */
  .service-modal {
    width: 98%;
    max-height: 90vh;
  }
  
  .service-modal__content {
    padding: 1rem 0.75rem;
  }
  
  .service-modal h2 {
    font-size: 1.25rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 1.25rem 0.75rem;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  /* Floating WhatsApp button - مقابل زر الدردشة مع الحفاظ على الشكل */
  .floating-whatsapp {
    bottom: 8rem !important;
    bottom: calc(8rem + env(safe-area-inset-bottom, 0)) !important;
    right: clamp(0.75rem, 3vw, 1rem) !important;
    /* الحفاظ على الشكل الأصلي */
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    width: auto !important;
    height: auto !important;
  }
  
  /* إصلاح السلة والمودال لتجنب تغطية شريط المتصفح السفلي */
  .cart-sidebar__footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 20px)) !important;
    margin-bottom: env(safe-area-inset-bottom, 0);
  }
  
  .checkout-modal {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 20px)) !important;
  }
  
  .checkout-modal__content {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 20px)) !important;
  }
  
  .floating-whatsapp__icon {
    font-size: 1.1rem;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION (Mobile/Tablet)
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 1.5rem 1rem;
  }
  
  .hero__title {
    font-size: 1.5rem;
  }
  
  .hero__subtitle {
    font-size: 0.85rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .service-modal {
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .site-header {
    padding: 0.75rem 1rem;
  }
  
  body {
    padding-top: 68px;
  }
}

/* ========================================
   MOBILE DEVICES - WHATSAPP BUTTON FIX
   ======================================== */
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 8rem !important;
    /* الحفاظ على الشكل الأصلي للهواتف فقط */
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    width: auto !important;
    height: auto !important;
  }
  
  /* عرض القائمة الثانوية على الأجهزة المحمولة والتابلت */
  .site-nav .secondary-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
  }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* لا تعديل لزر الواتساب في الأجهزة اللمسية الكبيرة */
  
  /* Increase touch targets */
  .button,
  .nav-link,
  .service-card,
  .product-card {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .product-card:hover,
  .button:hover {
    transform: none;
  }
  
  /* Add active states instead */
  .service-card:active,
  .product-card:active,
  .button:active {
    transform: scale(0.98);
  }
  
  /* Larger tap areas for icons */
  .theme-toggle,
  .lang-toggle,
  .nav-toggle {
    padding: 0.75rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .site-header,
  .floating-whatsapp,
  .live-chat-widget,
  .share-button,
  .theme-customizer,
  .nav-toggle {
    display: none !important;
  }
  
  .hero,
  .section {
    page-break-inside: avoid;
  }
  
  .service-card,
  .product-card {
    page-break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ========================================
   HIGH DPI / RETINA DISPLAYS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images for retina displays */
  .brand__logo,
  .service-card__icon,
  .product-card__image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========================================
   REDUCED MOTION (Accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   DARK MODE PREFERENCE
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0a0e13;
    --color-surface: #1a2332;
    --color-accent: #ffffff;
    --color-muted: #c5d0de;
    --color-border: #4a5568;
  }
}

/* ========================================
   SPECIFIC COMPONENT RESPONSIVE FIXES
   ======================================== */

/* Navigation Menu - Mobile */
@media (max-width: 960px) {
  /* Ensure header has proper z-index */
  .site-header {
    position: fixed;
    z-index: 10001;
  }
  
  /* Keep header layout same as desktop */
  .brand {
    order: 0;
  }
  
  .header-controls {
    order: 1;
    margin-left: auto;
  }
  
  .nav-toggle {
    order: 2;
    margin-left: 1rem;
  }
  
  [dir="rtl"] .nav-toggle {
    margin-left: 0;
    margin-right: 1rem;
  }
  
  /* Ensure menu starts hidden */
  .site-nav:not([aria-expanded="true"]) {
    transform: translateY(-120%);
    -webkit-transform: translateY(-120%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  
  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }
  
  /* Add overlay when menu is open */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 800;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    padding: 7rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-120%);
    -webkit-transform: translateY(-120%);
    transition: transform 0.35s ease, -webkit-transform 0.35s ease;
    z-index: 850;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .site-nav[aria-expanded="true"] {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  
  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .site-nav ul li {
    width: 100%;
  }

  .site-nav ul a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.95rem;
    min-height: 70px;
  }

  .site-nav ul a i {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
  }

  .site-nav .secondary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .site-nav li {
    width: 100%;
  }
  
  .site-nav a {
    display: block;
    padding: 1rem 1.5rem;
    background: rgba(130, 207, 226, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(130, 207, 226, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(130, 207, 226, 0.2);
    border-color: var(--color-primary);
    transform: translateX(5px);
  }
  
  [dir="rtl"] .site-nav a:hover,
  [dir="rtl"] .site-nav a:focus-visible {
    transform: translateX(-5px);
  }
  
  .site-nav a::after {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 10000;
    position: relative;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(130, 207, 226, 0.2);
    transition: all 0.3s ease;
  }
  
  .nav-toggle:hover {
    box-shadow: 0 4px 16px rgba(130, 207, 226, 0.3);
    transform: translateY(-1px);
  }
  
  .nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .site-header .cta-button {
    display: none;
  }
  
  /* Dark mode mobile navigation styles */
  [data-theme="dark"] .site-nav {
    background: var(--color-surface);
    border-bottom-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  
  [data-theme="dark"] .site-nav a {
    background: rgba(130, 207, 226, 0.15);
    border-color: rgba(130, 207, 226, 0.3);
    color: var(--color-accent);
  }
  
  [data-theme="dark"] .site-nav a:hover,
  [data-theme="dark"] .site-nav a:focus-visible {
    background: rgba(130, 207, 226, 0.25);
    border-color: var(--color-primary);
  }
  
  /* Ensure header controls are visible */
  body.nav-open .header-controls {
    position: relative;
    z-index: 10002;
  }
  
  body.nav-open .theme-toggle,
  body.nav-open .lang-toggle {
    background: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(130, 207, 226, 0.2);
  }
  
  /* Mobile navigation overlay */
  .site-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, 
      rgba(130, 207, 226, 0.05) 0%, 
      transparent 30%);
    pointer-events: none;
    z-index: -1;
  }
  
  [data-theme="dark"] .site-nav::before {
    background: linear-gradient(180deg, 
      rgba(130, 207, 226, 0.1) 0%, 
      transparent 30%);
  }
}

/* Service Modal - Responsive */
@media (max-width: 768px) {
  .service-modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .service-modal__content {
    padding: 1.5rem 1rem;
  }
  
  .service-modal h2 {
    font-size: 1.5rem;
  }
  
  .service-modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
}

/* Cart Sidebar - Mobile */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  [dir="rtl"] .cart-sidebar {
    left: -100%;
    right: auto;
  }
  
  /* إصلاح السلة لتجنب تغطية شريط المتصفح السفلي */
  .cart-sidebar__footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 15px)) !important;
    margin-bottom: env(safe-area-inset-bottom, 0);
    position: sticky;
    bottom: 0;
    background: var(--color-surface);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  
  .checkout-modal {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 15px)) !important;
  }
  
  .checkout-modal__content {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 15px)) !important;
  }
}

/* Invoice Page - Responsive */
@media (max-width: 968px) {
  .invoice-preview-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .invoice-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .invoice-content {
    padding: 2rem 1rem;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
  }
}

/* Newsletter Form - Mobile */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: 100%;
  }
}

/* Gallery - Responsive */
@media (max-width: 1199px) {
  .gallery-slide {
    min-width: calc(33.333% - 0.67rem);
  }
}

@media (max-width: 767px) {
  .gallery-slide {
    min-width: calc(50% - 0.5rem);
  }
  
  .gallery-slider {
    padding: 0 2rem;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 479px) {
  .gallery-slide {
    min-width: calc(50% - 0.5rem); /* 2 slides - زي الصورة الأصلية */
  }
  
  .gallery-slider {
    padding: 0 1.5rem;
  }
}

/* Chat Widget - Mobile */
@media (max-width: 768px) {
  /* Overlay behind chat window */
  .chat-window::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .chat-window.active::before {
    opacity: 1;
  }
  
  .chat-window {
    position: fixed;
    width: calc(100vw - 2rem);
    max-width: 400px;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
  }
  
  .chat-window.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .chat-body {
    max-height: calc(80vh - 120px);
    overflow-y: auto;
  }
  /* Smaller chat toggle button for mobile */
  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  /* Extra small screens */
  @media (max-width: 480px) {
    .chat-toggle {
      width: 45px;
      height: 45px;
      font-size: 1.2rem;
    }
    
    .share-button,
    .theme-customizer {
      transform: translateY(-50%) scale(0.7);
    }
  }
  
  /* Show share and theme buttons on mobile but smaller */
  .share-button,
  .theme-customizer {
    display: block;
    transform: translateY(-50%) scale(0.8);
  }
  
  .share-button {
    right: -5px;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }
  
  .theme-customizer .customizer-toggle {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }
}

/* ========================================
   BROWSER-SPECIFIC FIXES
   ======================================== */

/* Safari iOS - Fix viewport units */
@supports (-webkit-touch-callout: none) {
  .hero,
  .section {
    min-height: -webkit-fill-available;
  }
}

/* Firefox - Smooth scrolling */
@-moz-document url-prefix() {
  html {
    scroll-behavior: smooth;
  }
}

/* Edge - Grid layout fix */
@supports (-ms-ime-align: auto) {
  .services-grid,
  .products-grid {
    display: -ms-grid;
  }
}
/* ========================================
   WHATSAPP BUTTON POSITION FIX
   إصلاح موضع زر الواتساب للأجهزة المحمولة فقط
   ======================================== */

/* قاعدة عامة لضمان ظهور زر الواتساب فوق جميع العناصر */
.floating-whatsapp {
  z-index: 500 !important;
  position: fixed !important;
}

/* التأكد من عدم تأثير التعديلات على الكمبيوتر */
@media (min-width: 769px) {
  .floating-whatsapp {
    bottom: clamp(1rem, 3vw, 2rem) !important;
    right: clamp(1rem, 3vw, 2rem) !important;
    z-index: 500 !important;
    position: fixed !important;
  }
}

/* إصلاح شامل للأجهزة المحمولة فقط (ليس الكمبيوتر) */
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 8rem !important;
    position: fixed !important;
    z-index: 500 !important;
    /* الحفاظ على الشكل الأصلي مثل الكمبيوتر */
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 1rem 1.55rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 1.02rem !important;
    width: auto !important;
    height: auto !important;
  }
}

/* إصلاح للهواتف الذكية - الحفاظ على الشكل الكامل */
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 8rem !important;
    right: 1rem !important;
    /* الحفاظ على النص والشكل الأصلي */
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem !important;
    gap: 0.6rem !important;
  }
  
  .floating-whatsapp__icon {
    font-size: 1.1rem !important;
  }
}

/* إصلاح للهواتف الصغيرة - تقليل الحجم قليلاً مع الحفاظ على الشكل */
@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 8rem !important;
    right: 0.75rem !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
    gap: 0.5rem !important;
  }
}

/* إصلاح للهواتف الصغيرة جداً */
@media (max-width: 374px) {
  .floating-whatsapp {
    bottom: 8rem !important;
    bottom: calc(8rem + env(safe-area-inset-bottom, 0)) !important;
    right: 0.5rem !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
  }
}

/* إصلاح للأجهزة اللمسية الصغيرة فقط */
@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .floating-whatsapp {
    bottom: 8rem !important;
  }
}

/* إصلاح للأجهزة ذات الحواف المنحنية */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .floating-whatsapp {
      bottom: max(8rem, calc(8rem + env(safe-area-inset-bottom))) !important;
      right: max(1rem, env(safe-area-inset-right)) !important;
    }
  }
}

/* إصلاح إضافي لضمان التطبيق */
.floating-whatsapp[style*="bottom"] {
  bottom: 8rem !important;
}

/* إصلاح للوضع الأفقي على الموبايل */
@media (max-width: 768px) and (orientation: landscape) {
  .floating-whatsapp {
    bottom: 6rem !important;
  }
}

/* ضمان عرض النص في جميع الأحجام */
@media (max-width: 1023px) {
  .floating-whatsapp span {
    display: inline !important;
    white-space: nowrap !important;
  }
  
  .floating-whatsapp .floating-whatsapp__icon {
    display: inline !important;
  }
}
/* 
 * Icon Fallback CSS
 * حل احتياطي لمشكلة عدم ظهور الأيقونات
 */

/* Font Awesome already loaded in index.html - no need to import again */

/* إصلاح عرض الأيقونات */
.fas, .far, .fab, .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
}

.far {
  font-weight: 400;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

/* التأكد من ظهور الأيقونات في حالة فشل التحميل */
i[class*="fa-"]::before {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* إصلاح مشكلة الأيقونات المخفية */
.fa-moon::before { content: "\f186"; }
.fa-sun::before { content: "\f185"; }
.fa-volume-up::before { content: "\f028"; }
.fa-volume-mute::before { content: "\f6a9"; }
.fa-calendar-check::before { content: "\f274"; }
.fa-tools::before { content: "\f7d9"; }
.fa-images::before { content: "\f302"; }
.fa-file-invoice::before { content: "\f570"; }
.fa-shopping-cart::before { content: "\f07a"; }
.fa-mobile-alt::before { content: "\f3cd"; }
.fa-laptop::before { content: "\f109"; }
.fa-hdd::before { content: "\f0a0"; }
.fa-gamepad::before { content: "\f11b"; }
.fa-tv::before { content: "\f26c"; }
.fa-headphones::before { content: "\f025"; }
.fa-shield-alt::before { content: "\f3ed"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-check::before { content: "\f00c"; }
.fa-times::before { content: "\f00d"; }
.fa-bars::before { content: "\f0c9"; }
.fa-phone::before { content: "\f095"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-star::before { content: "\f005"; }
.fa-quote-left::before { content: "\f10d"; }
.fa-quote-right::before { content: "\f10e"; }
.fa-facebook::before { content: "\f09a"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-instagram::before { content: "\f16d"; }
.fa-twitter::before { content: "\f099"; }
.fa-linkedin::before { content: "\f0e1"; }
.fa-youtube::before { content: "\f167"; }
.fa-arrow-up::before { content: "\f062"; }
.fa-info-circle::before { content: "\f05a"; }
.fa-exclamation-triangle::before { content: "\f071"; }
.fa-spinner::before { content: "\f110"; }
.fa-search::before { content: "\f002"; }
.fa-user::before { content: "\f007"; }
.fa-cog::before { content: "\f013"; }
.fa-home::before { content: "\f015"; }
.fa-download::before { content: "\f019"; }
.fa-upload::before { content: "\f093"; }
.fa-trash::before { content: "\f1f8"; }
.fa-edit::before { content: "\f044"; }
.fa-save::before { content: "\f0c7"; }
.fa-plus::before { content: "\f067"; }
.fa-minus::before { content: "\f068"; }

/* إصلاح مشكلة الأيقونات في الأزرار */
button i[class*="fa-"],
a i[class*="fa-"],
.button i[class*="fa-"] {
  margin-left: 8px;
  margin-right: 8px;
}

/* إصلاح الأيقونات في RTL */
[dir="rtl"] button i[class*="fa-"],
[dir="rtl"] a i[class*="fa-"],
[dir="rtl"] .button i[class*="fa-"] {
  margin-left: 8px;
  margin-right: 8px;
}

/* التأكد من ظهور الأيقونات بشكل صحيح */
.fa-spin {
  animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* إصلاح حجم الأيقونات */
.fa-xs { font-size: 0.75em; }
.fa-sm { font-size: 0.875em; }
.fa-lg { font-size: 1.25em; }
.fa-2x { font-size: 2em; }
.fa-3x { font-size: 3em; }
.fa-4x { font-size: 4em; }
.fa-5x { font-size: 5em; }

/* إصلاح الأيقونات الثابتة */
.fa-fw {
  text-align: center;
  width: 1.25em;
}
/* Gmail Aliases Magic Window - Professional Design */

.gmail-aliases-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gmail-aliases-modal.active {
  display: flex;
  opacity: 1;
}

.gmail-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.gmail-modal-container {
  position: relative;
  width: 85%;
  max-width: 900px;
  height: 80%;
  max-height: 650px;
  margin: auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Header */
.gmail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gmail-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gmail-header-icon {
  font-size: 2rem;
  animation: sparkle 2s infinite;
}

.gmail-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gmail-header-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

.gmail-modal-close {
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.gmail-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Body */
.gmail-modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* Statistics Cards */
.gmail-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gmail-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.gmail-stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Input Section */
.gmail-input-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.gmail-input-group {
  margin-bottom: 1.5rem;
}

.gmail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.gmail-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.gmail-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Options Grid */
.gmail-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gmail-option-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.gmail-option-card:hover {
  border-color: #667eea;
  background: white;
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.option-header i {
  color: #667eea;
  margin-right: 0.5rem;
}

.option-header span {
  font-weight: 600;
  color: #333;
}

.option-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* Switch */
.gmail-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.gmail-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Range Slider */
.gmail-range-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gmail-range {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.gmail-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.range-value {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

/* Variations Controls */
.variations-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.variation-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.decrease-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.decrease-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.increase-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.increase-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.variations-input {
  width: 80px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #667eea;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  background: white;
  color: #333;
  transition: all 0.3s ease;
}

.variations-input:focus {
  outline: none;
  border-color: #5a67d8;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #f8fafc;
}

/* Dark Mode for Variations Controls */
[data-theme="dark"] .variations-controls,
.dark-mode .variations-controls {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .variations-input,
.dark-mode .variations-input {
  background: #1a202c;
  border-color: #667eea;
  color: #e2e8f0;
}

[data-theme="dark"] .variations-input:focus,
.dark-mode .variations-input:focus {
  background: #2d3748;
  border-color: #5a67d8;
}

/* Generate Button */
.gmail-generate-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.gmail-generate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.gmail-generate-btn:hover::before {
  left: 100%;
}

.gmail-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-icon, .btn-sparkle {
  font-size: 1.25rem;
}

.btn-sparkle {
  font-size: 1rem;
  animation: rotate 2s linear infinite;
}

/* Generating State */
.gmail-generate-btn.generating {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  animation: pulse 1.5s infinite;
}

.gmail-generate-btn.generating:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Results Section */
.gmail-results-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.results-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.results-actions {
  display: flex;
  gap: 1rem;
}

.gmail-action-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.gmail-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gmail-results-grid {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.result-item:hover {
  background: white;
  border-color: #667eea;
  transform: translateX(5px);
}

.result-email {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #1a202c;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.copy-btn {
  padding: 0.5rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #5a67d8;
  transform: scale(1.1);
}

/* Footer */
.gmail-modal-footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.heart {
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Dark Mode Support */
[data-theme="dark"] .gmail-modal-body,
.dark-mode .gmail-modal-body {
  background: rgba(30, 30, 30, 0.95);
  color: #e2e8f0;
}

[data-theme="dark"] .gmail-input-section,
.dark-mode .gmail-input-section {
  background: #2d3748;
  border: 1px solid #4a5568;
}

[data-theme="dark"] .gmail-input,
.dark-mode .gmail-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .gmail-input:focus,
.dark-mode .gmail-input:focus {
  background: #2d3748;
  border-color: #667eea;
}

[data-theme="dark"] .gmail-option-card,
.dark-mode .gmail-option-card {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .gmail-option-card:hover,
.dark-mode .gmail-option-card:hover {
  background: #374151;
  border-color: #667eea;
}

[data-theme="dark"] .gmail-results-section,
.dark-mode .gmail-results-section {
  background: #2d3748;
}

[data-theme="dark"] .result-item,
.dark-mode .result-item {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .result-item:hover,
.dark-mode .result-item:hover {
  background: #2d3748;
  border-color: #667eea;
}

[data-theme="dark"] .result-email,
.dark-mode .result-email {
  background: #2d3748;
  color: #e2e8f0;
  border-color: rgba(102, 126, 234, 0.4);
}

/* RTL Support */
[dir="rtl"] .gmail-modal-container {
  direction: rtl;
}

[dir="rtl"] .gmail-header-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .gmail-label {
  flex-direction: row-reverse;
}

[dir="rtl"] .option-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .option-header i {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .results-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .result-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
  flex-direction: row-reverse;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .gmail-modal-container {
    width: 90%;
    height: 85%;
    max-height: 600px;
  }
  
  .gmail-modal-header {
    padding: 1.25rem;
  }
  
  .gmail-header-title {
    font-size: 1.4rem;
  }
  
  .gmail-modal-body {
    padding: 1.25rem;
  }
  
  .gmail-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .gmail-input-section {
    padding: 1.25rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gmail-aliases-modal {
    z-index: 20000;
  }
  
  .gmail-modal-container {
    width: 95%;
    height: 90%;
    border-radius: 15px;
    max-height: none;
    z-index: 20001;
  }
  
  .gmail-modal-header {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .gmail-header-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .gmail-header-title {
    font-size: 1.5rem;
  }
  
  .gmail-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  
  [dir="rtl"] .gmail-modal-close {
    right: auto;
    left: 1rem;
  }
  
  .gmail-modal-body {
    padding: 1.25rem;
  }
  
  .gmail-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gmail-stat-card {
    padding: 1.25rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .gmail-input-section {
    padding: 1.5rem;
  }
  
  .gmail-options-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gmail-option-card {
    padding: 1rem;
  }
  
  .results-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .results-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .gmail-results-grid {
    padding: 1.5rem;
    max-height: 250px;
  }
  
  .result-item {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .copy-btn {
    align-self: center;
    width: 100%;
    max-width: 200px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .gmail-modal-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
    max-height: none;
  }
  
  .variations-controls {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .variation-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .variations-input {
    width: 100%;
    max-width: 120px;
  }
  
  .gmail-modal-header {
    padding: 1rem;
  }
  
  .gmail-header-title {
    font-size: 1.25rem;
  }
  
  .gmail-header-subtitle {
    font-size: 0.875rem;
  }
  
  .gmail-modal-close {
    width: 35px;
    height: 35px;
    top: 0.75rem;
    right: 0.75rem;
  }
  
  [dir="rtl"] .gmail-modal-close {
    right: auto;
    left: 0.75rem;
  }
  
  .gmail-modal-body {
    padding: 1rem;
  }
  
  .gmail-stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-icon {
    font-size: 1.5rem;
  }
  
  .gmail-input-section {
    padding: 1.25rem;
  }
  
  .gmail-input {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  
  .gmail-label {
    font-size: 0.875rem;
  }
  
  .gmail-generate-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .gmail-results-grid {
    padding: 1rem;
    max-height: 200px;
  }
  
  .result-email {
    font-size: 0.8rem;
    word-break: break-all;
  }
  
  .gmail-modal-footer {
    padding: 0.75rem 1rem;
  }
  
  .footer-content {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .gmail-header-title {
    font-size: 1.1rem;
  }
  
  .gmail-modal-body {
    padding: 0.75rem;
  }
  
  .gmail-input-section {
    padding: 1rem;
  }
  
  .gmail-stats-grid {
    gap: 0.75rem;
  }
  
  .gmail-stat-card {
    padding: 0.875rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .gmail-generate-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .btn-text {
    display: none;
  }
  
  .gmail-generate-btn::after {
    content: "Generate";
    font-size: 0.9rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .gmail-modal-container {
    height: 95%;
    overflow-y: auto;
  }
  
  .gmail-modal-header {
    padding: 1rem 1.5rem;
  }
  
  .gmail-header-title {
    font-size: 1.25rem;
  }
  
  .gmail-modal-body {
    padding: 1rem 1.5rem;
  }
  
  .gmail-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .gmail-stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gmail-modal-container {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  }
  
  .gmail-stat-card {
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .gmail-aliases-modal,
  .gmail-modal-container,
  .gmail-stat-card,
  .result-item,
  .gmail-generate-btn,
  .copy-btn {
    animation: none !important;
    transition: none !important;
  }
  
  .gmail-icon,
  .magic-sparkle,
  .heart {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .gmail-aliases-modal {
    display: none !important;
  }
}
/* New Year Celebration Effects - Header Only */

#celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  overflow: visible;
  z-index: 99999;
}

/* Santa Hat on Logo */
.brand__logo {
  position: relative;
}

.brand__link {
  position: relative;
}

/* Santa Claus next to Logo - Left side */
.santa-claus {
  position: absolute;
  top: -15px;
  left: -55px;
  width: 55px;
  height: 65px;
  z-index: 10000;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
  animation: santa-wave 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes santa-wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(2deg); }
  75% { transform: translateY(-3px) rotate(-2deg); }
}

/* Snow */
.snowflake {
  position: absolute;
  color: #fff;
  font-size: 14px;
  top: -20px;
  opacity: 0.9;
  animation: snow-fall linear infinite;
  text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

@keyframes snow-fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100px) rotate(360deg) translateX(15px);
    opacity: 0.5;
  }
}

/* Confetti - More colorful */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  opacity: 0;
  animation: confetti-fall linear infinite;
}

.confetti.gold { background: linear-gradient(135deg, #ffd700, #ffec8b); }
.confetti.red { background: linear-gradient(135deg, #ff4757, #ff6b81); }
.confetti.green { background: linear-gradient(135deg, #2ed573, #7bed9f); }
.confetti.blue { background: linear-gradient(135deg, #1e90ff, #70a1ff); }
.confetti.silver { background: linear-gradient(135deg, #dfe6e9, #b2bec3); }
.confetti.purple { background: linear-gradient(135deg, #a55eea, #8854d0); }

.confetti:nth-child(odd) { border-radius: 2px; }
.confetti:nth-child(even) { border-radius: 50%; }
.confetti:nth-child(3n) { 
  border-radius: 0; 
  transform: rotate(45deg);
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(80px) rotate(720deg) scale(0.3);
    opacity: 0;
  }
}

/* Fireworks - Better effect */
.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: firework-burst 2s ease-out infinite;
}

@keyframes firework-burst {
  0% {
    transform: scale(0);
    opacity: 1;
    box-shadow: none;
  }
  20% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    box-shadow: 
      0 -15px 0 2px currentColor,
      15px 0 0 2px currentColor,
      0 15px 0 2px currentColor,
      -15px 0 0 2px currentColor,
      10px -10px 0 2px currentColor,
      10px 10px 0 2px currentColor,
      -10px -10px 0 2px currentColor,
      -10px 10px 0 2px currentColor;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
    box-shadow: 
      0 -30px 0 0 transparent,
      30px 0 0 0 transparent,
      0 30px 0 0 transparent,
      -30px 0 0 0 transparent,
      20px -20px 0 0 transparent,
      20px 20px 0 0 transparent,
      -20px -20px 0 0 transparent,
      -20px 20px 0 0 transparent;
  }
}

/* Sparkle Stars */
.sparkle-star {
  position: absolute;
  font-size: 12px;
  color: #ffd700;
  animation: sparkle-twinkle 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px #ffd700;
}

@keyframes sparkle-twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Glowing border on ALL headers */
.site-header::after,
.shop-header::after,
.software-header::after,
.invoice-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    #ff4757, 
    #ffd700, 
    #2ed573, 
    #1e90ff, 
    #ffd700, 
    #ff4757, 
    transparent
  );
  background-size: 200% 100%;
  animation: glow-slide 3s linear infinite;
  z-index: 201;
}

/* tv-header glow line - positioned below controls bar (header 60px + controls 60px = 120px) */
.controls-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    #ff4757, 
    #ffd700, 
    #2ed573, 
    #1e90ff, 
    #ffd700, 
    #ff4757, 
    transparent
  );
  background-size: 200% 100%;
  animation: glow-slide 3s linear infinite;
  z-index: 201;
}

@keyframes glow-slide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* tv-header - disable ::after */
.tv-header::after {
  display: none;
}

/* Note: tv-header uses position:fixed, so ::after still works because fixed also establishes positioning context */
.shop-header,
.software-header,
.invoice-header {
  position: relative;
}

@keyframes glow-slide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .santa-claus {
    width: 45px;
    height: 55px;
    top: -10px;
    left: -45px;
  }
  
  .snowflake {
    font-size: 10px;
  }
  
  .confetti {
    width: 5px;
    height: 5px;
  }
  
  #celebration {
    height: 100px;
  }
}
/* Ramadan Celebration Effects */

#ramadan-celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  overflow: visible;
  z-index: 99999;
}

/* Crescent Moon with Star next to Logo */
.ramadan-moon {
  position: absolute;
  top: -8px;
  left: -55px;
  width: 50px;
  height: 50px;
  z-index: 10000;
  pointer-events: none;
  animation: moon-float 4s ease-in-out infinite;
}

.ramadan-moon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

@keyframes moon-float {
  0%, 100% { 
    transform: translateY(0) rotate(-5deg);
  }
  50% { 
    transform: translateY(-3px) rotate(5deg);
  }
}

/* Real Fanoos (Ramadan Lantern) */
.fanoos {
  position: absolute;
  top: -40px;
  width: 30px;
  height: 50px;
  animation: fanoos-swing linear infinite;
}

.fanoos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #DAA520, #B8860B);
  border-radius: 2px 2px 0 0;
}

.fanoos::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  background: linear-gradient(180deg, 
    #8B0000 0%, 
    #DC143C 20%, 
    #FF6347 40%,
    #FFD700 50%,
    #FF6347 60%,
    #DC143C 80%,
    #8B0000 100%
  );
  border-radius: 5px 5px 12px 12px;
  box-shadow: 
    inset 0 0 15px rgba(255, 215, 0, 0.6),
    0 0 20px rgba(255, 100, 50, 0.5),
    0 0 40px rgba(255, 200, 100, 0.3);
  border: 1px solid #DAA520;
}

/* Fanoos decorative lines */
.fanoos .line {
  position: absolute;
  background: #DAA520;
}

@keyframes fanoos-swing {
  0% {
    transform: translateY(0) rotate(-8deg);
    opacity: 1;
  }
  25% {
    transform: translateY(35px) rotate(8deg);
  }
  50% {
    transform: translateY(70px) rotate(-8deg);
  }
  75% {
    transform: translateY(105px) rotate(8deg);
  }
  100% {
    transform: translateY(140px) rotate(-8deg);
    opacity: 0.2;
  }
}

/* Stars - Real star shapes */
.ramadan-star {
  position: absolute;
  background: radial-gradient(circle, #FFD700, #FFA500);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: star-twinkle 2s ease-in-out infinite;
  box-shadow: 0 0 10px #FFD700;
}

@keyframes star-twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
    filter: brightness(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    filter: brightness(1.3);
  }
}

/* Golden Sparkles */
.golden-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #FFD700, #FFA500);
  border-radius: 50%;
  box-shadow: 0 0 6px #FFD700, 0 0 12px #FFA500;
  animation: sparkle-float 3s ease-in-out infinite;
}

@keyframes sparkle-float {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  20% {
    transform: translateY(-15px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ramadan-moon {
    width: 40px;
    height: 40px;
    top: -5px;
    left: -45px;
  }
  
  .fanoos {
    width: 24px;
    height: 40px;
  }
  
  .fanoos::after {
    width: 20px;
    height: 30px;
  }
  
  #ramadan-celebration {
    height: 100px;
  }
}
/* Eid Celebration Effects */

#eid-celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  overflow: visible;
  z-index: 99999;
}

/* Eid Decoration next to Logo */
.eid-decoration {
  position: absolute;
  top: -12px;
  left: -55px;
  width: 50px;
  height: 50px;
  z-index: 10000;
  filter: drop-shadow(0 0 8px rgba(39, 174, 96, 0.6));
  animation: eid-bounce 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes eid-bounce {
  0%, 100% { 
    transform: translateY(0) scale(1);
  }
  50% { 
    transform: translateY(-5px) scale(1.05);
  }
}

/* Balloons */
.balloon {
  position: absolute;
  font-size: 24px;
  bottom: -30px;
  animation: balloon-rise linear infinite;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
}

@keyframes balloon-rise {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-60px) rotate(10deg) scale(1.1);
  }
  100% {
    transform: translateY(-130px) rotate(-10deg) scale(0.9);
    opacity: 0;
  }
}

/* Confetti */
.eid-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -15px;
  animation: eid-confetti-fall linear infinite;
}

.eid-confetti.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.eid-confetti.gold { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.eid-confetti.white { background: linear-gradient(135deg, #ecf0f1, #bdc3c7); }
.eid-confetti.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.eid-confetti.pink { background: linear-gradient(135deg, #e91e63, #c2185b); }
.eid-confetti.blue { background: linear-gradient(135deg, #3498db, #2980b9); }

.eid-confetti:nth-child(odd) { border-radius: 50%; }
.eid-confetti:nth-child(even) { border-radius: 2px; }
.eid-confetti:nth-child(3n) { 
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes eid-confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(130px) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* Fireworks */
.eid-firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: eid-firework-burst 2.5s ease-out infinite;
}

@keyframes eid-firework-burst {
  0% {
    transform: scale(0);
    opacity: 1;
    box-shadow: none;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    box-shadow: 
      0 -20px 0 3px currentColor,
      20px 0 0 3px currentColor,
      0 20px 0 3px currentColor,
      -20px 0 0 3px currentColor,
      14px -14px 0 3px currentColor,
      14px 14px 0 3px currentColor,
      -14px -14px 0 3px currentColor,
      -14px 14px 0 3px currentColor;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
    box-shadow: 
      0 -40px 0 0 transparent,
      40px 0 0 0 transparent,
      0 40px 0 0 transparent,
      -40px 0 0 0 transparent,
      28px -28px 0 0 transparent,
      28px 28px 0 0 transparent,
      -28px -28px 0 0 transparent,
      -28px 28px 0 0 transparent;
  }
}

/* Sparkle Stars */
.eid-star {
  position: absolute;
  font-size: 14px;
  animation: eid-star-pop 1.5s ease-in-out infinite;
}

@keyframes eid-star-pop {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Gift boxes floating */
.gift-box {
  position: absolute;
  font-size: 18px;
  animation: gift-float 4s ease-in-out infinite;
}

@keyframes gift-float {
  0% {
    transform: translateY(0) rotate(-5deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateY(-40px) rotate(5deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) rotate(-5deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .eid-decoration {
    width: 40px;
    height: 40px;
    top: -10px;
    left: -45px;
  }
  
  .balloon {
    font-size: 20px;
  }
  
  .eid-confetti {
    width: 7px;
    height: 7px;
  }
  
  #eid-celebration {
    height: 100px;
  }
}
