/* ========================================
   Hajj Portal - Design System
   ======================================== */

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

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #111640;
  --bg-card: rgba(20, 30, 80, 0.6);
  --bg-card-hover: rgba(30, 45, 100, 0.8);
  --gold: #d4a853;
  --gold-light: #f0d48a;
  --gold-dark: #b8872e;
  --blue-accent: #1a3a8a;
  --blue-glow: #2255cc;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border-card: rgba(100, 140, 255, 0.2);
  --border-gold: rgba(212, 168, 83, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(34, 85, 204, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  user-select: none; /* Prevent text selection */
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Islamic Pattern Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26, 58, 138, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 85, 204, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 168, 83, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Islamic geometric pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(100,140,255,0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ========== Header ========== */
.header {
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 0.6s ease-out;
  position: relative;
}

.header .logo {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  /* border-radius removed to support non-circular logos */
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.2));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.4)); }
  50% { filter: drop-shadow(0 0 25px rgba(212, 168, 83, 0.7)); }
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.header p {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
}

/* ========== Pages Grid ========== */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== Page Card ========== */
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.15), 0 0 50px rgba(212, 168, 83, 0.05);
  animation: cardGlow 4s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.12), 0 0 40px rgba(212, 168, 83, 0.05);
    border-color: rgba(100, 140, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(212, 168, 83, 0.25), 0 0 60px rgba(212, 168, 83, 0.1), 0 0 80px rgba(212, 168, 83, 0.05);
    border-color: rgba(212, 168, 83, 0.3);
  }
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.page-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(212, 168, 83, 0.35), 0 0 80px rgba(212, 168, 83, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: none;
}

.page-card:hover::before {
  opacity: 1;
}

/* Card Icon - Image type */
.page-card .card-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid var(--border-gold);
  /* background removed to support transparency */
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.3));
}

/* Card Icon - Emoji/Text type */
.page-card .card-icon-emoji {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 2px solid var(--border-gold);
  background: linear-gradient(135deg, var(--bg-secondary), rgba(20, 30, 80, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.3));
}

.page-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-card .card-qr {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px;
}

.page-card .card-qr canvas,
.page-card .card-qr img {
  width: 100% !important;
  height: 100% !important;
}

/* ========== Page Detail View ========== */
.page-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-detail .detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
}

.page-detail .detail-qr-container {
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 120px;
  height: 120px;
}

.page-detail .detail-qr-container canvas,
.page-detail .detail-qr-container img {
  width: 100% !important;
  height: 100% !important;
}

.page-detail .detail-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
  line-height: 1.4;
}

.page-detail .detail-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-card);
}

.page-detail .detail-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-wrap;
  backdrop-filter: blur(10px);
}

/* ========== Back Button ========== */
.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(17, 22, 64, 0.95);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  backdrop-filter: blur(10px);
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.2);
}

.back-btn:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.4);
  transform: scale(1.05);
}

/* ========== Admin Login ========== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-card);
}

.login-card .logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.4));
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* ========== Form Elements ========== */
.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 14, 39, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  direction: rtl;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
  line-height: 1.8;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.btn-danger {
  background: rgba(220, 50, 50, 0.2);
  border: 1px solid rgba(220, 50, 50, 0.4);
  color: #ff6b6b;
}

.btn-danger:hover {
  background: rgba(220, 50, 50, 0.35);
  box-shadow: 0 4px 15px rgba(220, 50, 50, 0.3);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== Admin Dashboard ========== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  backdrop-filter: blur(15px);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.admin-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.admin-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-secondary);
}

