/* ==========================================
   Pages Editor (Admin)
   ========================================== */
.pages-editor {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', monospace !important;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
  direction: ltr !important;
  text-align: left !important;
  resize: vertical;
  min-height: 480px;
  tab-size: 2;
  background: #1e1e2e !important;
  color: #cdd6f4 !important;
  border-color: #313244 !important;
  border-radius: var(--radius-md);
  caret-color: #cba6f7;
}

.pages-editor:focus {
  border-color: var(--primary-green-accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66,129,119,0.2);
}

/* ==========================================
   Site Footer
   ========================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 14px var(--space-md);
  margin-bottom: 64px; /* فراغ فوق bottom-nav على الجوال */
}

.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-apps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 100%;
  border-radius: 8px;
}

.store-badge-google img {
  height: 58px;
  margin-top: -9px;
  margin-bottom: -9px;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.site-footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer-link {
  font-size: 0.78rem;
  color: var(--primary-green-accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.site-footer-link:hover {
  text-decoration: underline;
  color: var(--primary-green);
}

.site-footer-powered {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-en);
  letter-spacing: 0.02em;
  opacity: 0.8;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-footer {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-apps {
    width: 100%;
  }

  .store-badge {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .site-footer-powered {
    display: none;
  }
}

