:root {
  --bg-gradient: linear-gradient(180deg, #f5f6f8 0%, #eef0f6 40%, #e2e8f5 100%);
  --lime-neon: #a4f530;
  --lime-hover: #91db24;
  --dark-pill: #16181d;
  --card-bg: #ffffff;
  --card-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --radius-card: 22px;
  --radius-pill: 999px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #cbf348; /* Nền xanh neon tràn lề làm nổi bật chiếc điện thoại ở giữa */
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 10px;
}

/* Khung mô phỏng màn hình Smartphone giống hình ảnh demo */
.mobile-frame {
  width: 100%;
  max-width: 440px;
  background: var(--bg-gradient);
  border-radius: 38px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 10px #ffffff;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Thanh trạng thái mạng */
.status-bar {
  background: var(--dark-pill);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.status-online { color: #4ade80; }
.status-offline { color: #fbbf24; }
.status-syncing { color: #60a5fa; }

/* Progress bar phía trên cùng */
.top-progress-bar {
  padding: 16px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-fill {
  height: 6px;
  flex: 1;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 45%;
  background: var(--lime-neon);
  border-radius: 10px;
}

.skip-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Header & Chat bubble */
.app-header {
  padding: 12px 20px 16px;
}

.chat-bubble-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-pill);
  color: var(--lime-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-icon svg { width: 20px; height: 20px; }

.chat-content p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.main-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-main);
  padding: 4px 10px 12px;
}

/* Container chính chứa Card */
.container {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Thẻ Card nội dung */
.field-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--lime-neon);
  color: var(--dark-pill);
  padding: 3px 8px;
  border-radius: 8px;
}

.section-heading h2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Input Fields */
.input-group {
  margin-bottom: 14px;
}
.input-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.88rem;
  background: #f8fafc;
  color: var(--text-main);
  transition: all 0.2s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dark-pill);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(164, 245, 48, 0.35);
}

.readonly-field-card {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 12px;
  font-style: italic;
}

/* Location Controls */
.location-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 4px;
}

/* Upload Photo Area */
.photo-upload-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px dashed var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.photo-upload-card:hover {
  background: #f1f5f9;
}

.upload-icon {
  width: 34px;
  height: 34px;
  background: var(--lime-neon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-pill);
}
.upload-icon svg { width: 18px; height: 18px; }

.photo-upload-card span {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
}

.photo-preview {
  display: block;
  margin-top: 12px;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--border-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-lime {
  background: var(--lime-neon);
  color: var(--dark-pill);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
}
.btn-lime:hover { background: var(--lime-hover); }
.btn-lime svg { width: 16px; height: 16px; }

/* Nút Submit kiểu Continue pill của hình 3 */
.btn-continue {
  width: 100%;
  background: var(--dark-pill);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  box-shadow: 0 10px 20px -5px rgba(22, 24, 29, 0.3);
}

.btn-continue:hover {
  transform: translateY(-2px);
  background: #000000;
}

.arrow-circle {
  width: 32px;
  height: 32px;
  background: var(--lime-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-pill);
}
.arrow-circle svg { width: 16px; height: 16px; }

/* Saved Sessions List */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-header-row .section-heading { margin-bottom: 0; }

.btn-sync {
  background: #f1f5f9;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.btn-sync:hover { background: #e2e8f0; }
.btn-sync svg { width: 14px; height: 14px; }

.sessions-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.session-item {
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-light);
}

.session-name { font-weight: 700; font-size: 0.85rem; color: var(--text-main); }
.session-time { color: var(--text-muted); font-size: 0.75rem; margin-top: 2px; }

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-synced { background: #dcfce7; color: #15803d; }

.empty-state {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 12px 0;
  font-style: italic;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 24px 18px 20px;
}