/* Modal System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-card-wide {
  max-width: 780px;
}

.modal-card-sm {
  max-width: 360px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.modal-footer-between {
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-confirm {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Security Callout */
.security-callout {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}

.callout-icon {
  font-size: 20px;
  color: #16a34a;
  margin-top: 2px;
}

.callout-content strong {
  display: block;
  font-size: 14px;
  color: #15803d;
  margin-bottom: 4px;
}

.callout-content p {
  font-size: 12.5px;
  color: #166534;
  line-height: 1.5;
  margin: 0;
}

/* Export Grid */
.export-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.export-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.export-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.export-card .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.radio-pill-group {
  display: flex;
  gap: 8px;
}

.radio-pill {
  flex: 1;
  display: block;
}

.radio-pill input {
  display: none;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-pill input:checked + span {
  background-color: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.input-text, .input-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
}

.download-action-buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-action-download {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-action-download:hover {
  background-color: #f1f5f9;
}

.btn-action-download.highlight {
  background-color: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.btn-action-download.highlight:hover {
  background-color: #be123c;
}

.btn-action-email {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  border: none;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-action-email:hover {
  background-color: var(--primary-hover);
}

.status-msg {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
}

/* Kakao Modal specifics */
.text-center { text-align: center; }
.qr-placeholder img {
  width: 180px;
  height: 180px;
  margin: 12px auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
}
.kakao-modal-desc {
  font-size: 13px;
  color: var(--text-dark);
}
.sub-notice {
  font-size: 11.5px;
  color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
