/* ===========================================
   🌐 SmartQ Glass Theme v3 – Unified Styling
   Tailwind-like manual utilities (no build)
   =========================================== */

/* Font and Base Colors */
.font-sans { font-family: 'Tajawal', 'Inter', sans-serif; }

.text-primary { color: #2563EB; }
.bg-primary { background-color: #2563EB; }

.text-accent { color: #93C5FD; }
.bg-accent { background-color: #93C5FD; }

.text-success { color: #10B981; }
.bg-success { background-color: #10B981; }

.text-highlight { color: #FBBF24; }
.bg-highlight { background-color: #FBBF24; }

.text-neutral { color: #E2E8F0; }
.bg-neutral { background-color: #E2E8F0; }

.text-danger { color: #EF4444; }
.bg-danger { background-color: #EF4444; }

.text-secondary { color: #64748B; }
.bg-secondary { background-color: #64748B; }

/* ===============================
   🌙 Dark Mode Adjustments
   =============================== */
.dark .text-primary { color: #93C5FD; }
.dark .bg-primary { background-color: #1D4ED8; }
.dark .bg-accent { background-color: #2563EB; }
.dark .text-neutral { color: #CBD5E1; }
.dark .bg-neutral { background-color: #1E293B; }

/* ===============================
   🧊 Glass & Glow Effects
   =============================== */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  transition: all 0.4s ease;
}

.dark .glass {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.shadow-glow {
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

.glow-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}
.glow-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35),
              0 12px 25px rgba(0, 0, 0, 0.08);
}

.glow-text {
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}
.dark .glow-text {
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.55);
}

/* ===============================
   🔘 Buttons
   =============================== */
.btn-glass {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0.9rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  color: inherit;
}
.btn-glass:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}

.btn-primary {
  background-color: #2563EB;
  color: white;
}
.btn-primary:hover {
  background-color: #1D4ED8;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid #2563EB;
  color: #2563EB;
}
.btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.btn-danger {
  background-color: #EF4444;
  color: white;
}
.btn-danger:hover {
  background-color: #DC2626;
}

.btn-success {
  background-color: #10B981;
  color: white;
}
.btn-success:hover {
  background-color: #059669;
}

/* ===============================
   🧭 Navbar & Controls
   =============================== */
.navbar-control-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.navbar-blue-border {
  border: 1px solid #2563EB;
  background-color: transparent;
  color: #2563EB;
}
.navbar-blue-border:hover {
  background-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
}
.navbar-danger-btn {
  background-color: #EF4444;
  color: white;
}
.navbar-danger-btn:hover {
  background-color: #DC2626;
}

/* ===============================
   📦 Plans & Features Cards
   =============================== */
.plan-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
}
.plan-card:hover {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.45),
              0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px) scale(1.02);
}
.plan-card .btn-subscribe {
  width: 85%;
  margin: 1rem auto 0;
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.plan-card .btn-subscribe:hover {
  transform: scale(1.05);
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.3);
}

/* ===============================
   🌫️ Background Gradient
   =============================== */
.bg-gradient-custom {
  background-image: linear-gradient(
    to bottom,
    rgba(226, 232, 240, 0.6),
    rgba(255, 255, 255, 0.6),
    rgba(226, 232, 240, 0.6)
  );
}
.dark .bg-gradient-custom {
  background-image: linear-gradient(
    to bottom,
    rgba(30, 41, 59, 0.8),
    rgba(15, 23, 42, 0.7),
    rgba(30, 41, 59, 0.8)
  );
}

/* ===============================
   🧩 Basic Utilities (most used)
   =============================== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.rounded-xl { border-radius: 1rem; }
.text-center { text-align: center; }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }

/* ===============================
   🧠 Special Effects
   =============================== */
.hover-scale:hover { transform: scale(1.05); }
.hover-lift:hover { transform: translateY(-5px); }

/* ===============================
   📱 Responsive
   =============================== */
@media (max-width: 768px) {
  .plan-card, .feature-card {
    margin-bottom: 1rem;
  }
  .navbar-control-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}

.plan-card {
  position: relative;
  overflow: visible !important; /* ✅ يسمح للتاغ بالخروج من حدود البطاقة */
}

/* ===============================
   📢 Message Area Styles
   =============================== */

   .message-area {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  pointer-events: none;

  /* ✅ توسيط أفقي فقط، وجعل العنصر في الأعلى */
  display: flex;
  justify-content: center;   /* يوسّط أفقيًا */
  align-items: flex-start;    /* يجعل العنصر في الأعلى */
  padding-top: 25px;          /* مسافة من الأعلى */
}



.message-container {
  width: min(56rem, calc(100% - 2rem));
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10001;
}

.message {
  margin: 0.35rem 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid transparent;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.08);
  pointer-events: auto;
  animation: toast-in 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  position: relative;
  overflow: hidden;
  font-family: 'Tajawal', 'Inter', sans-serif;
}

.message--closing {
  animation: toast-out 300ms ease both;
}

.message__icon {
  font-size: 1.25rem;
  width: 1.6rem;
  text-align: center;
  flex: 0 0 auto;
}

.message__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.97rem;
}

.message__close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.12rem 0.35rem;
  margin-inline-start: auto;
  cursor: pointer;
  transition: opacity 0.2s;
}

.message__close:hover,
.message__close:focus {
  opacity: 0.7;
}

/* Progress Bar for Auto-Dismiss */
.message__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  animation: progress 6000ms linear forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0; }
}

/* Message Variants */
.message--success {
  background-color: rgba(236, 253, 245, 0.9); /* #ECFDF5 */
  color: #065F46;
  border-color: #D1FAE5;
  border-inline-start: 5px solid #10B981;
}

.message--error {
  background-color: rgba(254, 242, 242, 0.9); /* #FEF2F2 */
  color: #991B1B;
  border-color: #FECACA;
  border-inline-start: 5px solid #EF4444;
}

.message--info {
  background-color: rgba(239, 246, 255, 0.9); /* #EFF6FF */
  color: #1E3A8A;
  border-color: #BFDBFE;
  border-inline-start: 5px solid #2563EB;
}

.message--default {
  background-color: rgba(248, 250, 252, 0.9); /* #F8FAFC */
  color: #0F172A;
  border-color: #E6E9EE;
  border-inline-start: 5px solid #64748B;
}

/* Dark Mode Adjustments */
.dark .message {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  color: #E6EEF8;
}

.dark .message--success {
  background-color: rgba(209, 250, 229, 0.2);
  color: #BBF7D0;
  border-color: #6EE7B7;
  border-inline-start: 5px solid #6EE7B7;
}

.dark .message--error {
  background-color: rgba(254, 202, 202, 0.2);
  color: #FECACA;
  border-color: #FCA5A5;
  border-inline-start: 5px solid #FCA5A5;
}

.dark .message--info {
  background-color: rgba(191, 219, 254, 0.2);
  color: #BFDBFE;
  border-color: #93C5FD;
  border-inline-start: 5px solid #93C5FD;
}

.dark .message--default {
  background-color: rgba(30, 41, 59, 0.5);
  color: #CBD5E1;
  border-color: #94A3B8;
  border-inline-start: 5px solid #94A3B8;
}

/* Close All Button */
.message__close-all {
  display: none;
  margin: 0.5rem auto;
  padding: 0.5rem 1rem;
  background: #EF4444;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  border: none;
  transition: background-color 0.2s;
}

.message__close-all:hover,
.message__close-all:focus {
  background: #DC2626;
}

.message-container--multiple .message__close-all {
  display: block;
}

/* Animations */
.message-area {
  will-change: transform, opacity;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.995); }
}

/* Responsive: Mobile Full-Width */
@media (max-width: 640px) {
  .message-area {
    width: calc(100% - 1rem);
    padding: 0 0.5rem;
  }
}