/* Pygg Business (pyggbusiness.com.ng) — Modern Fintech Executive Design System */
/* Brand Colors from logo.png: Royal Navy #00357A / #001E4D • Leaf Green #3F8E26 / #49A82C • Coin Gold #D49A2A */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --biz-navy: #00357A;
  --biz-navy-deep: #001B44;
  --biz-navy-mid: #0A2E63;
  --biz-green: #3F8E26;
  --biz-green-bright: #49A82C;
  --biz-gold: #D49A2A;
  --biz-gold-soft: #F7D994;
  --biz-ink: #0B1F3A;
  --biz-muted: #5A6B82;
  --biz-canvas: #F3F6FB;
  --biz-border: rgba(11, 31, 58, 0.09);
}

html, body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: var(--biz-canvas) !important;
  color: var(--biz-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-x pan-y !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  overscroll-behavior-x: none;
  overflow-x: hidden;
}

*, *::before, *::after {
  touch-action: manipulation;
}

/* Prevent iOS Safari automatic focus-zoom on mobile inputs/selects */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace !important;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Ambient Subtle Executive Backdrop */
body.biz-app-body {
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 53, 122, 0.05) 0px, transparent 48%),
    radial-gradient(at 100% 0%, rgba(63, 142, 38, 0.05) 0px, transparent 42%);
  background-attachment: fixed;
}

/* Modern Elevated Card */
.biz-card,
main section.bg-white,
main div.bg-white.rounded-3xl,
main div.bg-white.rounded-2xl {
  background: #FFFFFF;
  border: 1px solid var(--biz-border) !important;
  box-shadow: 0 1px 2px rgba(0, 27, 68, 0.04), 0 10px 28px -16px rgba(0, 27, 68, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.biz-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--biz-border);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0, 27, 68, 0.03), 0 8px 20px -14px rgba(0, 27, 68, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.biz-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 53, 122, 0.2);
  box-shadow: 0 4px 12px rgba(0, 27, 68, 0.06), 0 14px 28px -14px rgba(0, 27, 68, 0.16);
}

/* Executive Mesh Hero */
.biz-hero-mesh {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(73, 168, 44, 0.34) 0%, transparent 45%),
    radial-gradient(circle at 12% 90%, rgba(212, 154, 42, 0.22) 0%, transparent 42%),
    linear-gradient(135deg, #001B44 0%, #00357A 58%, #0E4D3B 100%);
  box-shadow: 0 20px 45px -24px rgba(0, 27, 68, 0.55);
}
.biz-hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Frosted Glass Action Tile */
.biz-glass-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.biz-glass-tile:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

/* Frosted Sticky Top Bar */
#bizHeader {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08) !important;
}

/* Refined Sidebar Nav Item */
.biz-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
  transition: all 0.16s ease;
}
.biz-nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}
.biz-nav-link.is-active {
  background: linear-gradient(90deg, rgba(73, 168, 44, 0.95) 0%, rgba(63, 142, 38, 0.88) 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(73, 168, 44, 0.85);
}

/* Modern Inputs & Selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--biz-navy) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px rgba(0, 53, 122, 0.13) !important;
}

/* Primary Buttons Micro-Interaction */
button[type="submit"],
.biz-btn-primary {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
button[type="submit"]:hover:not(:disabled),
.biz-btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(0, 53, 122, 0.55);
}
button[type="submit"]:active:not(:disabled),
.biz-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Live Pulse Dot */
@keyframes bizPulse {
  0% { box-shadow: 0 0 0 0 rgba(73, 168, 44, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(73, 168, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(73, 168, 44, 0); }
}
.biz-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--biz-green-bright);
  display: inline-block;
  animation: bizPulse 2s infinite;
}

/* Page Entrance Animation */
@keyframes bizFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
main {
  animation: bizFadeUp 0.28s ease-out;
}

/* Floating Mobile Bottom Nav */
#bizMobileNav {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 28px -12px rgba(0, 27, 68, 0.12);
}

/* Custom Subtle Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(11, 31, 58, 0.16); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(11, 31, 58, 0.3); }
