/* OpenPath Modern Design System */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --navy-800: #1e293b;
  --navy-900: #0f172a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--slate-50);
  color: var(--navy-900);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Clean cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-hover:active { transform: scale(0.985); transition: transform 0.15s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
}

.btn-primary {
  background: var(--teal-600);
  color: white;
  padding: 12px 20px;
}
.btn-primary:hover { background: var(--teal-700); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: white;
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
  padding: 12px 20px;
}

.btn-ghost {
  background: transparent;
  color: var(--teal-600);
  padding: 8px 12px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--slate-200);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
}
.nav-item.active { color: var(--teal-600); }
.nav-item i { font-size: 20px; }

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--navy-900);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--teal-600); }
.toast.info { background: var(--navy-800); }

/* Form inputs */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  font-size: 15px;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Safe area */
.pb-safe { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

/* Hide scrollbar */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.badge-teal { background: var(--teal-50); color: var(--teal-700); }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-slate { background: var(--slate-100); color: var(--slate-600); }

/* Smooth page */
main { max-width: 480px; margin: 0 auto; }