﻿:root {
  --color-primary: #dc2626;
  --color-secondary: #1f2937;
  --color-dark: #111827;
  --color-light: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html,
body {
  font-family: "Almarai", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-light);
  color: var(--color-gray-900);
  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}
.row-primary-text {
  font-family: "Almarai", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
}
body {
  position: relative;
  overflow-x: hidden;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-link:hover .logo-title {
  color: var(--color-primary);
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.footer-logo-link:hover {
  transform: scale(1.05);
}

.footer-logo-link:hover .footer-logo-text {
  color: var(--color-primary);
}
/* Header Section */
.header-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-gray-50) 100%);
  /* padding: 2rem 0; */
  border-bottom: 1px solid var(--color-gray-200);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}


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

.logo-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.logo-image[style*="display: none"] + .logo-text .logo-title {
  color: var(--color-primary);
  font-size: 1.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.logo-subtitle {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0;
}

/* Ad Spaces - Simple and Appropriate */
.ad-space {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  color: var(--color-gray-600);
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Force AdSense dimensions - Prevent auto height */
.adsbygoogle {
  display: block !important;
  overflow: hidden !important;
  height: inherit !important;
  min-height: inherit !important;
  max-height: inherit !important;
}

/* Force all ads to be exactly 135px */
.adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
}

/* Override any AdSense auto height */
.adsbygoogle[style*="height: auto"] {
  height: inherit !important;
}

/* Force specific heights for each ad space - All 135px */
.ad-space-header .adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
}

.ad-space-center .adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
}

.ad-space-footer .adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
}

/* Additional override for any AdSense inline styles */
.adsbygoogle[style] {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
}

/* Extra strong override for header and footer ads */
.ad-space-header .adsbygoogle,
.ad-space-footer .adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
  display: block !important;
  overflow: hidden !important;
}

/* Force container heights too */
.ad-space-header,
.ad-space-footer {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
}

.ad-space:hover {
  border-color: var(--color-gray-300);
  background: var(--color-light);
}

/* Header Ad */
.ad-space-header {
  height: 135px !important;
  max-width: 728px;
  width: 100%;
  padding: 1rem;
}


/* Sidebar Ads */
.ad-space-sidebar {
  min-height: 250px;
  width: 100%;
}

.ad-space-sidebar:last-child {
  min-height: 300px;
}

/* Footer Ad */
.ad-space-footer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 90px;
  max-width: 728px;
  width: 100%;
  margin: 2rem auto;
  color: var(--color-gray-400);
}

.ad-space-footer:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Main Content */
.page-wrapper {
  position: relative;
  /* min-height: 100vh; */
  padding-bottom: 3rem;
  
  overflow: hidden;
  transition: var(--transition);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  transition: var(--transition);
}

.content-container.has-results {
  align-items: stretch;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.content-container:not(.has-results) .main-content {
  max-width: 680px;
  margin: 0 auto;
}

.content-container:not(.has-results) .status-message {
  text-align: center;
}

/* Hero Section */
.hero {
  text-align: center;
  /* margin-bottom: 3rem; */
  padding-top: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
  animation: slideInFromTop 1.2s ease-out, heroTextGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

@keyframes heroTextGlow {
  0% {
    text-shadow: 
      0 0 5px rgba(220, 38, 38, 0.3),
      0 0 10px rgba(220, 38, 38, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--color-gray-900);
  }
  50% {
    text-shadow: 
      0 0 8px rgba(220, 38, 38, 0.5),
      0 0 15px rgba(220, 38, 38, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--color-gray-900);
  }
  100% {
    text-shadow: 
      0 0 6px rgba(220, 38, 38, 0.4),
      0 0 12px rgba(220, 38, 38, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--color-gray-900);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color:white;
  margin: 0 auto 2rem auto;
  max-width: 600px;
  animation: slideInFromBottom 1.2s ease-out 0.3s both;
}

/* Search Form */
.search-form {
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: slideInFromBottom 1.2s ease-out 0.6s both;
}

.search-form label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

.search-input-wrap {
  display: flex;
  gap: 0.5rem;
  background: var(--color-light);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  transform: translateY(0);
}

.search-input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
  transform: translateY(-2px);
}

.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--color-gray-900);
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  padding: 1rem 1.25rem;
  outline: none;
}

