/* ============================================================
   YOUVBIZZ MOBILE APP — SHARED STYLES
   Theme: Navy #0a2540 | Teal #22a28a | Font: Barlow + Inter
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:     #0a2540;
  --navy2:    #0e3358;
  --navy3:    #163D6E;
  --teal:     #22a28a;
  --teal2:    #26C6A9;
  --teal-dim: rgba(34,162,138,.15);
  --white:    #ffffff;
  --bg:       #0a2540;
  --card:     #ffffff;
  --border:   #e2e8f0;
  --text:     #1f2937;
  --muted:    #6B7280;
  --danger:   #ef4444;
  --success:  #22c55e;
  --warning:  #f59e0b;
  --transition: all .22s ease;
  --shadow-sm: 0 2px 8px rgba(10,37,64,.07);
  --shadow:    0 4px 20px rgba(10,37,64,.10);
  --shadow-lg: 0 8px 32px rgba(10,37,64,.16);
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Barlow', sans-serif; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Inter', sans-serif; cursor: pointer; border: none; outline: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: 'Inter', sans-serif; outline: none; }

/* ── App Shell ── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ── Top App Bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-logo { height: 28px; filter: brightness(0) invert(1); }
.topbar-title { font-family: 'Barlow', sans-serif; font-size: 17px; font-weight: 700; color: #fff; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.topbar-icon-btn:hover { background: rgba(34,162,138,.2); color: var(--teal); }
.topbar-icon-btn svg { width: 17px; height: 17px; }
.back-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: var(--transition);
}
.back-btn:hover { background: var(--teal-dim); }
.back-btn svg { width: 18px; height: 18px; }

/* ── Hero Splash ── */
.hero {
  padding: 24px 22px 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 60%, var(--navy) 100%);
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,162,138,.22) 0%, transparent 68%);
  pointer-events: none; animation: orbFloat 9s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; bottom: -20px; left: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,162,138,.12) 0%, transparent 65%);
  pointer-events: none; animation: orbFloat 12s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}
.hero-inner { position: relative; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,162,138,.15);
  border: 1px solid rgba(34,162,138,.3);
  border-radius: 20px; padding: 5px 13px;
  margin-bottom: 12px;
  font-size: 11px; font-weight: 600; color: var(--teal); letter-spacing: .4px;
}
.badge-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

.hero-title {
  font-family: 'Barlow', sans-serif;
  font-size: 28px; font-weight: 800; color: #fff;
  line-height: 1.18; margin-bottom: 8px;
}
.hero-title .accent { color: var(--teal); }
.hero-sub {
  font-size: 13px; color: rgba(255,255,255,.5);
  line-height: 1.6; margin-bottom: 20px; max-width: 300px;
}

/* Stats Row */
.stats-row { display: flex; gap: 10px; }
.stat {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 11px 8px; text-align: center;
  backdrop-filter: blur(6px);
}
.stat-val { font-size: 16px; font-weight: 800; color: #fff; font-family: 'Barlow', sans-serif; line-height: 1; }
.stat-lbl { font-size: 9px; color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }

/* ── White Sheet ── */
.sheet {
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  margin-top: -28px;
  position: relative; z-index: 3;
  flex: 1;
  padding: 26px 18px 100px;
  box-shadow: 0 -8px 40px rgba(10,37,64,.18);
}

/* ── Section Label ── */
.sec-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.sec-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sec-header h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.sec-header a { font-size: 12px; font-weight: 600; color: var(--teal); }

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card-sm { padding: 14px; border-radius: var(--radius-sm); }

/* ── Form ── */
.field { margin-bottom: 14px; }
.lbl {
  display: block; font-size: 11px; font-weight: 700; color: #374151;
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .2px;
}
.inp-wrap { position: relative; }
.inp-ico {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); pointer-events: none; color: var(--muted);
}
.inp-ico svg { width: 16px; height: 16px; }
.inp {
  width: 100%; height: 50px; padding: 0 16px 0 44px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #f8fafc; font-size: 15px; color: var(--text);
  transition: var(--transition);
}
.inp:focus {
  border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(34,162,138,.11);
}
.inp::placeholder { color: #b0b9c6; font-size: 14px; }
.inp-no-ico { padding-left: 16px; }
textarea.inp { height: auto; padding: 14px; resize: vertical; }
select.inp { padding-left: 16px; appearance: none; }

/* ── Button ── */
.btn {
  width: 100%; height: 52px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; color: #fff;
  font-family: 'Barlow', sans-serif; letter-spacing: .3px;
  background: var(--navy);
  box-shadow: 0 8px 28px rgba(10,37,64,.28);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn:hover { background: var(--navy3); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-teal { background: var(--teal); box-shadow: 0 8px 24px rgba(34,162,138,.35); }
.btn-teal:hover { background: var(--teal2); }
.btn-outline {
  background: transparent; border: 2px solid var(--teal); color: var(--teal);
  box-shadow: none;
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-danger { background: var(--danger); box-shadow: 0 8px 24px rgba(239,68,68,.3); }
.btn-sm { height: 40px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-xs { height: 32px; font-size: 12px; border-radius: 8px; padding: 0 14px; width: auto; }

/* ── Tags / Pills ── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.pill-teal { background: rgba(34,162,138,.12); color: var(--teal); }
.pill-navy { background: rgba(10,37,64,.1); color: var(--navy); }
.pill-green { background: #dcfce7; color: #16a34a; }
.pill-yellow { background: #fef9c3; color: #a16207; }
.pill-red { background: #fee2e2; color: #dc2626; }
.pill-gray { background: #f3f4f6; color: #6b7280; }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
  padding: 8px 0 20px;
  z-index: 200;
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 4px 0;
  color: rgba(255,255,255,.35);
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
  transition: var(--transition);
  position: relative;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--teal); }
.nav-item.active::before {
  content: '';
  position: absolute; top: -9px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--teal);
  border-radius: 0 0 4px 4px;
}
.nav-badge {
  position: absolute; top: 0; right: calc(50% - 14px);
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}

/* ── Avatar ── */
.avatar {
  border-radius: var(--radius-sm);
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: 'Barlow', sans-serif;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-md { width: 44px; height: 44px; font-size: 17px; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── List Items ── */
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--teal);
}
.list-item-icon svg { width: 18px; height: 18px; }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 12px; color: var(--muted); }
.list-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

/* ── Stat Cards Dashboard ── */
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.dash-stat {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.dash-stat-ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; font-size: 18px;
}
.dash-stat-val { font-size: 24px; font-weight: 800; color: var(--navy); font-family: 'Barlow', sans-serif; line-height: 1; }
.dash-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }
.dash-stat-trend { font-size: 11px; font-weight: 600; margin-top: 6px; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* ── Search Bar ── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  margin-bottom: 14px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34,162,138,.1); }
.search-bar svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; height: 46px; border: none; background: transparent;
  font-size: 14px; color: var(--text);
}
.search-bar input::placeholder { color: var(--muted); }

/* ── Toast ── */
.toast {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: all .3s ease;
  pointer-events: none; z-index: 999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Mini Footer ── */
.mini-footer {
  background: var(--navy); padding: 20px 20px 32px;
  text-align: center; margin-top: auto;
}
.mini-footer-links {
  display: flex; justify-content: center; gap: 18px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.mini-footer-links a { font-size: 11px; color: rgba(255,255,255,.35); }
.mini-footer-links a:hover { color: var(--teal); }
.mini-footer p { font-size: 11px; color: rgba(255,255,255,.22); }

/* ── Utility ── */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.anim { animation: fadeInUp .3s ease forwards; }
