/* ULive OrderFlow - 공용 스타일 (로그인/상태/비밀번호찾기 등) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background-color: #0f172a;
  color: #f8fafc;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container { max-width: 440px; width: 100%; margin: 0 auto; }

.header { text-align: center; margin-bottom: 28px; }
.brand {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.brand .order { color: #2563eb; }
.brand .flow { color: #60a5fa; }
.subtitle { color: #94a3b8; font-size: 14px; margin: 0; }

.card {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 28px 24px;
}
.card.text-center { text-align: center; }

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #f8fafc;
}

.card-text {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  white-space: pre-line;
}

.info-row {
  background-color: #0f172a;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  text-align: left;
  font-size: 13px;
  color: #cbd5e1;
  word-break: break-word;
}
.info-row strong {
  color: #f8fafc;
  font-weight: 600;
  display: inline-block;
  min-width: 56px;
}

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f8fafc;
}
.required { color: #ef4444; margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 11px 12px;
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: #2563eb; }
input::placeholder { color: #475569; }

.error-msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  min-height: 1em;
  line-height: 1.4;
}
.form-error { text-align: center; margin-top: 8px; }

.btn {
  display: inline-block;
  padding: 11px 18px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover:not(:disabled) { background-color: #1d4ed8; }
.btn:disabled {
  background-color: #475569;
  color: #94a3b8;
  cursor: not-allowed;
}
.btn-block {
  width: 100%;
  display: block;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
}
.btn-outline:hover:not(:disabled) {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: #60a5fa;
  color: #ffffff;
}

.links { text-align: center; margin-top: 16px; font-size: 13px; color: #94a3b8; }
.links a { color: #60a5fa; text-decoration: none; }
.links .row { margin-top: 8px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.modal-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.modal-text { color: #cbd5e1; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

.hidden { display: none !important; }

/* === mypage: 인라인 편집 필드 / 카드 섹션 / 서비스 테이블 === */

body.no-center {
  display: block;
}

.card-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #334155;
}

.card + .card { margin-top: 16px; }

.field-row {
  padding: 12px 0;
  border-bottom: 1px solid #2a3548;
}
.field-row:last-child { border-bottom: none; }

.field-label {
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 4px;
  font-weight: 600;
}
.field-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field-value-display {
  color: #f8fafc;
  font-size: 14px;
  flex: 1;
  word-break: break-word;
}
.field-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.field-edit .field-input {
  flex: 1 1 200px;
  min-width: 0;
}
.field-note {
  color: #64748b;
  font-size: 11px;
  margin-top: 4px;
}
.field-error {
  margin-top: 4px;
  display: block;
}

.btn-small {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.btn-link {
  background: none;
  border: none;
  padding: 4px 8px;
  color: #60a5fa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
}
.btn-link:hover { color: #93c5fd; }

.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.service-table th,
.service-table td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid #2a3548;
}
.service-table th {
  color: #94a3b8;
  font-weight: 600;
  font-size: 12px;
}
.service-table td { color: #cbd5e1; }
.service-table tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.status-pill.on  { background-color: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-pill.off { background-color: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.service-note {
  color: #64748b;
  font-size: 12px;
  margin: 12px 0 0;
  text-align: center;
}

.modal-form { max-width: 420px; text-align: left; }
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.modal-actions .btn { flex: 1; }

.button-row {
  display: flex;
  gap: 8px;
}
.button-row .btn { flex: 1; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #1e293b;
  color: #f8fafc;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #2563eb;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  body { padding: 20px 12px; }
  .card { padding: 20px 16px; }
}