.search-input-wrap input::placeholder {
  color: var(--color-gray-500);
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.search-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b91c1c 100%);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-family: "Almarai", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Content Layout - Single Column */
.content-with-ads {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}



.ad-space-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.05), transparent);
  transition: left 2s ease;
}

.ad-space-center:hover {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, var(--color-light) 100%);
  color: var(--color-gray-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ad-space-center:hover::before {
  left: 100%;
}

/* Status and Results */
.status-message {
  min-height: 2rem;
  font-size: 1.125rem;
  color: var(--color-gray-700);
  margin-bottom: 2rem;
  text-align: center;
  transition: var(--transition);
}

.status-message:empty {
  display: none;
}

.results {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.results:empty {
  display: none;
}

.result-card {
  background: var(--color-light);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.share-button {
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: "Amiri", "Almarai", "Cairo", serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.share-button:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.result-loading {
  color: var(--color-gray-600);
  font-style: italic;
}

/* Table Styles */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  background: var(--color-light);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table-wrap thead {
  background: var(--color-gray-50);
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--color-gray-200);
}

.table-wrap th {
  font-weight: 600;
  color: var(--color-gray-900);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap tr:hover {
  background: var(--color-gray-50);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: opacity 0.6s ease;
}

.loader-screen-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.loader-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--color-light);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--color-primary);
}

.loader-logo-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-xl);
  animation: pulse 2s ease-in-out infinite;
}

.loader-logo-image[style*="display: none"] + .loader-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  text-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}


@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-xl);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgb(220 38 38 / 0.25);
  }
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-content p {
  color: var(--color-gray-600);
  font-size: 1rem;
}

