/**
 * WAZAIF COUNTER — LAYOUT (HEADER, NAV, FOOTER, GRID)
 */

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.header-scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  text-decoration: none;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Header Dropdown Menu (Support Navigation) */
.nav-item.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.dropdown-toggle:hover,
.nav-item.dropdown:hover .dropdown-toggle,
.nav-item.dropdown.is-open .dropdown-toggle {
  color: var(--primary);
}

.dropdown-chevron {
  transition: transform 0.25s ease;
}

.nav-item.dropdown:hover .dropdown-chevron,
.nav-item.dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

[data-theme="dark"] .dropdown-menu {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none !important;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: rgba(5, 150, 105, 0.08);
  color: var(--primary);
  font-weight: 600;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item.active {
  background-color: rgba(5, 150, 105, 0.18);
  color: #34d399;
}

/* Mobile Drawer Group & Sublinks */
.mobile-nav-group {
  margin: 0.35rem 0;
}

.mobile-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px dashed var(--border-color);
  user-select: none;
}

.mobile-nav-group-title svg {
  transition: transform 0.25s ease;
}

.mobile-nav-group.is-expanded .mobile-nav-group-title svg {
  transform: rotate(180deg);
}

.mobile-nav-sublinks {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.85rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  border-left: 2px solid rgba(5, 150, 105, 0.25);
}

.mobile-sublink {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none !important;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}

.mobile-sublink:hover,
.mobile-sublink.active {
  color: var(--primary);
  background-color: rgba(5, 150, 105, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--bg-surface-elevated);
}

/* Dark Mode Theme Toggle Button Styling */
[data-theme="dark"] .theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Theme Toggle Icon Switching CSS Safeguard */
[data-theme="light"] .theme-toggle-btn .icon-sun,
html:not([data-theme="dark"]) .theme-toggle-btn .icon-sun {
  display: none !important;
}

[data-theme="light"] .theme-toggle-btn .icon-moon,
html:not([data-theme="dark"]) .theme-toggle-btn .icon-moon {
  display: block !important;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: block !important;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* ==========================================================================
   MOBILE NAV DRAWER & OVERLAY
   ========================================================================== */

/* DEFAULT BASE STATE: Strictly hide mobile drawer & overlay by default everywhere */
.mobile-nav-overlay,
.mobile-nav-drawer {
  display: none !important;
}

/* DESKTOP SAFEGUARD (min-width: 769px): Completely hide mobile drawer, overlay & hamburger icon on desktop */
@media (min-width: 769px) {
  .mobile-nav-drawer,
  .mobile-nav-overlay,
  .nav-toggle {
    display: none !important;
  }
}

/* MOBILE STYLING ONLY (max-width: 768px) */
@media (max-width: 768px) {
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    background: var(--bg-surface, #ffffff);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
  }

  [data-theme="dark"] .mobile-nav-drawer {
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color-subtle);
  }

  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none !important;
  }

  .drawer-brand img {
    width: 32px;
    height: 32px;
  }

  .mobile-nav-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-elevated, rgba(0, 0, 0, 0.04));
    color: var(--text-primary);
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .mobile-nav-close:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .mobile-nav-links .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md, 0.5rem);
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-links .nav-link svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
  }

  .mobile-nav-links .nav-link:hover {
    background: rgba(5, 150, 105, 0.08);
    color: var(--primary);
  }

  .mobile-nav-links .nav-link:hover svg {
    color: var(--primary);
  }

  .mobile-nav-links .nav-link.active {
    background: rgba(5, 150, 105, 0.12);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
  }

  .mobile-nav-links .nav-link.active svg {
    color: var(--primary);
  }

  .drawer-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color-subtle);
  }

  .drawer-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md, 0.5rem);
    background: var(--primary);
    color: #ffffff !important;
    text-decoration: none !important;
  }
}




/* Global Premium Unique Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  overflow: hidden;
}

/* Subtle background accent glow */
.site-footer::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.footer-top-banner {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.footer-banner-text h3 {
  color: #ffffff;
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}

.footer-banner-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
  max-width: 500px;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.footer-brand-desc {
  margin-top: 1.1rem;
  max-width: 360px;
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.footer-badge-tag {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .footer-badge-tag {
  background: rgba(5, 150, 105, 0.18);
  border-color: rgba(5, 150, 105, 0.35);
  color: #34d399;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  text-decoration: none !important;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-placeholder-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background-color: var(--primary-glow);
  color: var(--primary);
  margin-top: 0.35rem;
  font-weight: 700;
  text-transform: uppercase;
}


.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* WhatsApp Channel Footer Banner Card */
.whatsapp-channel-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(18, 140, 126, 0.14) 100%);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2.25rem;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.whatsapp-channel-card:hover {
  transform: translateY(-3px);
  border-color: #25D366;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.2);
}

.whatsapp-card-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.whatsapp-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.whatsapp-card-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.whatsapp-card-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

/* Master Dual CTA Container - Compact Low-Height 2-Card Grid Deck */
.footer-master-cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.master-cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.master-cta-card.card-playstore {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, var(--bg-surface) 100%);
  border-left: 4px solid var(--primary);
}

.master-cta-card.card-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, var(--bg-surface) 100%);
  border-left: 4px solid #25D366;
}