.admin-card-body {
  padding: 18px;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.admin-card-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ========== Modal ========== */
.page-card .card-qr {
  width: 120px;
  height: 120px;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.card-qr img, #detailQR img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  image-rendering: pixelated; /* Keeps the QR edges sharp */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  text-align: center;
}

.modal .close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.modal .close-btn:hover {
  background: rgba(220, 50, 50, 0.3);
  border-color: rgba(220, 50, 50, 0.5);
}

/* ========== Icon Type Chooser ========== */
.icon-type-chooser {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.icon-type-btn {
  flex: 1;
  padding: 12px;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.icon-type-btn:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.icon-type-btn.active {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(212, 168, 83, 0.1));
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

.icon-section {
  display: none;
}

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

.icon-emoji-input {
  width: 100%;
  padding: 16px;
  background: rgba(10, 14, 39, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 2.5rem;
  text-align: center;
  transition: var(--transition);
  direction: ltr;
}

.icon-emoji-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.icon-emoji-input::placeholder {
  font-size: 1rem;
  color: var(--text-muted);
}

.icon-emoji-preview {
  text-align: center;
  font-size: 3.5rem;
  margin-top: 10px;
  padding: 15px;
  background: rgba(10, 14, 39, 0.4);
  border-radius: var(--radius-sm);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Image Upload ========== */
.image-upload-area {
  width: 100%;
  min-height: 160px;
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03); /* Light transparent background */
}

.image-upload-area:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.05);
}

.image-upload-area .upload-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
}

.image-upload-area .upload-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.image-upload-area.has-image {
  border-style: solid;
  border-color: var(--border-gold);
}

.image-upload-area .preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACBJREFUGFdjZEACDAwM/8EMBhAGSIAYyAgGIBXICDQCUAoABkMGCm34bQAAAAAASUVORK5CYII='); /* Tiny checkerboard to see transparency */
}

.image-upload-area input[type="file"] {
  display: none;
}

/* ========== Toast Notification ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  z-index: 2000;
  transition: var(--transition);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(80, 200, 120, 0.5);
  color: #50c878;
}

.toast.error {
  border-color: rgba(220, 50, 50, 0.5);
  color: #ff6b6b;
}

/* ========== Loading Spinner ========== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-card);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-glow);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.4rem;
  }

  .pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    padding: 14px;
  }

  .page-card {
    padding: 18px;
  }

  .page-detail .detail-header {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .page-detail .detail-title {
    font-size: 1.5rem;
  }

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

  .admin-header h1 {
    text-align: center;
  }

  .admin-actions {
    justify-content: center;
  }

  .admin-pages-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .modal {
    padding: 24px 18px;
  }
}

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

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

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.page-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.page-card:nth-child(1) { animation-delay: 0.05s; }
.page-card:nth-child(2) { animation-delay: 0.1s; }
.page-card:nth-child(3) { animation-delay: 0.15s; }
.page-card:nth-child(4) { animation-delay: 0.2s; }
.page-card:nth-child(5) { animation-delay: 0.25s; }
.page-card:nth-child(6) { animation-delay: 0.3s; }
.page-card:nth-child(7) { animation-delay: 0.35s; }
.page-card:nth-child(8) { animation-delay: 0.4s; }
.page-card:nth-child(9) { animation-delay: 0.45s; }
.page-card:nth-child(10) { animation-delay: 0.5s; }

/* ========== Confirm Dialog ========== */
.confirm-dialog {
  text-align: center;
}

.confirm-dialog p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.confirm-dialog .confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-dialog .confirm-actions .btn {
  min-width: 120px;
}

/* ========== Google Translate Overrides ========== */
iframe.goog-te-banner-frame { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; position: relative !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
#goog-gt-tt { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }

/* ========== Language Switcher ========== */
.header-actions {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  background: rgba(80, 160, 255, 0.2);
  color: #8ac0ff;
  border: 1px solid rgba(80, 160, 255, 0.4);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.lang-btn:hover {
  background: rgba(80, 160, 255, 0.3);
  border-color: #8ac0ff;
  color: #fff;
  transform: translateY(-2px);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: rgba(17, 22, 64, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 160px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lang-dropdown.show {
  display: flex;
  animation: slideDown 0.2s ease forwards;
}

.lang-option {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px 16px;
  text-align: left;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}
