/* Chia Tiền Nhóm — modal, toast, responsive */

[hidden] { display: none !important; }

.ctn-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.ctn-modal-card { background: var(--bg-elev); border: 1px solid var(--danger); border-radius: var(--radius); padding: 24px; max-width: 400px; width: 100%; text-align: center; }
.ctn-modal-card h3 { margin: 0 0 8px; color: var(--text); }
.ctn-modal-card p { color: var(--text-muted); margin: 0 0 18px; font-size: 0.9rem; }
.ctn-modal-actions { display: flex; gap: 10px; }
.ctn-modal-actions button { flex: 1; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev); border: 1px solid var(--accent); color: var(--accent);
  padding: 8px 18px; border-radius: 999px; font-size: 0.9rem;
  z-index: 60; animation: ctn-toast-in 0.2s ease;
}
.toast.is-error { border-color: var(--danger); color: var(--danger); }
@keyframes ctn-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 900px) {
  .ctn-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .ctn-container { padding-top: 24px; }
  .ctn-section { padding: 14px; }
  .result-card { padding: 16px; }
  .result-bank { flex-direction: column; }
  .result-bank img { width: 100%; height: auto; max-height: 200px; }
}

@media print {
  body { background: white !important; color: black !important; }
  .back-link, .ctn-hero, .trip-title, .ctn-col-left, .footer,
  .ctn-col-right > .ctn-section, .btn-export, .btn-reset { display: none !important; }
  .ctn-grid { grid-template-columns: 1fr; }
  .result-card { border: 1px solid #888 !important; background: white !important; }
  .result-card * { color: black !important; }
}