[data-theme="dark"] .master-cta-card.card-playstore {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(5, 150, 105, 0.3);
  border-left-color: var(--primary);
}

[data-theme="dark"] .master-cta-card.card-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(37, 211, 102, 0.3);
  border-left-color: #25D366;
}

.master-cta-card:hover {
  transform: translateY(-3px);
}

.master-cta-card.card-playstore:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.15);
}

.master-cta-card.card-whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.18);
}

.cta-card-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  overflow: hidden;
}

.cta-brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.cta-brand-badge.playstore-brand {
  background: var(--bg-surface-elevated, #ffffff);
  border-color: rgba(5, 150, 105, 0.2);
}

.cta-brand-badge.whatsapp-brand {
  background: #25D366;
  color: #ffffff;
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.cta-card-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.2;
  white-space: nowrap;
}

.cta-card-info p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-card-action {
  flex-shrink: 0;
}

/* ==========================================================================
   FLOATING LIVE DHIKR BUBBLE (WATER DROPLET LIQUID MORPHING - NO HOVER INTERACTION)
   ========================================================================== */

.dhikr-float-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  pointer-events: none !important;
  width: 280px;
  height: 400px;
  overflow: visible;
}

.dhikr-bubble {
  position: absolute;
  bottom: 0;
  left: 10px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(220, 248, 235, 0.88));
  border: 1.5px solid rgba(5, 150, 105, 0.35);
  border-radius: 60% 40% 50% 50% / 60% 50% 50% 40%;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-indopak, 'Scheherazade New', 'Amiri', 'Traditional Arabic', serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  direction: rtl;
  box-shadow: inset -4px -4px 10px rgba(5, 150, 105, 0.12), inset 4px 4px 10px rgba(255, 255, 255, 0.95), 0 12px 32px rgba(5, 150, 105, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none !important; /* Zero interaction when cursor moves over bubble */
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  animation: floatWaterBubble 6.8s cubic-bezier(0.35, 0, 0.25, 1) forwards, waterBlobMorph 4s ease-in-out infinite alternate;
}

/* Strictly NO HOVER EFFECTS AT ALL */
.dhikr-bubble:hover {
  transform: none !important;
  box-shadow: inset -4px -4px 10px rgba(5, 150, 105, 0.12), inset 4px 4px 10px rgba(255, 255, 255, 0.95), 0 12px 32px rgba(5, 150, 105, 0.18) !important;
}

[data-theme="dark"] .dhikr-bubble {
  background: radial-gradient(circle at 35% 35%, rgba(15, 23, 42, 0.94), rgba(6, 78, 59, 0.75));
  border-color: rgba(5, 150, 105, 0.45);
  color: #34d399;
  box-shadow: inset -4px -4px 12px rgba(0, 0, 0, 0.5), inset 4px 4px 10px rgba(255, 255, 255, 0.12), 0 14px 36px rgba(0, 0, 0, 0.55);
}

@keyframes waterBlobMorph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
  }
  100% {
    border-radius: 50% 50% 30% 70% / 30% 70% 50% 60%;
  }
}

@keyframes floatWaterBubble {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.65);
  }
  12% {
    opacity: 1;
    transform: translateY(-30px) scale(1);
  }
  45% {
    opacity: 1;
    transform: translateY(-140px) scale(1.03);
  }
  75% {
    opacity: 0.88;
    transform: translateY(-240px) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translateY(-330px) scale(0.6);
  }
}

/* WordPress WhatsApp Plugin Style Floating Widget Wrapper */
.dhikr-widget-wrapper {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.dhikr-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  border: 2.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 3px;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 1002;
}

.dhikr-toggle-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: dhikrPulseRing 2.5s infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes dhikrPulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.dhikr-toggle-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dhikr-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.45);
}

/* Tooltip / Label Card with Arrow pointing to button */
.dhikr-tooltip-card {
  position: absolute;
  left: 72px;
  bottom: 10px;
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.55rem 0.95rem 0.55rem 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  z-index: 1001;
}

.dhikr-tooltip-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.dhikr-tooltip-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-surface-elevated, #ffffff);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.dhikr-tooltip-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.15rem;
  transition: color 0.2s;
}

.dhikr-tooltip-close:hover {
  color: var(--primary);
}

[data-theme="dark"] .dhikr-toggle-btn {
  background: rgba(15, 23, 42, 0.94);
  border-color: #34d399;
}

[data-theme="dark"] .dhikr-tooltip-card {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: #34d399;
  color: #f8fafc;
}

[data-theme="dark"] .dhikr-tooltip-card::before {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
}
