/* Lùkè iOS App Mock — Shared Styles */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --accent: #1F4D3A;
  --accent-soft: #E8EFEB;
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F9F9FB;
  --ink-1: #0A0A0A;
  --ink-2: #4A4A4F;
  --ink-3: #8E8E93;
  --ink-4: #C7C7CC;
  --divider: #E5E5EA;
  --warn: #D97706;
  --pro-gold: #B8860B;
  --r-card: 14px;
  --r-row: 12px;
  --r-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", sans-serif;
}

html, body {
  font-family: var(--font);
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11";
}

body.screen-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* iOS-like status bar */
.status-bar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
}
.status-bar .right { display: flex; gap: 6px; align-items: center; font-size: 13px; }

/* Nav bar */
.nav {
  padding: 8px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.nav-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-1);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 17px;
  text-decoration: none;
  font-weight: 400;
}
.nav-actions { display: flex; gap: 14px; align-items: center; }
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink-1);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Large title (iOS) */
.large-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.022em;
  padding: 4px 16px 8px;
  color: var(--ink-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}
.subtitle-row {
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.005em;
}

/* Section header */
.section-header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 22px 16px 8px;
}

/* List card group */
.list-group {
  background: var(--surface);
  margin: 0 16px 8px;
  border-radius: var(--r-card);
  overflow: hidden;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 0.5px solid var(--divider);
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row:active { background: var(--surface-2); }
.list-row .lr-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
}
.list-row .lr-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.list-row .lr-body { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 16px; color: var(--ink-1); }
.list-row .lr-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.list-row .lr-trail { color: var(--ink-3); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.list-row .chevron { color: var(--ink-4); font-size: 20px; line-height: 1; }

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-gold { background: #FFF6E5; color: var(--pro-gold); }
.pill-gray { background: #ECECEF; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { opacity: 0.85; }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-block { display: flex; width: 100%; }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 16px;
  margin: 0 16px 12px;
}

/* Toggle */
.toggle {
  width: 51px; height: 31px;
  background: var(--ink-4);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 200ms;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 27px; height: 27px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle.on { background: #34C759; }
.toggle.on::after { transform: translateX(20px); }

/* Sample data placeholders */
.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Utility */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.muted { color: var(--ink-3); }
.spacer-12 { height: 12px; }
.spacer-24 { height: 24px; }

/* Progress bar */
.progress {
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  overflow: hidden;
}
.progress > .bar { height: 100%; background: var(--accent); }

/* Bottom Tab Bar (iOS style) */
.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 84px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--divider);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 24px 30px;
  z-index: 50;
}
.tab-bar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  text-decoration: none;
  color: var(--ink-3);
}
.tab-bar .tab svg {
  width: 26px; height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.tab-bar .tab.active { color: var(--accent); }
.tab-bar .tab .tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.tab-bar .tab-fab {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31,77,58,0.32);
  margin-top: -10px;
}
.tab-bar .tab-fab svg {
  width: 26px; height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
}
.tab-bar .tab-fab:active { transform: scale(0.96); }

/* Page padding bottom when tab bar visible */
body.has-tab-bar { padding-bottom: 100px; }

/* FAB action sheet */
.fab-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 100;
  display: none;
  align-items: flex-end;
}
.fab-sheet-backdrop.show { display: flex; }
.fab-sheet {
  width: 100%;
  background: #F2F2F7;
  border-radius: 16px 16px 0 0;
  padding: 8px 0 24px;
  animation: fabSlide 240ms ease-out;
}
@keyframes fabSlide { from { transform: translateY(40px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.fab-sheet .fs-handle {
  width: 36px; height: 5px;
  background: var(--ink-4);
  border-radius: 999px;
  margin: 8px auto 12px;
}
.fab-sheet-list {
  background: var(--surface);
  margin: 0 12px 12px;
  border-radius: var(--r-card);
  overflow: hidden;
}
.fab-sheet-list .fs-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-bottom: 0.5px solid var(--divider);
  cursor: pointer;
}
.fab-sheet-list .fs-row:last-child { border-bottom: 0; }
.fab-sheet-list .fs-row .fs-ico {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fab-sheet-list .fs-row .fs-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fab-sheet-list .fs-row .fs-body { flex: 1; }
.fab-sheet-list .fs-row .fs-title { font-size: 16px; color: var(--ink-1); font-weight: 500; }
.fab-sheet-list .fs-row .fs-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fab-sheet-cancel {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px;
  padding: 16px;
  background: var(--surface);
  border: 0;
  border-radius: var(--r-card);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
