/* ============================================================
   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:        #f8fafc;
  --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;
  /* Phone frame dimensions */
  --phone-w:   390px;
  --phone-h:   844px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; height: 100%; }

/* ── PAGE BODY: dark desktop bg ── */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: #080f1c;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(34,162,138,.13) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(14,51,88,.55) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent, transparent 38px,
      rgba(255,255,255,.013) 38px, rgba(255,255,255,.013) 39px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

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; }

/* ── PHONE FRAME (the outer bezel) ── */
.phone-frame {
  position: relative;
  width: var(--phone-w);
  min-height: var(--phone-h);
  flex-shrink: 0;

  /* Outer bezel */
  background: #1a1a2e;
  border-radius: 52px;
  padding: 14px;

  /* Realistic multi-layer shadow */
  box-shadow:
    0 0 0 1px #2a2a4a,
    0 0 0 3px #111128,
    0 0 0 4px #2a2a4a,
    0 50px 120px rgba(0,0,0,.8),
    0 20px 60px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.5);

  /* Side buttons */
}

/* Power button right */
.phone-frame::before {
  content: '';
  position: absolute;
  right: -4px; top: 140px;
  width: 4px; height: 72px;
  background: linear-gradient(180deg, #2a2a4a, #1a1a2e, #2a2a4a);
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 3px rgba(0,0,0,.5);
}

/* Volume buttons left */
.phone-frame::after {
  content: '';
  position: absolute;
  left: -4px; top: 120px;
  width: 4px; height: 100px;
  background: linear-gradient(180deg,
    #2a2a4a 0%, #2a2a4a 28%,
    transparent 28%, transparent 40%,
    #2a2a4a 40%, #2a2a4a 72%,
    transparent 72%, transparent 80%,
    #2a2a4a 80%, #2a2a4a 100%);
  border-radius: 3px 0 0 3px;
}

/* ── INNER SCREEN (rounded, with notch) ── */
.phone-screen {
  position: relative;
  width: 100%;
  height: var(--phone-h);
  border-radius: 40px;
  overflow: hidden;
  background: var(--navy);

  /* Screen glass sheen */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 2px 8px rgba(0,0,0,.3);
}

/* ── STATUS BAR (9:41, WiFi, Battery) ── */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 0;
  pointer-events: none;
}
.status-time {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-icons svg { width: 16px; height: 16px; }
.battery-icon {
  display: flex;
  align-items: center;
  gap: 2px;
}
.battery-body {
  width: 24px; height: 12px;
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
}
.battery-body::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 5px;
  background: rgba(255,255,255,.8);
  border-radius: 0 1px 1px 0;
}
.battery-fill {
  height: 100%;
  width: 75%;
  background: #22c55e;
  border-radius: 1px;
}

/* ── NOTCH / DYNAMIC ISLAND ── */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #0d0d1a;
  border-radius: 20px;
  z-index: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.notch-camera {
  width: 12px; height: 12px;
  background: #1a1a2e;
  border-radius: 50%;
  border: 1.5px solid #2a2a4a;
  box-shadow: inset 0 0 4px rgba(0,0,0,.8), 0 0 0 1px rgba(80,100,200,.2);
}
.notch-speaker {
  width: 44px; height: 5px;
  background: #1a1a2e;
  border-radius: 3px;
  border: 1px solid #2a2a4a;
}

/* ── SCROLLABLE APP CONTENT inside screen ── */
.app {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  display: flex;
  flex-direction: column;
  background: var(--navy);

  /* Hide scrollbar for cleanliness */
  scrollbar-width: none;
}
.app::-webkit-scrollbar { display: none; }

/* push content below status bar */
.app > *:first-child { padding-top: 44px; }
/* special: topbar already handles padding */
.app > .topbar:first-child { padding-top: 54px; }
.app > .phone-notch-spacer { height: 44px; flex-shrink: 0; }

/* ── TOP APP BAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 13px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.topbar-brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.topbar-brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
  font-family: 'Barlow', sans-serif;
  box-shadow: 0 4px 12px rgba(34,162,138,.4);
  flex-shrink: 0;
}
.topbar-brand-name {
  font-family: 'Barlow', sans-serif;
  font-size: 18px; font-weight: 800;
  color: #fff; letter-spacing: -.3px; line-height: 1;
}
.topbar-brand-name span { color: var(--teal); }
.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: 20px 22px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 60%, var(--navy) 100%);
  flex-shrink: 0;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; 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: 140px; height: 140px; 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(-14px) 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: 10px;
  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-size: 26px; font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 6px;
}
.hero-title .accent { color: var(--teal); }
.hero-sub { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 18px; }

.stats-row { display: flex; gap: 8px; }
.stat {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 10px 6px; text-align: center;
  backdrop-filter: blur(6px);
}
.stat-val { font-size: 15px; font-weight: 800; color: #fff; 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: 0;
  position: relative; z-index: 3;
  flex: 1;
  padding: 24px 16px 100px;
  box-shadow: 0 -6px 30px rgba(10,37,64,.16);
}

/* ── SECTION LABELS ── */
.sec-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.sec-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.sec-header h3 { font-size: 15px; 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: 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.card-sm { padding: 12px; border-radius: var(--radius-sm); }

/* ── FORMS ── */
.field { margin-bottom: 12px; }
.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: 48px; padding: 0 16px 0 42px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #f8fafc; font-size: 14px; 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: 13px; }
.inp-no-ico { padding-left: 14px; }
textarea.inp { height: auto; padding: 12px; resize: vertical; }
select.inp { padding-left: 14px; appearance: none; }

/* ── BUTTONS ── */
.btn {
  width: 100%; height: 50px; 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 6px 24px rgba(10,37,64,.28);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn-teal { background: var(--teal); box-shadow: 0 6px 20px 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 6px 20px rgba(239,68,68,.3); }
.btn-sm { height: 38px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-xs { height: 30px; font-size: 12px; border-radius: 8px; padding: 0 12px; width: auto; }

/* ── 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 (inside phone screen) ── */
.bottom-nav {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
  padding: 8px 0 18px;
  z-index: 200;
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.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: 21px; height: 21px; }
.nav-item.active { color: var(--teal); }
.nav-item.active::before {
  content: '';
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 28px; 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: 8px; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}

/* ── AVATARS ── */
.avatar { border-radius: var(--radius-sm); background: var(--teal); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.avatar-lg { width: 54px; height: 54px; font-size: 20px; }
.avatar-md { width: 42px; height: 42px; font-size: 16px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }

/* ── LIST ITEMS ── */
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--teal); }
.list-item-icon svg { width: 17px; height: 17px; }
.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; }

/* ── DASHBOARD STATS ── */
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dash-stat { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.dash-stat-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 17px; }
.dash-stat-val { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.dash-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }
.dash-stat-trend { font-size: 11px; font-weight: 600; margin-top: 5px; }
.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: 12px;
  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: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search-bar input { flex: 1; height: 44px; border: none; background: transparent; font-size: 14px; color: var(--text); }
.search-bar input::placeholder { color: var(--muted); }

/* ── TOAST ── */
.toast {
  position: absolute; top: 64px; left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--navy); color: #fff;
  padding: 10px 18px; 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: 18px 20px 28px; text-align: center; }
.mini-footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 6px; 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); }

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

/* ── 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(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.anim { animation: fadeInUp .3s ease forwards; }

/* ── RESPONSIVE: real mobile device just uses full screen ── */
@media (max-width: 480px) {
  body { padding: 0; background: var(--navy); display: block; }
  .phone-frame { width: 100%; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
  .phone-frame::before, .phone-frame::after { display: none; }
  .phone-screen { border-radius: 0; height: 100vh; }
  .phone-notch { display: none; }
  .status-bar { display: none; }
  .app { position: relative; height: auto; min-height: 100vh; }
  .app > .topbar:first-child { padding-top: 14px; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; }
}
