/* ==============================================================================
   ZOLÉA Luxury — Apple Glassmorphism Push Notification Prompt & Toast Styling
   macOS / iOS Frosted Glass & Specular Glow Effect
   ============================================================================== */

.zolea-glass-push-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  z-index: 9999;
  border-radius: 24px;
  padding: 1px; /* border gradient container */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(212, 175, 55, 0.3) 100%
  );
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
}

.zolea-glass-push-card.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Ambient glow orb behind glass */
.glass-ambient-glow {
  position: absolute;
  top: -10px;
  left: 15%;
  width: 140px;
  height: 90px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  animation: glassGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes glassGlowPulse {
  0% { opacity: 0.4; transform: scale(0.9) translate(-5px, -5px); }
  100% { opacity: 0.9; transform: scale(1.1) translate(10px, 5px); }
}

/* Frosted glass inner body */
.glass-card-inner {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-radius: 23px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Dark mode glass */
[data-theme="dark"] .zolea-glass-push-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(212, 175, 55, 0.25) 100%
  );
  box-shadow: 
    0 28px 60px -10px rgba(0, 0, 0, 0.65),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .glass-card-inner {
  background: rgba(18, 18, 22, 0.78);
}

/* Close button */
.glass-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.glass-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="dark"] .glass-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

[data-theme="dark"] .glass-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

/* Header with luxury icon */
.glass-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 20px;
}

.glass-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.bell-glow-sheen {
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(254, 240, 138, 0.35) 50%,
    transparent 60%
  );
  animation: sheenSlide 3.5s infinite;
}

@keyframes sheenSlide {
  0% { transform: translateX(-100%) translateY(-100%); }
  40%, 100% { transform: translateX(100%) translateY(100%); }
}

.glass-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.glass-brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b45309;
}

[data-theme="dark"] .glass-brand-badge {
  color: #fbbf24;
}

.glass-main-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

[data-theme="dark"] .glass-main-title {
  color: #f8fafc;
}

/* Description */
.glass-desc-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
}

[data-theme="dark"] .glass-desc-text {
  color: #cbd5e1;
}

/* iOS Safari PWA guidance tip */
.glass-ios-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.74rem;
  color: #1e40af;
  line-height: 1.35;
}

[data-theme="dark"] .glass-ios-tip {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

/* iOS Step-by-Step Box */
.glass-ios-steps-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
}

[data-theme="dark"] .glass-ios-steps-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.2);
}

.glass-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #1e293b;
}

[data-theme="dark"] .glass-ios-step {
  color: #e2e8f0;
}

.ios-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

[data-theme="dark"] .ios-step-num {
  background: #d4af37;
  color: #000000;
}

/* Action buttons */
.glass-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.glass-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.glass-btn-primary:active {
  transform: translateY(1px);
}

[data-theme="dark"] .glass-btn-primary {
  background: #f8fafc;
  color: #09090b;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .glass-btn-primary:hover {
  background: #e2e8f0;
}

.glass-btn-secondary {
  padding: 10px 14px;
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.glass-btn-secondary:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .glass-btn-secondary {
  color: #94a3b8;
}

[data-theme="dark"] .glass-btn-secondary:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

/* Success Toast */
.zolea-push-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}

.zolea-push-toast.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(15px);
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-body {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-weight: 700;
  font-size: 0.86rem;
}

.toast-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .zolea-glass-push-card {
    bottom: 20px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    border-radius: 20px;
  }
  .glass-card-inner {
    padding: 16px 18px;
    border-radius: 19px;
  }
}
