/* Care-Board Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #4F8EF7;
  --primary-dark: #2D6FE0;
  --primary-light: #EBF2FF;
  --secondary: #6BCB77;
  --secondary-light: #EDFBEF;
  --accent: #FF6B6B;
  --accent-light: #FFF0F0;
  --warning: #FFB347;
  --warning-light: #FFF8ED;
  --purple: #9B59B6;
  --purple-light: #F5EDFB;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --text-sub: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E9F2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(79,142,247,0.08);
  --shadow-md: 0 4px 24px rgba(79,142,247,0.14);
}

html, body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.app-container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.app-header {
  background: var(--card);
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.header-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
}

.header-badge {
  background: var(--accent);
  color: white;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.2s;
  flex: 1;
  padding: 4px 0;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-item .nav-label {
  font-size: 11px;
  font-weight: 600;
}

.nav-item-sos {
  position: relative;
  top: -10px;
}

.nav-item-sos .nav-icon-sos {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(255,107,107,0.4);
  border: 3px solid white;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-sm {
  padding: 14px;
}

/* ===== SECTION ===== */
.section {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding-bottom: 90px;
}

/* ===== WELCOME/PROFILE CARD ===== */
.profile-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.profile-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
  border: 2px solid rgba(255,255,255,0.3);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-sub {
  font-size: 13px;
  opacity: 0.85;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6BCB77;
  box-shadow: 0 0 0 2px rgba(107,203,119,0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ===== QUICK ACTION GRID ===== */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.quick-btn:active {
  transform: scale(0.97);
}

.quick-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.quick-btn-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.quick-btn-sub {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 400;
}

/* ===== STATUS ROW ===== */
.status-row {
  display: flex;
  gap: 8px;
}

.status-chip {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.status-chip-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.status-chip-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.status-chip-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 13px 24px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(79,142,247,0.35);
}

.btn-primary:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(107,203,119,0.35);
}

.btn-danger {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(255,107,107,0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ===== LOG RECORD BUTTONS ===== */
.log-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.log-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.log-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.log-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.log-section-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.log-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-btn {
  flex: 1;
  min-width: 70px;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.log-btn .log-btn-icon {
  font-size: 20px;
}

.log-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.log-btn.selected-green {
  border-color: var(--secondary);
  background: var(--secondary-light);
  color: #3a9a47;
}

.log-btn.selected-red {
  border-color: var(--accent);
  background: var(--accent-light);
  color: #d94444;
}

.log-btn.selected-yellow {
  border-color: var(--warning);
  background: var(--warning-light);
  color: #b87e20;
}

/* ===== TIMELINE ===== */
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 0 0 20px 0;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.timeline-content {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.timeline-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.timeline-time {
  font-size: 11px;
  color: var(--text-light);
}

.timeline-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.timeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.timeline-chip.green {
  background: var(--secondary-light);
  color: #2d8a3a;
}

.timeline-chip.yellow {
  background: var(--warning-light);
  color: #a06b10;
}

.timeline-chip.red {
  background: var(--accent-light);
  color: #c43a3a;
}

.timeline-comment {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.timeline-comment-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.timeline-comment-input:focus {
  border-color: var(--primary);
  background: white;
}

.timeline-comment-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== WALLET ===== */
.wallet-balance {
  background: linear-gradient(135deg, #9B59B6 0%, #7D3C98 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.wallet-balance::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.wallet-label {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.wallet-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.wallet-sub {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 6px;
}

.wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.wallet-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wallet-action-icon {
  font-size: 18px;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.expense-item:last-child {
  border-bottom: none;
}

.expense-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.expense-info {
  flex: 1;
}

.expense-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.expense-date {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.expense-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.expense-share {
  font-size: 11px;
  color: var(--text-sub);
  text-align: right;
  margin-top: 2px;
}

/* ===== SPLIT SUMMARY ===== */
.split-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.split-member:last-child {
  border-bottom: none;
}

.split-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.split-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.split-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.split-paid {
  color: var(--secondary);
}

.split-pay-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
}

/* ===== AI REPORT ===== */
.report-card {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.report-card::before {
  content: '✨';
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 40px;
  opacity: 0.15;
}

.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}

.report-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.report-sub {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.report-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.report-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.report-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.report-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.report-stat-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.ai-summary {
  background: #F8F9FF;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.progress-bar-wrap {
  margin-bottom: 10px;
}

.progress-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.progress-bar-label {
  font-weight: 600;
  color: var(--text);
}

.progress-bar-val {
  color: var(--text-sub);
}

.progress-bar {
  background: var(--border);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--primary);
  transition: width 0.5s ease;
}

.progress-bar-fill.green {
  background: var(--secondary);
}

.progress-bar-fill.yellow {
  background: var(--warning);
}

/* ===== NOTICE CHIP ===== */
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--warning-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
  margin-bottom: 8px;
}

.notice-item.info {
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.notice-item.success {
  background: var(--secondary-light);
  border-left-color: var(--secondary);
}

.notice-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

/* ===== SOS ===== */
.sos-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.sos-overlay.visible {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sos-modal {
  background: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  max-width: 430px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sos-btn-main {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 20px auto;
  box-shadow: 0 0 0 8px rgba(255,107,107,0.15), 0 0 0 20px rgba(255,107,107,0.07);
  animation: sosPulse 2s ease infinite;
  transition: transform 0.1s;
}

.sos-btn-main:active {
  transform: scale(0.95);
}

@keyframes sosPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255,107,107,0.15), 0 0 0 20px rgba(255,107,107,0.07); }
  50% { box-shadow: 0 0 0 12px rgba(255,107,107,0.2), 0 0 0 28px rgba(255,107,107,0.1); }
}

.sos-btn-icon {
  font-size: 32px;
}

/* ===== TEXT INPUT ===== */
.input-wrap {
  position: relative;
}

.text-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: var(--primary);
}

.text-input.textarea {
  min-height: 90px;
  resize: vertical;
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
  display: block;
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tag-blue { background: var(--primary-light); color: var(--primary-dark); }
.tag-green { background: var(--secondary-light); color: #2d8a3a; }
.tag-red { background: var(--accent-light); color: #c43a3a; }
.tag-yellow { background: var(--warning-light); color: #a06b10; }
.tag-purple { background: var(--purple-light); color: var(--purple); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.modal-overlay.visible {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 0 0 40px;
  width: 100%;
  max-width: 430px;
  animation: slideUp 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1A1A2E;
  color: white;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}

.toast.success { background: #1e7a3a; }
.toast.error { background: #b92a2a; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-sub);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-sub {
  font-size: 14px;
  line-height: 1.6;
}

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f0f2f8 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== ONBOARDING ===== */
.onboard-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(160deg, #EBF2FF 0%, #F5F7FB 60%, #EDFBEF 100%);
}

.onboard-logo {
  font-size: 60px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(79,142,247,0.2));
}

.onboard-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.onboard-slogan {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto 32px;
}

.onboard-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 32px;
}

.onboard-feature {
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  text-align: left;
}

.onboard-feature-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboard-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.onboard-feature-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ===== MISC ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-sub { color: var(--text-sub); }
.font-bold { font-weight: 700; }
.font-heavy { font-weight: 800; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
}

/* ===== RESPONSIVE SAFE ===== */
@media (max-width: 360px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .report-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== SCROLL SMOOTH ===== */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 0; }

/* ===== IMAGE UPLOAD ===== */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.photo-upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.photo-upload-text {
  font-size: 13px;
  color: var(--text-sub);
}

.photo-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.photo-preview-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== VOICE BTN ===== */
.voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--border);
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.voice-btn.recording {
  background: var(--accent);
  color: white;
  animation: sosPulse 1s infinite;
}
