/* ─── NextPay Central Dark Glassmorphic Design System ─── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  /* NextPay Classic Color Palette */
  --bg-page: #050811;
  --bg-card: rgba(13, 19, 34, 0.78);
  --bg-card-hover: rgba(20, 29, 50, 0.88);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-header: rgba(5, 8, 17, 0.88);
  
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(0, 255, 102, 0.3);
  --border-glow: rgba(0, 255, 102, 0.2);

  --ink: #f3f4f6;
  --ink-secondary: #e2e8f0;
  --muted: #94a3b8;
  --muted-dark: #64748b;

  --g-primary: #00ff66;
  --g-deep: #00cc52;
  --g-glow: rgba(0, 255, 102, 0.25);

  --gold: #ffd700;
  --gold-deep: #ff8c00;
  --gold-glow: rgba(255, 215, 0, 0.2);

  --red: #ff3b30;
  --red-glow: rgba(255, 59, 48, 0.2);

  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-glow: rgba(59, 130, 246, 0.2);

  --purple: #a855f7;

  --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  --glass-blur: blur(16px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient Glowing Background Orbs */
.blob-1 {
  position: fixed;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.12) 0%, rgba(5, 8, 17, 0) 70%);
  top: -80px;
  right: -80px;
  z-index: 1;
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.blob-2 {
  position: fixed;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(5, 8, 17, 0) 70%);
  bottom: -100px;
  left: -100px;
  z-index: 1;
  pointer-events: none;
  animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 30px) scale(1.1); }
  100% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Screen Wrapper Layout */
.screen {
  width: min(100%, 480px);
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  z-index: 2;
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

/* Sticky App Header Bar */
.app-header, .header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 50;
}

.header-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.header-back {
  color: var(--g-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
  cursor: pointer;
}
.header-back:active {
  transform: scale(0.92);
  background: rgba(0, 255, 102, 0.1);
}
.header-back svg {
  width: 20px;
  height: 20px;
}

/* Sub-Tab Navigation Bar */
.sub-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--border-card);
  background: rgba(5, 8, 17, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 58px;
  z-index: 40;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-item.active {
  color: var(--g-primary);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--g-primary), var(--g-deep));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--g-glow);
}

/* Main Content Container with extra bottom padding for zero overlap */
.content {
  padding: 16px 16px 100px 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Glassmorphic Card Utilities */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.glass-card-interactive {
  cursor: pointer;
}
.glass-card-interactive:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 12px 30px rgba(0, 255, 102, 0.1);
}
.glass-card-interactive:active {
  transform: scale(0.985);
}

/* Floating Customer Support Action Button */
.fab {
  position: fixed;
  bottom: 76px;
  right: calc(50% - 225px);
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-deep) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041209;
  box-shadow: 0 6px 20px var(--g-glow);
  cursor: pointer;
  z-index: 95;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 255, 102, 0.45);
}
.fab:active {
  transform: scale(0.95);
}
.fab svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 480px) {
  .fab {
    right: 14px;
    bottom: 76px;
    width: 44px;
    height: 44px;
  }
}

/* Neon & Action Buttons */
.btn-neon {
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-deep) 100%);
  color: #041209;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--g-glow);
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 102, 0.4);
}
.btn-neon:active {
  transform: scale(0.97);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #2a1b00;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--gold-glow);
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-gold:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-ghost:active {
  transform: scale(0.97);
}

.btn-danger {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--red);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-danger:active {
  background: rgba(255, 59, 48, 0.25);
  transform: scale(0.97);
}

/* Forms & Input Fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  height: 50px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.form-input:focus {
  border-color: var(--g-primary);
  background: rgba(0, 255, 102, 0.03);
  box-shadow: 0 0 12px var(--g-glow);
}

/* Badge Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-success {
  background: rgba(0, 255, 102, 0.12);
  color: var(--g-primary);
  border: 1px solid rgba(0, 255, 102, 0.25);
}
.badge-warning {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.25);
}
.badge-danger {
  background: rgba(255, 59, 48, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 59, 48, 0.25);
}
.badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}



/* Bottom Tab Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: 66px;
  background: rgba(8, 12, 23, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  width: 20%;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-item.active {
  color: var(--g-primary);
  font-weight: 900;
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--g-primary);
  filter: drop-shadow(0 0 6px var(--g-glow));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 32px;
  height: 3px;
  background: var(--g-primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 10px var(--g-glow);
}

/* Modals & Drawers */
.modal-overlay, .drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 13, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: #0b1120;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  padding: 26px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  color: #fff;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--g-primary);
}