/* Background Pattern - Enhanced and Beautiful */
.page-wrapper::before {
  content: '';
  position: fixed;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  background:
    radial-gradient(ellipse at 18% 78%, rgba(253, 44, 45, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 18%, rgba(20, 22, 21, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 40% 30%, rgba(253, 44, 45, 0.12) 0%, transparent 65%),
    linear-gradient(150deg, rgba(20, 22, 21, 0.15) 0%, transparent 42%, rgba(253, 44, 45, 0.1) 78%);
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
  animation: backgroundFlow 22s ease-in-out infinite alternate,
             gradientDrift 36s ease-in-out infinite;
}

.page-wrapper::after {
  content: '';
  position: fixed;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background:
    radial-gradient(circle at 15% 25%, rgba(253, 44, 45, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 80% 65%, rgba(20, 22, 21, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(253, 44, 45, 0.015) 120px, rgba(253, 44, 45, 0.015) 125px),
    repeating-linear-gradient(-45deg, transparent, transparent 160px, rgba(17, 24, 39, 0.01) 160px, rgba(17, 24, 39, 0.01) 165px);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
  will-change: transform;
  animation: patternShift 26s linear infinite alternate,
             gradientDrift 28s linear infinite;
}

@keyframes backgroundFlow {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: scale(1.02) rotate(0.5deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.01) rotate(0deg);
  }
  75% {
    opacity: 1;
    transform: scale(1.02) rotate(-0.5deg);
  }
}

@keyframes patternShift {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(10px) translateY(-5px);
  }
  50% {
    transform: translateX(0) translateY(-10px);
  }
  75% {
    transform: translateX(-10px) translateY(-5px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

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

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-dark) 100%);
  color: var(--color-light);
  padding: 2rem 0 1.5rem;
  margin-top: 0rem;
  position: relative;
  z-index: 3;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-logo img[style*="display: none"] + .footer-logo-text {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-description {
  color: var(--color-gray-300);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Ad Space - Footer */
.ad-space-footer {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  max-width: 728px;
  width: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Center the footer ad container */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.ad-space-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 2s ease;
}

.ad-space-footer:hover {
  border-color: var(--color-primary);
  background: rgba(220, 38, 38, 0.15);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.ad-space-footer:hover::before {
  left: 100%;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-700);
  padding-top: 2rem;
  display: flex;
  flex-direction: row-reverse;  
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer-credits {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.footer-credits a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-credits a:hover {
  color: var(--color-light);
}

.footer-copyright {
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

/* Advanced Search */
.advanced-wrapper {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advanced-toggle {
  align-self: center;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.advanced-toggle:hover {
  background: var(--color-primary);
  color: var(--color-light);
}

.advanced-fields {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.advanced-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.advanced-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.advanced-field input {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  background: var(--color-light);
  color: var(--color-gray-900);
  padding: 0.75rem;
  font-size: 1rem;
  transition: var(--transition);
}

.advanced-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
  outline: none;
}

.advanced-hint {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* Responsive Design */

/* iPad and Large Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .content-container {
    padding: 2rem 2rem;
  }
.content-container.has-results { align-items: stretch;  gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content {  max-width: 680px;  margin: 0 auto;}.content-container:not(.has-results) .status-message { text-align: center;}
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .search-form {
    max-width: 700px;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .results.large-results .result-header {
    flex-direction: row;
    align-items: center;
  }
  
  .table-wrap {
    font-size: 0.95rem;
  }
  
  .table-wrap th,
  .table-wrap td {
    padding: 0.6rem 0.8rem;
  }
}

/* Tablets and Small Laptops */
@media (max-width: 768px) and (min-width: 481px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .content-container {
    padding: 1.5rem 1.5rem;
  }
.content-container.has-results {align-items: stretch; gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content { max-width: 680px; margin: 0 auto;}.content-container:not(.has-results) .status-message {  text-align: center;}
  
  .hero {
    padding: 1.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin: 1rem 0;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .search-input-wrap {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .result-card {
    padding: 1.25rem;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .result-title {
    font-size: 1.1rem;
  }
  
  .share-button {
    align-self: flex-end;
    padding: 0.6rem 1.2rem;
  }
  
  .results.large-results .result-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .results.large-results .result-title {
    text-align: left;
  }
  
  .table-wrap {
    font-size: 0.9rem;
  }
  
  .table-wrap th,
  .table-wrap td {
    padding: 0.5rem 0.7rem;
  }
  
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .header-section {
    padding: 1.5rem 0;
  }
  
  .center-ad {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
  }
  
  .ad-space-header {
    height: 135px !important;
  }
  
  .ad-space-header .adsbygoogle {
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
    width: 100% !important;
  }
  
  
  .ad-space-footer {
    height: 135px;
    padding: 1rem;
    font-size: 0.8rem;
    margin: 1.5rem auto;
  }
  
  .ad-space-footer .adsbygoogle {
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
    width: 100% !important;
  }
  
  .header-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .logo-image {
    width: 50px;
    height: 50px;
  }
  
  .logo-title {
    font-size: 1.25rem;
  }
  
  .logo-subtitle {
    font-size: 0.8rem;
  }
  
  .content-container {
    padding: 1rem;
  }
.content-container.has-results { align-items: stretch;  gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content { max-width: 680px;  margin: 0 auto;}.content-container:not(.has-results) .status-message { text-align: center;}
  
  .hero {
    padding: 1rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .search-form {
    margin-bottom: 2rem;
  }
  
  .search-input-wrap {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .search-input-wrap input {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .search-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .status-message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .result-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .result-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .result-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .share-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .results.large-results .result-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .results.large-results .result-title {
    text-align: center;
  }
  
  .results.large-results .share-button {
    margin-left: 0;
    width: 100%;
  }
  
  .table-wrap {
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }
  
  .table-wrap table {
    min-width: 100%;
  }
  
  .table-wrap th,
  .table-wrap td {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
  }
  
  .table-wrap th {
    font-size: 0.75rem;
    font-weight: 700;
  }
  
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-logo {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-logo img {
    width: 35px;
    height: 35px;
  }
  
  .footer-logo-text {
    font-size: 1.1rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-credits {
    font-size: 0.8rem;
  }
  
  .footer-copyright {
    font-size: 0.7rem;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .content-container {
    padding: 0.75rem;
  }
  
  .ad-space-header {
    height: 135px !important;
  }
  
  .ad-space-header .adsbygoogle {
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
    width: 100% !important;
  }
  
  
  .ad-space-footer {
    height: 135px;
    padding: 0.75rem;
    font-size: 0.75rem;
  }
  
  .ad-space-footer .adsbygoogle {
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
    width: 100% !important;
  }
.content-container.has-results {align-items: stretch;  gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content { max-width: 680px; margin: 0 auto;}.content-container:not(.has-results) .status-message { text-align: center;}
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .search-input-wrap {
    padding: 0.5rem;
  }
  
  .search-input-wrap input {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .search-button {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .result-card {
    padding: 0.75rem;
  }
  
  .result-title {
    font-size: 0.95rem;
  }
  
  .share-button {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .table-wrap th,
  .table-wrap td {
    padding: 0.4rem 0.3rem;
    font-size: 0.75rem;
  }
  
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .search-form {
    margin-bottom: 1.5rem;
  }
  
  .content-container {
    padding: 1rem;
  }
.content-container.has-results { align-items: stretch;gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content { max-width: 680px; margin: 0 auto;}.content-container:not(.has-results) .status-message { text-align: center;}
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }

/* Error and Empty States */
.empty-state,
.error-state {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  text-align: center;
  border: 1px solid var(--color-gray-200);
}

.error-state {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}


.share-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Row Link Button */
.row-link-button {
  background: var(--color-gray-600);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.row-link-button:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
}

/* Large Results Layout - When more than 2000 results */
.results.large-results .result-header {
  justify-content: flex-start;
  gap: 2rem;
}

.results.large-results .result-title {
  text-align: left;
  flex: 0 0 auto;
}

.results.large-results .share-button {
  margin-left: auto;
}

/* Row Share Button with Amiri Font */
.row-share-button {
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  font-family: "Amiri", "Almarai", "Cairo", serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

/* Professional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced Header Animation */
.header-section {
  animation: slideInFromTop 0.8s ease-out;
}

.logo-section {
  animation: slideInFromLeft 1s ease-out 0.2s both;
}

.ad-space-header {
  animation: slideInFromRight 1s ease-out 0.4s both;
}

/* Enhanced Result Cards Animation */
.result-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(n+6) { animation-delay: 0.6s; }

/* Table Animation */
.table-wrap {
  animation: scaleIn 0.5s ease-out;
}

.table-wrap tr {
  opacity: 0;
  animation: slideInFromLeft 0.4s ease-out forwards;
}

.table-wrap tr:nth-child(1) { animation-delay: 0.1s; }
.table-wrap tr:nth-child(2) { animation-delay: 0.15s; }
.table-wrap tr:nth-child(3) { animation-delay: 0.2s; }
.table-wrap tr:nth-child(4) { animation-delay: 0.25s; }
.table-wrap tr:nth-child(5) { animation-delay: 0.3s; }
.table-wrap tr:nth-child(n+6) { animation-delay: 0.35s; }

/* Status Message Animation */
.status-message {
  animation: fadeInUp 0.5s ease-out;
  text-align: center;
}

/* Footer Animation */
.footer {
  animation: slideInFromBottom 0.8s ease-out;
}

/* Button Hover Effects */
.search-button {
  position: relative;
  overflow: hidden;
}

.search-button::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;
}

.search-button:hover::before {
  left: 100%;
}

.share-button,
.row-share-button {
  position: relative;
  overflow: hidden;
}

.share-button::after,
.row-share-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.share-button:hover::after,
.row-share-button:hover::after {
  width: 300px;
  height: 300px;
}

/* Enhanced Loading Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Page Transition */
.page-wrapper {
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Input Focus */
.search-input-wrap input:focus {
  animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* Floating Elements */
.logo-image {
  animation: float 3s ease-in-out infinite;
}

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

/* Improved Main Content Layout */
.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.main-content:empty {
  min-height: 0;
  display: block;
}

/* Reduce excessive spacing */
.hero {
  /* margin-bottom: 2rem; */
  padding-top: 1.5rem;
}

.search-form {
  margin-bottom: 1.5rem;
}

.status-message {
  margin-bottom: 1.5rem;
}

/* Improved content container */
.content-container {
  padding: 2.5rem 1.5rem 4rem;
}

.content-container.has-results { align-items: stretch;  gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content {max-width: 680px;  margin: 0 auto;}.content-container:not(.has-results) .status-message { text-align: center;}

@media (max-width: 768px) {
  .content-container {
    padding: 1rem;
  }
.content-container.has-results { align-items: stretch;  gap: clamp(2.5rem, 6vw, 4rem);}.content-container:not(.has-results) .main-content { max-width: 680px;  margin: 0 auto;}.content-container:not(.has-results) .status-message { text-align: center;}
  
  .hero {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
  }
  
  .search-form {
    margin-bottom: 1rem;
  }
  
  .status-message {
    margin-bottom: 1rem;
  }
}























/* === Layout Refinements & Animated Accents === */
.page-wrapper {
  
  overflow: hidden;
  transition: var(--transition);
}

.page-wrapper::before {
  content: '';
  position: fixed;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  background:
    radial-gradient(ellipse at 18% 78%, rgba(253, 44, 45, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 18%, rgba(20, 22, 21, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 40% 30%, rgba(253, 44, 45, 0.12) 0%, transparent 65%),
    linear-gradient(150deg, rgba(20, 22, 21, 0.15) 0%, transparent 42%, rgba(253, 44, 45, 0.1) 78%);
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
  animation: backgroundFlow 22s ease-in-out infinite alternate,
             gradientDrift 36s ease-in-out infinite;
}

.page-wrapper::after {
  content: '';
  position: fixed;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background:
    radial-gradient(circle at 15% 25%, rgba(253, 44, 45, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 80% 65%, rgba(20, 22, 21, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(253, 44, 45, 0.015) 120px, rgba(253, 44, 45, 0.015) 125px),
    repeating-linear-gradient(-45deg, transparent, transparent 160px, rgba(17, 24, 39, 0.01) 160px, rgba(17, 24, 39, 0.01) 165px);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
  will-change: transform;
  animation: patternShift 26s linear infinite alternate,
             gradientDrift 28s linear infinite;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  transition: var(--transition);
}

.content-container.has-results {
  align-items: stretch;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.content-container:not(.has-results) .main-content {
  max-width: 680px;
  margin: 0 auto;
}

.content-container:not(.has-results) .status-message {
  text-align: center;
}

.content-with-ads {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.status-message {
  min-height: 2rem;
  font-size: 1.125rem;
  color: var(--color-gray-700);
  margin-bottom: 2rem;
  text-align: center;
  transition: var(--transition);
}

.status-message:empty {
  display: none;
}

.results {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.results:empty {
  display: none;
}

.result-card {
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out forwards;
}



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

.hero {
  animation: slideInFromTop 0.9s ease-out;
}

.search-form {
  animation: slideInFromBottom 1s ease-out;
}

@keyframes gradientDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-1%, 1%, 0) scale(1);
  }
}








.row-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: color var(--transition);
}

.row-toggle:hover,
.row-toggle:focus-visible {
  color: var(--color-primary);
}

.row-toggle:focus-visible {
  outline: 2px solid rgba(253, 44, 45, 0.35);
  outline-offset: 2px;
}

.row-primary-text {
  flex: 1;
  text-align: start;
}



 .row-toggle-icon {
  display: none;
 }

.row-action-cell {
  text-align: center;
}

@media (max-width: 720px) {
  /* تصميم زر التوسيع/الطي */
  .row-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .row-toggle-button:hover {
    background: var(--color-gray-100);
    transform: translateY(-50%) scale(1.05);
  }

  .row-toggle-button:active {
    transform: translateY(-50%) scale(0.95);
  }


  .row-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 1px solid var(--color-gray-300);
    font-size: 0.8rem;
    color: var(--color-gray-600);
    background: var(--color-light);
    transition: all 0.3s ease;
  }

  .result-table-row.is-expanded .row-toggle-icon {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
  }

  .row-toggle-icon:hover {
    transform: scale(1.1);
  }

  .result-table-row.is-expanded .row-toggle-icon:hover {
    transform: rotate(180deg) scale(1.1);
  }

  /* تصميم الجدول في الموبايل */
  .table-wrap table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td,
  .table-wrap th {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    background: var(--color-light);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .table-wrap tr:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }

  .table-wrap tr:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
  }

  .table-wrap tr.is-expanded {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
  }

  /* تصميم الخلايا */
  .table-wrap td,
  .row-action-cell {
    border: none;
    padding: 0;
  }

  .row-name-cell {
    padding: 0.75rem 1rem 0.75rem 4rem !important;
    position: relative;
    font-weight: 600;
    color: var(--color-gray-900);
    font-size: 1rem;
    line-height: 1.4;
  }

  .table-wrap td:not(.row-name-cell) {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-gray-100);
    transition: all 0.3s ease;
  }

  .table-wrap td:not(.row-name-cell)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* إخفاء التفاصيل في الحالة المطوية */
  .table-wrap tr:not(.is-expanded) td:not(.row-name-cell) {
    display: none;
  }

  .table-wrap tr:not(.is-expanded) .row-action-cell {
    display: none;
  }

  /* تصميم خلية الإجراءات */
  .row-action-cell {
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
  }

  .row-share-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
  }

  .row-share-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
  }

  .row-share-button:active {
    transform: translateY(0);
  }

}

/* Floating Support Button */
.floating-support-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--color-primary), #dc2626);
  color: var(--color-light);
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  z-index: 999;
  animation: floatPulse 2s ease-in-out infinite;
}

/* Show support button after loading */
.floating-support-button.show {
  display: flex;
}

.floating-support-button:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
  animation: none;
}

.floating-support-button:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
  }
}

.support-icon {
  font-size: 1.1rem;
}

.support-text {
  font-family: "Almarai", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Support Modal */
.support-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.support-modal-content {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  max-width: 75%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.support-modal-header h3 {
  margin: 0;
  color: var(--color-gray-900);
  font-size: 1.25rem;
  font-weight: 700;
}

.support-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.support-modal-close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.support-modal-body {
  padding: 1rem;
}

/* Support Methods Grid */
.support-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Support Methods in Modal */
.support-method {
  text-align: center;
  padding: 2rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* PayPal Logo */
.paypal-logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* QR Icon */
.qr-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.support-method h4 {
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.support-method p {
  color: var(--color-gray-600);
  /* margin-bottom: 1.5rem; */
  line-height: 1.6;
  font-size: 1rem;
}

.paypal-support-button {
  background: #0070ba;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  font-size: 1rem;
}

.paypal-support-button:hover {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.support-qr-container {
  margin: 1.5rem 0;
}

.support-qr-image {
  max-width: 150px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.support-code {
  background: var(--color-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  border: 1px solid var(--color-gray-200);
  margin-top: auto;

}

.support-code-label {
  margin: 0 0 0.5rem;
  color: var(--color-gray-600);
  font-size: 0.8rem;
  font-weight: 600;
}

.support-code-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-300);
  padding: 0.5rem;
}

.support-code-value {
  margin: 0;
  color: var(--color-gray-900);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  flex: 1;
  padding: 0.25rem;
}

.copy-button {
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: auto;
  height: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
}

.copy-button:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.copy-button:active {
  transform: scale(0.95);
}

.copy-icon {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.copy-text {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Almarai", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Responsive Support Button */
@media (max-width: 768px) {
  .floating-support-button {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .floating-support-button {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    gap: 0.375rem;
  }
  
  .support-icon {
    font-size: 1rem;
  }
}

/* Responsive Support Modal */
@media (max-width: 768px) {
  .support-methods-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .support-method {
    padding: 1.25rem;
  }
  
  .method-icon {
    font-size: 2rem;
  }
  
  .support-method h4 {
    font-size: 1.1rem;
  }
  
  .support-method p {
    font-size: 0.85rem;
  }
  
  .support-qr-image {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .support-modal {
    padding: 0.5rem;
  }
  
  .support-modal-content {
    max-width: 100%;
  }
  
  .support-modal-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .support-modal-body {
    padding: 0.75rem;
  }
  
  .support-method {
    padding: 1rem;
  }
  
  .support-qr-image {
    max-width: 80px;
  }
  
  .support-code-value {
    font-size: 0.7rem;
  }
  
  .support-code-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .copy-button {
    width: 100%;
    min-width: auto;
    padding: 0.5rem 1rem;
    justify-content: center;
  }
  
  .copy-text {
    font-size: 0.8rem;
  }
}



.loader-title {
  margin-top: 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-align: center;
}

/* FINAL OVERRIDE - Force all ads to 135px height */
.ad-space-header .adsbygoogle,
.ad-space-center .adsbygoogle,
.ad-space-footer .adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
  display: block !important;
  overflow: hidden !important;
}

.ad-space-header,
.ad-space-center,
.ad-space-footer {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
}

/* Ultimate override - Target any AdSense element */
.adsbygoogle[style*="height: auto"] {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
}

/* Force dimensions on any AdSense iframe or div */
.adsbygoogle iframe,
.adsbygoogle div {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
}

/* Remove any extra white space at bottom */
body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure footer touches bottom */
.footer {
  margin-bottom: 0 !important;
  padding-bottom: 1.5rem !important;
}

/* Always show ad containers with proper dimensions */
.ad-space-header,
.ad-space-footer {
  display: flex !important;
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
}

/* Force all ads to be 135px regardless of status */
.adsbygoogle {
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  width: 100% !important;
  display: block !important;
  overflow: hidden !important;
}

/* تصميم عداد الزيارات البسيط */
.visitor-counter {
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  text-align: center;
  color: var(--color-gray-800);
}

.counter-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Almarai", sans-serif;
}

.counter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-600);
}

.counter-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: "Almarai", sans-serif;
}

/* تصميم متجاوب للعداد */
@media (max-width: 768px) {
  .visitor-counter {
    margin: 0.75rem 0;
    padding: 0.5rem 0.75rem;
  }
  
  .counter-simple {
    gap: 0.4rem;
  }
  
  .counter-label {
    font-size: 0.85rem;
  }
  
  .counter-value {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .visitor-counter {
    margin: 0.5rem 0;
    padding: 0.4rem 0.6rem;
  }
  
  .counter-simple {
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .counter-label {
    font-size: 0.8rem;
  }
  
  .counter-value {
    font-size: 0.95rem;
  }
}

/* ===== صفحة الدعم ===== */

/* Navigation */
.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: var(--color-gray-600);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-gray-100);
}

/* Support Page Specific Styles */
.support-page .header-section {
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.support-page .logo-section {
  gap: 1.5rem;
  padding: 1rem 0;
}

.support-page .logo-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.support-page .logo-subtitle {
  font-size: 1rem;
  line-height: 1.4;
}

/* Support Hero */
.support-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b91c1c 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-xl);
  width: 70%;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-gray-600);
}

/* About Section */
.about-section {
  margin-bottom: 4rem;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-gray-700);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

/* Support Methods */
.support-methods {
  margin-bottom: 4rem;
}

.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.support-card {
  background: var(--color-light);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.support-card h3 {
  font-size: 1.6rem;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
  font-weight: 700;
}

.support-card p {
  color: var(--color-gray-600);
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* PayPal Card */
.paypal-card {
  border-color: #0070ba;
}

.paypal-button {
  background: #0070ba;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.paypal-button:hover {
  background: #005ea6;
  transform: translateY(-2px);
}

/* QR Card */
.qr-container {
  margin: 0;
  display: flex;
  justify-content: center;
}

.support-qr-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.support-code {
  margin-top: 0;
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
}

.support-code-label {
  font-size: 1rem;
  color: var(--color-gray-700);
  margin-bottom: 1rem;
  font-weight: 600;
}

.support-code-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-300);
  flex-direction: column;
}

.support-code-value {
  font-family: monospace;
  font-size: 1rem;
  color: var(--color-gray-800);
  flex: 1;
  margin: 0;
  font-weight: 600;
}

.copy-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.copy-button:hover {
  background: #b91c1c;
}

/* Bank Card */
.bank-info {
  text-align: right;
  background: var(--color-gray-50);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200);
}

.bank-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

/* Why Support */
.why-support {
  margin-bottom: 4rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.reason-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  transition: var(--transition);
}

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

.reason-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.reason-item h3 {
  font-size: 1.3rem;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.reason-item p {
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* PayPal Modal */
.paypal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.paypal-modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.paypal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.paypal-modal-header h3 {
  color: var(--color-gray-900);
  margin: 0;
}

.paypal-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-gray-500);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  background: var(--color-gray-100);
  border: 2px solid var(--color-gray-200);
  padding: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-700);
  transition: var(--transition);
}

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

.custom-amount {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.custom-amount input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.custom-amount button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

.paypal-note {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  text-align: center;
  margin: 0;
}

/* Support Messages */
.support-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  z-index: 1001;
  animation: slideIn 0.3s ease;
}

.support-message.success {
  background: #10b981;
}

.support-message.error {
  background: #ef4444;
}

.support-message.info {
  background: #3b82f6;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design for Support Page */
@media (max-width: 768px) {
  .support-hero {
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .support-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .support-card {
    padding: 2rem;
  }
  
  .reasons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .support-hero {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .support-card {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .support-card h3 {
    font-size: 1.4rem;
  }
  
  .support-qr-image {
    max-width: 150px;
  }
  
  .support-code {
    padding: 1rem;
  }
  
  .support-code-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .copy-button {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  
  .about-stats {
    flex-direction: column;
  }
  
  .paypal-modal-content {
    padding: 1.5rem;
  }
}





