/* ===== DOWNLOAD NOTIFICATION OVERLAY ===== */
.dl-notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.dl-notify-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Dim backdrop */
.dl-notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* Hide page content behind */
.scroll-layout.dl-notify-open,
.topbar.dl-notify-open {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.topbar.dl-notify-open {
  transform: translateX(-50%) scale(0.96);
}

/* ===== NOTIFICATION CONTAINER ===== */
.dl-notify-container {
  position: relative;
  z-index: 1;
  width: clamp(300px, 50vw, 520px);
  border-radius: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(200, 200, 210, 0.35);
  overflow: visible;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.dl-notify-overlay.active .dl-notify-container {
  transform: scale(1);
  opacity: 1;
}

/* Liquid glass layers */
.dl-notify-container::after {
  content: '';
  position: absolute; z-index: -1; inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  filter: url(#setup-glass); -webkit-filter: url(#setup-glass);
  overflow: hidden; isolation: isolate;
}
.dl-notify-container::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: inherit;
  box-shadow: inset 1px 1px 0px -1px rgba(255,255,255,0.5), inset 0 0 2px 0.5px rgba(255,255,255,0.4);
  background-color: rgb(200 200 210 / 10%);
}

/* ===== CLOSE BUTTON ===== */
.dl-notify-close {
  position: absolute;
  top: clamp(10px, 1.2vw, 16px);
  right: clamp(10px, 1.2vw, 16px);
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(200, 200, 210, 0.3);
  background: rgba(200, 200, 210, 0.1);
  color: #636e72;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dl-notify-close:hover {
  transform: scale(1.08);
  border-color: rgba(200, 200, 210, 0.5);
  background: rgba(200, 200, 210, 0.18);
}
.dl-notify-close svg {
  width: 14px;
  height: 14px;
  stroke: #636e72;
}

/* ===== CONTENT ===== */
.dl-notify-icon {
  width: clamp(40px, 5vw, 56px);
  height: clamp(40px, 5vw, 56px);
  margin: 0 auto clamp(14px, 2vw, 22px);
  stroke: #636e72;
}
.dl-notify-message {
  position: relative;
  z-index: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: #2d3436;
  line-height: 1.5;
  margin-bottom: clamp(6px, 1vw, 10px);
}
.dl-notify-sub {
  position: relative;
  z-index: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: #636e72;
  line-height: 1.5;
  margin-bottom: clamp(18px, 3vw, 28px);
}

/* ===== SETUP GUIDE BUTTON ===== */
.dl-notify-setup-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(10px, 1.3vw, 14px) clamp(20px, 2.5vw, 28px);
  border-radius: 9999px;
  border: none;
  outline: none;
  background: transparent;
  color: #636e72;
  font-family: inherit;
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.dl-notify-setup-btn:hover {
  transform: scale(1.04);
  color: #2d3436;
}
.dl-notify-setup-btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
/* Liquid glass on button */
.dl-notify-setup-btn::after {
  content: '';
  position: absolute; z-index: -1; inset: 0;
  border-radius: 9999px;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  filter: url(#btn-glass); -webkit-filter: url(#btn-glass);
  overflow: hidden; isolation: isolate;
}
.dl-notify-setup-btn::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: 9999px;
  box-shadow:
    inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7),
    inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
    inset 0 0 22px rgba(220, 160, 255, 0.4),
    inset 0 0 9px rgba(240, 200, 255, 0.3);
  background-color: rgb(200 200 210 / 14%);
}
.dl-notify-setup-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* ===== EMAIL POPUP ===== */
.email-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.email-popup-overlay.active {
  visibility: visible;
  opacity: 1;
}
.email-popup-container {
  position: relative;
  z-index: 1;
  border-radius: clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(200, 200, 210, 0.35);
  overflow: visible;
  padding: clamp(18px, 2.5vw, 28px) clamp(28px, 4vw, 48px);
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.email-popup-overlay.active .email-popup-container {
  transform: scale(1);
  opacity: 1;
}
.email-popup-container::after {
  content: '';
  position: absolute; z-index: -1; inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  filter: url(#setup-glass); -webkit-filter: url(#setup-glass);
  overflow: hidden; isolation: isolate;
}
.email-popup-container::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: inherit;
  box-shadow: inset 1px 1px 0px -1px rgba(255,255,255,0.5), inset 0 0 2px 0.5px rgba(255,255,255,0.4);
  background-color: rgb(200 200 210 / 10%);
}
.email-popup-close {
  position: absolute;
  top: clamp(8px, 1vw, 12px);
  right: clamp(8px, 1vw, 12px);
  z-index: 10;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(200, 200, 210, 0.3);
  background: rgba(200, 200, 210, 0.1);
  color: #636e72;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.email-popup-close:hover {
  transform: scale(1.08);
  border-color: rgba(200, 200, 210, 0.5);
  background: rgba(200, 200, 210, 0.18);
}
.email-popup-close svg {
  width: 12px;
  height: 12px;
  stroke: #636e72;
}
.email-popup-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.5vw, 18px);
  padding-right: clamp(30px, 4vw, 50px);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
}
.email-popup-address {
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: #2d3436;
  letter-spacing: 0.01em;
  user-select: all;
}
.email-popup-copy {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: clamp(6px, 0.8vw, 9px) clamp(12px, 1.5vw, 16px);
  border-radius: 9999px;
  border: none;
  outline: none;
  background: transparent;
  color: #2d3436;
  font-family: inherit;
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.email-popup-copy:hover {
  transform: scale(1.06);
}
.email-popup-copy:active {
  transform: scale(0.95);
  transition-duration: 0.08s;
}
.email-popup-copy::after {
  content: '';
  position: absolute; z-index: -1; inset: 0;
  border-radius: 9999px;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  filter: url(#btn-glass); -webkit-filter: url(#btn-glass);
  overflow: hidden; isolation: isolate;
}
.email-popup-copy::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: 9999px;
  box-shadow:
    inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7),
    inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
  background-color: rgb(200 200 210 / 12%);
  transition: background-color 0.2s ease;
}
.email-popup-copy.copied {
  color: #00b894;
}
.email-popup-copy svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .dl-notify-container {
    width: 90vw;
    padding: clamp(24px, 4vw, 32px);
  }
  .dl-notify-container::after {
    filter: none; -webkit-filter: none;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
  }
  .email-popup-container {
    padding: clamp(16px, 3vw, 24px) clamp(18px, 3vw, 28px);
  }
  .email-popup-container::after {
    filter: none; -webkit-filter: none;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
  }
  .email-popup-content {
    flex-direction: column;
    gap: 10px;
  }
  .email-popup-address {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
  }
}
