/* ===== BOTTOM SHEET ===== */

.bottom-sheet {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.bottom-sheet-open { display: block; }

.bottom-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
}

.bottom-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
  padding: 16px 20px 32px;
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--bg-quaternary);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.bottom-sheet-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--bg-quaternary);
  border-radius: 2px;
  margin: 0 auto 16px;
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .modal-handle { display: block; }
}

.modal-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.modal-message { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
}
.modal-btn-cancel { background: var(--bg-tertiary); color: var(--text-primary); }
.modal-btn-confirm { background: var(--brand-primary); color: var(--text-inverse); border-color: var(--brand-primary); }
.modal-btn-danger { background: var(--status-error); border-color: var(--status-error); }

/* ===== SCROLL TO TOP ===== */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background-color 0.2s;
  z-index: 999;
}

.scroll-to-top-visible { opacity: 1; pointer-events: auto; }

@media (hover: hover) {
  .scroll-to-top:hover { background: var(--bg-tertiary); }
}

@media (max-width: 768px) {
  .scroll-to-top { bottom: calc(var(--bottom-nav-height) + 12px); }
}

/* ===== IMAGE ZOOM ===== */

.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-zoom-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.zoomable-image { cursor: zoom-in; }
