/*
 * Digital Voices Renaissance — v10.173.0
 * Notification bell, iOS modal, auth upgrade, quick actions
 */

/* ── NOTIFICATION BELL ──────────────────────────────────────────────────── */
.dv173-bell-wrap {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 2147483300;
}
@media (max-width:900px) { .dv173-bell-wrap { top:10px; right:12px; } }

.dv173-bell-btn {
  position: relative;
  background: rgba(9,1,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124,60,255,0.3);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .18s;
  box-shadow: 0 4px 16px rgba(18,8,42,.2);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dv173-bell-btn:hover { background: rgba(124,60,255,0.2); border-color: rgba(124,60,255,0.5); }
.dv173-bell-btn:active { transform: scale(0.94); }

.dv173-bell-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  min-width: 18px; height: 18px;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #090112;
  opacity: 0; transform: scale(0.6);
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  line-height: 1;
}
.dv173-bell-badge-visible { opacity: 1 !important; transform: scale(1) !important; }

/* Bell panel */
.dv173-bell-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #1a0d30;
  border: 1px solid rgba(124,60,255,0.25);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(18,8,42,.38);
  overflow: hidden;
  transform: translateY(-8px) scale(0.97);
  opacity: 0;
  transition: transform .25s cubic-bezier(0.2,0.9,0.2,1), opacity .25s;
  pointer-events: none;
}
.dv173-bell-panel:not([hidden]).dv173-panel-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.dv173-bell-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(124,60,255,.15);
  color: #fff;
  font-size: 14px;
}
.dv173-bell-header strong { font-weight: 800; }
.dv173-bell-mark-all {
  background: none; border: none; color: #a78bfa;
  font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: background .18s;
}
.dv173-bell-mark-all:hover { background: rgba(124,60,255,.15); }
.dv173-bell-list { max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(124,60,255,.2) transparent; }
.dv173-bell-empty { padding: 32px 16px; text-align: center; color: rgba(255,255,255,.4); font-size: 14px; }
.dv173-notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124,60,255,.08);
  cursor: pointer;
  transition: background .18s;
  position: relative;
}
.dv173-notif-item:hover { background: rgba(124,60,255,.1); }
.dv173-notif-unread { background: rgba(124,60,255,.06); }
.dv173-notif-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }
.dv173-notif-body { flex: 1; min-width: 0; }
.dv173-notif-title { display: block; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv173-notif-msg   { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dv173-notif-time  { display: block; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 4px; }
.dv173-notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #7c3cff;
  flex-shrink: 0; align-self: center; margin-left: auto;
}

/* ── AUTH ENHANCEMENTS ──────────────────────────────────────────────────── */
.dv173-auth-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(124,60,255,.1);
}
.dv173-auth-logo img {
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(124,60,255,.3);
  flex-shrink: 0;
}
.dv173-auth-logo-text strong {
  display: block; font-size: 18px; font-weight: 900; color: #140d25; letter-spacing: -.02em;
}
.dv173-auth-logo-text span { font-size: 13px; color: #756b86; }

.dv173-notice {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 12px; padding: 12px 14px;
  font-size: 14px; font-weight: 600; margin-bottom: 18px;
  line-height: 1.45;
}
.dv173-notice--error   { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.dv173-notice--warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.dv173-notice--info    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.dv173-notice--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }

/* Password show/hide toggle */
.dv173-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #756b86; font-size: 12px; font-weight: 600; padding: 4px 6px;
  border-radius: 6px; font-family: inherit;
  transition: color .18s, background .18s;
}
.dv173-pw-toggle:hover { color: #7c3cff; background: rgba(124,60,255,.08); }

/* ── iOS INSTALL HEADER BUTTON ──────────────────────────────────────────── */
.dv173-install-header-btn {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #7c3cff, #a855f7);
  color: #fff;
  border: none; border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,60,255,.35);
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── iOS FULL-SCREEN INSTALL MODAL ─────────────────────────────────────── */
.dv173-ios-modal {
  position: fixed; inset: 0; z-index: 2147483600;
  background: rgba(9,1,18,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: dv173ModalIn .3s ease both;
}
.dv173-ios-modal[hidden] { display: none; }
@keyframes dv173ModalIn { from { opacity:0; } to { opacity:1; } }

.dv173-ios-modal-card {
  background: #1a0d30;
  border-radius: 24px 24px 0 0;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: dv173SlideUp .35s cubic-bezier(0.2,0.9,0.2,1) both;
  border: 1px solid rgba(124,60,255,.3);
  border-bottom: none;
  -webkit-overflow-scrolling: touch;
}
@keyframes dv173SlideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
@media (min-width:540px) { .dv173-ios-modal-card { border-radius: 24px; max-height: 80vh; margin-bottom: 24px; } }

.dv173-ios-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255,255,255,.1); border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 18px; color: rgba(255,255,255,.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.dv173-ios-modal-close:hover { background: rgba(255,255,255,.18); }

.dv173-ios-modal-hero { text-align: center; margin-bottom: 28px; }
.dv173-ios-modal-icon { border-radius: 22px; box-shadow: 0 12px 36px rgba(124,60,255,.4); margin-bottom: 16px; }
.dv173-ios-modal-hero h2 { font-size: 22px; font-weight: 900; color: #fff; margin: 0 0 8px; letter-spacing: -.02em; }
.dv173-ios-modal-hero p  { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.5; max-width: 300px; margin: 0 auto; }

.dv173-ios-modal-steps { display: flex; flex-direction: column; gap: 18px; }
.dv173-ios-modal-step  { display: flex; gap: 14px; align-items: flex-start; }
.dv173-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3cff, #a855f7);
  color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dv173-step-content strong { display: block; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dv173-step-content p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
.dv173-step-visual { padding: 10px 0; }
.dv173-step-icon-preview {
  display: flex; align-items: center; gap: 10px;
  background: rgba(124,60,255,.1); border-radius: 12px; padding: 10px 12px;
  font-size: 12px; color: rgba(255,255,255,.6); margin-top: 8px;
}
.dv173-ios-modal-note {
  margin-top: 24px; padding: 14px 16px;
  background: rgba(255,194,71,.08); border: 1px solid rgba(255,194,71,.2);
  border-radius: 12px; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5;
}
.dv173-ios-modal-note strong { color: #ffc247; }

/* ── QUICK ACTIONS BAR ──────────────────────────────────────────────────── */
.dv173-quick-bar {
  position: fixed; bottom: 72px; left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex; gap: 8px;
  background: rgba(9,1,18,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124,60,255,.25);
  border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 8px 32px rgba(18,8,42,.28);
  pointer-events: all;
}
@media (min-width:901px) {
  .dv173-quick-bar { bottom: 24px; }
}
.dv173-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 14px; border-radius: 999px;
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: 11px; font-weight: 600;
  transition: background .18s, color .18s;
  white-space: nowrap; min-width: 52px; text-align: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dv173-quick-item:hover { background: rgba(124,60,255,.2); color: #fff; }
.dv173-quick-icon { font-size: 18px; line-height: 1; }

/* ── PRINT ──────────────────────────────────────────────────────────────── */
@media print {
  .dv173-bell-wrap, .dv173-ios-modal,
  #dv173-ios-install-header, .dv173-quick-bar { display: none !important; }
}
