:root {
  --wa-green: #25d366;
  --wa-dark: #075e54;
  --wa-bg: #fcf5eb;
  --text: #0b141a;
  --white: #ffffff;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--wa-bg);
  color: var(--text);
  direction: rtl;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: saturate(180%) blur(6px);
}

header ._afvx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  gap: 12px;
}

header img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

nav._afwe {
  margin-inline-start: 24px;
}

nav._afwe ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav._afwe li {
  font-size: 18px;
}

nav._afwe a, nav._afwe button {
  color: var(--wa-dark);
  background: none;
  border: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

nav._afwe a:hover, nav._afwe button:hover {
  color: var(--wa-green);
}

.logo-main {
  height: 56px;
  width: auto;
  margin-left: 12px;
}

.whatsapp-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  margin: 0 8px;
}

/* حجم مناسب لصور التحميل (GIF/PNG) */
.loading-graphic {
  width: clamp(96px, 28vw, 160px);
  height: auto;
  display: inline-block;
}

/* زر الهامبرغر للجوال */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);
}

.hamburger:hover {
  background: rgba(0,0,0,0.04);
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
  .logo-main { height: 44px; }
  .whatsapp-logo { height: 40px; width: 40px; margin: 0; }

  .hamburger { display: inline-flex; }
  nav._afwe { position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: 0; display: none; }
  nav._afwe ul {
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 16px;
    gap: 8px;
  }
  header.open nav._afwe { display: block; }
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
}

.input-group {
  margin-bottom: 15px;
}

select, input[type="text"] {
  width: 80px;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: inline-block;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #45a049;
}
