/* === Custom modal === */
.olw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 7, 12, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.olw-modal-overlay.show { display: flex; }

.olw-modal {
  background: var(--bg-card);
  border: 1px solid rgba(241, 139, 194, 0.2);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 48px rgba(241, 139, 194, 0.2);
}
.olw-modal h3 {
  color: var(--pink-light);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.olw-modal p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.olw-modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid rgba(241, 139, 194, 0.2);
  border-radius: var(--radius-btn);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 16px;
  outline: none;
}
.olw-modal-input:focus { border-color: var(--pink-primary); }

.olw-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* === Custom toast === */
.olw-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.olw-toast {
  background: var(--bg-card);
  border: 1px solid rgba(241, 139, 194, 0.3);
  border-radius: var(--radius-btn);
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 0.85rem;
  box-shadow: 0 4px 24px rgba(241, 139, 194, 0.25);
  pointer-events: auto;
  animation: olwToastIn 0.2s ease-out;
}
.olw-toast.error { border-color: rgba(232, 93, 117, 0.4); color: #FCA5B5; }
@keyframes olwToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Icon button === */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-secondary); color: var(--pink-light); }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.icon-btn.active { color: var(--pink-primary); }
.icon-btn.recording { background: rgba(232, 93, 117, 0.2); color: #E85D75; }
.icon-btn.danger { color: #E85D75; }

/* === Action sheet === */
.olw-action-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid rgba(241, 139, 194, 0.2);
  border-radius: 20px 20px 0 0;
  padding: 16px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 70vh;
  overflow-y: auto;
}
.olw-action-sheet.show { display: flex; }
.olw-action-sheet .sheet-title {
  padding: 8px 12px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(241, 139, 194, 0.1);
  margin-bottom: 8px;
}
.olw-action-sheet button {
  background: none;
  border: none;
  padding: 14px 12px;
  text-align: left;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-body);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.olw-action-sheet button:hover { background: var(--bg-secondary); }
.olw-action-sheet button.danger { color: #FCA5B5; }
.olw-action-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 7, 12, 0.6);
  z-index: 999;
  display: none;
}
.olw-action-sheet-overlay.show { display: block; }