/**
 * Jpmurugan Master Visual Design System
 * File: assets/css/jpmurugan-theme.css
 * Brand: Jpmurugan | Theme: Clean Premium White Background Theme
 */

:root {
  /* Global Pure White Base Background (STRICTLY LOCKED) */
  --jp-bg-dark: #FFFFFF;
  --jp-bg: #FFFFFF;
  --jp-bg-page: #FFFFFF;
  --jp-bg-radial: #FFFFFF;

  /* Premium Crisp White Surfaces & Glass */
  --jp-surface: #FFFFFF;
  --jp-surface-card: #FFFFFF;
  --jp-surface-card-glass: rgba(255, 255, 255, 0.98);
  --jp-surface-elevated: #F8FAFC;
  --jp-surface-hover: #F1F5F9;

  /* High-Contrast Brand Accents */
  --jp-primary: #2563eb;
  --jp-cyan: #0284c7;
  --jp-cyan-glow: rgba(2, 132, 199, 0.18);
  --jp-blue: #2563eb;
  --jp-blue-dark: #1d4ed8;
  --jp-green: #059669;
  --jp-green-glow: rgba(5, 150, 105, 0.18);
  --jp-gold: #d97706;
  --jp-gold-amber: #b45309;
  --jp-gold-glow: rgba(217, 119, 6, 0.22);
  --jp-purple: #7c3aed;
  --jp-purple-dark: #6d28d9;
  --jp-red: #dc2626;
  --jp-red-glow: rgba(220, 38, 38, 0.18);

  /* Deep High-Contrast Typography for Pure White Background */
  --jp-text: #1E293B;
  --jp-text-main: #1E293B;
  --jp-text-heading: #0F172A;
  --jp-text-muted: #475569;
  --jp-text-dim: #64748B;

  /* Crisp, Distinct Borders & Dividers */
  --jp-border: #E2E8F0;
  --jp-border-bright: #CBD5E1;
  --jp-border-gold: rgba(217, 119, 6, 0.35);
  --jp-border-cyan: rgba(2, 132, 199, 0.35);

  /* Border Radii */
  --jp-radius-card: 18px;
  --jp-radius-sm: 12px;
  --jp-radius-xs: 8px;
  --jp-radius-pill: 999px;

  /* Layered Depth Shadows for Standout Separation on White */
  --jp-shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
  --jp-shadow-elevated: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9);
  --jp-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
  --jp-shadow-gold: 0 4px 16px rgba(217, 119, 6, 0.32);

  --jp-font-main: 'Saira', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --jp-shell-width: 480px;
  --jp-nav-height: 72px;

  /* Legacy Backward-Compatibility Aliases */
  --accent-cyan: #0284c7;
  --primary-royal: #2563eb;
  --border-glass: #E2E8F0;
  --text-muted: #475569;
  --shadow-md: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 6px 18px -2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
}

/* ==========================================================================
   01. GLOBAL RESET & BASE SHELL
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: var(--jp-text);
  font-family: var(--jp-font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Mobile Shell Layout */
.jp-app-shell {
  width: 100%;
  max-width: var(--jp-shell-width);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background-color: #FFFFFF !important;
  padding-bottom: 96px; /* safe area for bottom nav */
  overflow-x: hidden;
}

.jp-app-shell.no-nav {
  padding-bottom: 30px;
}

.jp-gutter {
  padding-left: 16px;
  padding-right: 16px;
}

/* Disable old ambient dark glow */
.jp-app-shell::before {
  display: none !important;
}

/* ==========================================================================
   02. TOP APP HEADER
   ========================================================================== */

.jp-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 16px;
  background: linear-gradient(110deg, #DBEAFE 0%, #EDE9FE 50%, #E0F2FE 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid #BFDBFE !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.jp-top-bar .jp-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FFFFFF !important;
  border: 1.5px solid #BFDBFE !important;
  color: #1E3A8A !important;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
  transition: all 0.25s ease;
}

.jp-top-bar .jp-back-btn:hover {
  background: #EFF6FF !important;
  border-color: #93C5FD !important;
  color: var(--jp-primary) !important;
  transform: translateX(-2px);
}

.jp-top-bar .jp-bar-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0F172A !important;
  margin: 0;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}

.jp-top-bar .jp-bar-action {
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.jp-top-bar .jp-bar-action a {
  color: #1E3A8A !important;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.jp-top-bar .jp-bar-action a:hover {
  transform: scale(1.1);
  color: var(--jp-primary) !important;
}

/* ==========================================================================
   03. CARD SYSTEM
   ========================================================================== */

.jp-card {
  background: linear-gradient(145deg, #F8FAFC 0%, #EFF6FF 100%) !important;
  border: 1.5px solid #BFDBFE !important;
  border-radius: var(--jp-radius-card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(191, 219, 254, 0.8) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jp-card:hover {
  border-color: #93C5FD !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14) !important;
  transform: translateY(-2px);
}

.jp-card-compact {
  padding: 14px 16px;
}

.jp-card-glow-cyan {
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  border-top: 4px solid #2563EB !important;
  border-color: #93C5FD !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(147, 197, 253, 0.8) !important;
}

.jp-card-glow-gold {
  background: linear-gradient(145deg, #FFFDF5 0%, #FEF3C7 100%) !important;
  border-top: 4px solid #D97706 !important;
  border-color: #FCD34D !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.12), 0 0 0 1px rgba(252, 211, 77, 0.8) !important;
}

.jp-card-glow-purple {
  background: linear-gradient(145deg, #FAF5FF 0%, #EDE9FE 100%) !important;
  border-top: 4px solid #7C3AED !important;
  border-color: #C4B5FD !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(196, 181, 253, 0.8) !important;
}

.jp-card-glow-green {
  background: linear-gradient(145deg, #F0FDF4 0%, #D1FAE5 100%) !important;
  border-top: 4px solid #059669 !important;
  border-color: #6EE7B7 !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12), 0 0 0 1px rgba(110, 231, 183, 0.8) !important;
}

.jp-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A !important;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jp-card-subtitle {
  font-size: 13px;
  color: #475569 !important;
  margin-top: -6px;
  margin-bottom: 14px;
  font-weight: 500;
}

/* ==========================================================================
   04. FORM CONTROLS
   ========================================================================== */

.jp-form-group {
  margin-bottom: 18px;
  position: relative;
}

.jp-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B !important;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.jp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jp-input-icon {
  position: absolute;
  left: 16px;
  color: #2563EB;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.jp-form-control {
  width: 100%;
  height: 48px;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: var(--jp-radius-sm) !important;
  padding: 0 16px;
  color: #0F172A !important;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--jp-font-main);
  transition: all 0.25s ease;
  outline: none;
}

.jp-input-wrap .jp-form-control {
  padding-left: 46px;
}

.jp-input-wrap .jp-input-addon-right {
  position: absolute;
  right: 14px;
  color: #475569;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
}

.jp-form-control:focus {
  border-color: #2563EB !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.jp-form-control::placeholder {
  color: #64748B !important;
  font-size: 14px;
  font-weight: 400;
}

select.jp-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23475569' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 20px !important;
  padding-right: 40px !important;
}

/* ==========================================================================
   05. BUTTON SYSTEM
   ========================================================================== */

.jp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--jp-font-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 12px 22px;
  border-radius: var(--jp-radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.jp-btn-block {
  display: flex;
  width: 100%;
}

.jp-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--jp-radius-sm);
}

.jp-btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

.jp-btn-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #B45309 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
  color: #FFFFFF !important;
  text-decoration: none;
}

.jp-btn-cyan, .jp-btn-blue {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.jp-btn-cyan:hover, .jp-btn-blue:hover {
  background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  color: #FFFFFF !important;
  text-decoration: none;
}

.jp-btn-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.35);
}

.jp-btn-purple:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.45);
  color: #FFFFFF !important;
  text-decoration: none;
}

.jp-btn-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.jp-btn-green:hover {
  background: linear-gradient(135deg, #34D399 0%, #047857 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.45);
  color: #FFFFFF !important;
  text-decoration: none;
}

.jp-btn-outline {
  background: #FFFFFF !important;
  border: 1.5px solid var(--jp-primary) !important;
  color: var(--jp-primary) !important;
  font-weight: 700;
}

.jp-btn-outline:hover {
  background: #EFF6FF !important;
  border-color: var(--jp-blue-dark) !important;
  color: var(--jp-blue-dark) !important;
  text-decoration: none;
}

.jp-btn:disabled, .jp-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   06. BADGES & STATUS PILLS
   ========================================================================== */

.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--jp-radius-pill);
}

.jp-badge-green {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border: 1px solid #A7F3D0 !important;
}

.jp-badge-cyan, .jp-badge-blue {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border: 1px solid #BFDBFE !important;
}

.jp-badge-gold {
  background: #FFFBEB !important;
  color: #B45309 !important;
  border: 1px solid #FDE68A !important;
}

.jp-badge-purple {
  background: #F5F3FF !important;
  color: #6D28D9 !important;
  border: 1px solid #DDD6FE !important;
}

.jp-badge-red {
  background: #FEF2F2 !important;
  color: #B91C1C !important;
  border: 1px solid #FECACA !important;
}

/* ==========================================================================
   07. STAT GRIDS & ACTION TILES
   ========================================================================== */

.jp-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.jp-stat-card {
  border-radius: var(--jp-radius-sm);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jp-stat-card:hover {
  transform: translateY(-2px);
}

.jp-stat-grid > .jp-stat-card:nth-child(1),
.jp-stat-card:has(.gold),
.jp-stat-card.gold-theme {
  background: linear-gradient(145deg, #FFFDF5 0%, #FEF3C7 100%) !important;
  border: 1.5px solid #FCD34D !important;
  border-left: 4px solid #D97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12), 0 0 0 1px rgba(252, 211, 77, 0.6) !important;
}
.jp-stat-grid > .jp-stat-card:nth-child(1):hover,
.jp-stat-card:has(.gold):hover,
.jp-stat-card.gold-theme:hover {
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.22) !important;
}

.jp-stat-grid > .jp-stat-card:nth-child(2),
.jp-stat-card:has(.green),
.jp-stat-card.green-theme {
  background: linear-gradient(145deg, #F0FDF4 0%, #D1FAE5 100%) !important;
  border: 1.5px solid #6EE7B7 !important;
  border-left: 4px solid #059669 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12), 0 0 0 1px rgba(110, 231, 183, 0.6) !important;
}
.jp-stat-grid > .jp-stat-card:nth-child(2):hover,
.jp-stat-card:has(.green):hover,
.jp-stat-card.green-theme:hover {
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.22) !important;
}

.jp-stat-grid > .jp-stat-card:nth-child(3),
.jp-stat-card:has(.cyan),
.jp-stat-card.cyan-theme {
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  border: 1.5px solid #93C5FD !important;
  border-left: 4px solid #2563EB !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(147, 197, 253, 0.6) !important;
}
.jp-stat-grid > .jp-stat-card:nth-child(3):hover,
.jp-stat-card:has(.cyan):hover,
.jp-stat-card.cyan-theme:hover {
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22) !important;
}

.jp-stat-grid > .jp-stat-card:nth-child(4),
.jp-stat-card:has(.purple),
.jp-stat-card.purple-theme {
  background: linear-gradient(145deg, #FAF5FF 0%, #EDE9FE 100%) !important;
  border: 1.5px solid #C4B5FD !important;
  border-left: 4px solid #7C3AED !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(196, 181, 253, 0.6) !important;
}
.jp-stat-grid > .jp-stat-card:nth-child(4):hover,
.jp-stat-card:has(.purple):hover,
.jp-stat-card.purple-theme:hover {
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.22) !important;
}

.jp-stat-label {
  font-size: 11.5px;
  color: #475569 !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  font-weight: 700;
}

.jp-stat-value {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.jp-stat-value.cyan { color: #1E3A8A !important; }
.jp-stat-value.gold { color: #78350F !important; }
.jp-stat-value.green { color: #064E3B !important; }
.jp-stat-value.purple { color: #4C1D95 !important; }

/* Quick Action Tiles */
.jp-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.jp-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  border-radius: var(--jp-radius-sm);
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.jp-action-tile:hover {
  transform: translateY(-2px);
}

.jp-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jp-action-tile:hover .jp-action-icon {
  transform: scale(1.12);
}

/* 1. Cyan/Blue Tile */
.jp-action-tile:nth-child(1),
.jp-action-tile:has(.cyan) {
  background: #DBEAFE !important;
  border: 1.5px solid #93C5FD !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14) !important;
}
.jp-action-tile:nth-child(1):hover,
.jp-action-tile:has(.cyan):hover {
  background: #BFDBFE !important;
  border-color: #60A5FA !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.24) !important;
}
.jp-action-tile:nth-child(1) .jp-action-label,
.jp-action-tile:has(.cyan) .jp-action-label {
  color: #1E3A8A !important;
}

/* 2. Green Tile */
.jp-action-tile:nth-child(2),
.jp-action-tile:has(.green) {
  background: #D1FAE5 !important;
  border: 1.5px solid #6EE7B7 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.14) !important;
}
.jp-action-tile:nth-child(2):hover,
.jp-action-tile:has(.green):hover {
  background: #A7F3D0 !important;
  border-color: #34D399 !important;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.24) !important;
}
.jp-action-tile:nth-child(2) .jp-action-label,
.jp-action-tile:has(.green) .jp-action-label {
  color: #064E3B !important;
}

/* 3. Gold Tile */
.jp-action-tile:nth-child(3),
.jp-action-tile:has(.gold) {
  background: #FEF3C7 !important;
  border: 1.5px solid #FCD34D !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.14) !important;
}
.jp-action-tile:nth-child(3):hover,
.jp-action-tile:has(.gold):hover {
  background: #FDE68A !important;
  border-color: #F59E0B !important;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.24) !important;
}
.jp-action-tile:nth-child(3) .jp-action-label,
.jp-action-tile:has(.gold) .jp-action-label {
  color: #78350F !important;
}

/* 4. Purple Tile */
.jp-action-tile:nth-child(4),
.jp-action-tile:has(.purple) {
  background: #EDE9FE !important;
  border: 1.5px solid #C4B5FD !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.14) !important;
}
.jp-action-tile:nth-child(4):hover,
.jp-action-tile:has(.purple):hover {
  background: #DDD6FE !important;
  border-color: #A78BFA !important;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.24) !important;
}
.jp-action-tile:nth-child(4) .jp-action-label,
.jp-action-tile:has(.purple) .jp-action-label {
  color: #4C1D95 !important;
}

.jp-action-icon.cyan {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35) !important;
  border: none !important;
}

.jp-action-icon.gold {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35) !important;
  border: none !important;
}

.jp-action-icon.purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35) !important;
  border: none !important;
}

.jp-action-icon.green {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35) !important;
  border: none !important;
}

.jp-action-label {
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   08. TABS & SEGMENT CONTROLS
   ========================================================================== */

.jp-tabs {
  display: flex;
  background: #F1F5F9 !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: var(--jp-radius-pill);
  padding: 4px;
  margin-bottom: 18px;
}

.jp-tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 14px;
  border-radius: var(--jp-radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--jp-text-muted) !important;
  text-decoration: none !important;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.jp-tab-btn.active {
  background: #FFFFFF !important;
  color: var(--jp-primary) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

/* ==========================================================================
   09. TABLE SYSTEM
   ========================================================================== */

.jp-table-wrapper {
  background: #FFFFFF !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: var(--jp-radius-card);
  overflow: hidden;
  box-shadow: var(--jp-shadow-card) !important;
}

.jp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  color: #1F2937 !important;
  font-size: 13px;
}

.jp-table th {
  background: #F8FAFC !important;
  padding: 12px 14px;
  font-weight: 700;
  color: #475569 !important;
  border-bottom: 1px solid var(--jp-border) !important;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.jp-table td {
  padding: 14px;
  border-bottom: 1px solid #F1F5F9 !important;
  vertical-align: middle;
  color: #1F2937 !important;
}

.jp-table tr:last-child td {
  border-bottom: none !important;
}

.jp-table tr:hover td {
  background: #F8FAFC !important;
}

/* ==========================================================================
   10. MODALS, POPUPS & RECEIPT DRILLDOWNS
   ========================================================================== */

.jp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.jp-modal-backdrop.active {
  display: flex;
}

.jp-modal-content {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: var(--jp-radius-card);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25) !important;
  color: #1F2937 !important;
  overflow: hidden;
  animation: jpModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes jpModalPop {
  from { opacity: 0; transform: scale(0.94) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.jp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--jp-border) !important;
}

.jp-modal-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: #111827 !important;
  margin: 0;
}

.jp-modal-close {
  background: transparent;
  border: none;
  color: var(--jp-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.jp-modal-close:hover {
  color: #111827 !important;
}

.jp-modal-body {
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
  color: #1F2937 !important;
}

.jp-modal-footer {
  padding: 14px 20px;
  background: #F8FAFC !important;
  border-top: 1px solid var(--jp-border) !important;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Detail Row in modals & summaries */
.jp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F1F5F9 !important;
  font-size: 13px;
}

.jp-detail-row:last-child {
  border-bottom: none !important;
}

.jp-detail-label {
  color: var(--jp-text-muted) !important;
  font-weight: 500;
}

.jp-detail-value {
  color: #111827 !important;
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

/* ==========================================================================
   11. SWEETALERT2 STYLING HARMONIZATION FOR WHITE THEME
   ========================================================================== */

.swal2-popup {
  background: #FFFFFF !important;
  color: #1F2937 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
  border: 1px solid #E2E8F0 !important;
}

.swal2-title {
  color: #111827 !important;
}

.swal2-html-container {
  color: #4B5563 !important;
}

/* ==========================================================================
   12. RESPONSIVE POLISH & DESKTOP SHELL
   ========================================================================== */

@media (max-width: 360px) {
  .jp-gutter {
    padding-left: 12px;
    padding-right: 12px;
  }
  .jp-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .jp-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (min-width: 600px) {
  body {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }

  .jp-app-shell {
    border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.05);
  }
}

/* ==========================================================================
   13. MODULE 6: EVNEXT PAYMENT NOTICE BANNER (UNIVERSAL HIGH-CONTRAST)
   ========================================================================== */
.jp-evnext-banner {
  background: linear-gradient(135deg, #F0F9FF 0%, #EFF6FF 50%, #FFF5F5 100%) !important;
  border: 1.5px solid #BAE6FD !important;
  border-left: 4.5px solid #0284C7 !important;
  border-right: 4.5px solid #EF4444 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin: 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  text-align: left !important;
}

.jp-evnext-badge-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  padding-right: 14px !important;
  border-right: 1.5px dashed #93C5FD !important;
  flex-shrink: 0 !important;
}

.jp-evnext-logo-img {
  max-height: 28px !important;
  max-width: 80px !important;
  object-fit: contain !important;
  margin-bottom: 4px !important;
}

.jp-evnext-wordmark {
  background: #FFFFFF !important;
  border: 1.5px solid #BAE6FD !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  display: inline-block !important;
}

.jp-evnext-wordmark .evnext-blue {
  color: #0284C7 !important;
  font-weight: 900 !important;
}

.jp-evnext-wordmark .evnext-red {
  color: #EF4444 !important;
  font-weight: 900 !important;
}

.jp-evnext-tag {
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #0369A1 !important;
  background: #E0F2FE !important;
  border: 1px solid #BAE6FD !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.jp-evnext-text-col {
  flex: 1 !important;
}

.jp-evnext-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  letter-spacing: 0.2px !important;
}

.jp-evnext-title i {
  color: #0284C7 !important;
  font-size: 15px !important;
}

.jp-evnext-desc {
  font-size: 12.5px !important;
  color: #1E293B !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

.jp-evnext-desc strong {
  color: #0F172A !important;
  font-weight: 800 !important;
}

@media (max-width: 480px) {
  .jp-evnext-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .jp-evnext-badge-col {
    flex-direction: row !important;
    gap: 10px !important;
    border-right: none !important;
    border-bottom: 1.5px dashed #93C5FD !important;
    padding-bottom: 8px !important;
    padding-right: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* ==========================================================================
   14. UNIFIED ATTRACTIVE HEADER SYSTEM (.jp-top-bar & .appHeader1 / .appHeader)
   ========================================================================== */
.jp-top-bar,
.appHeader1,
.appHeader {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 58px !important;
  padding: 0 16px !important;
  background: linear-gradient(110deg, #DBEAFE 0%, #EDE9FE 50%, #E0F2FE 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 2px solid #93C5FD !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.12) !important;
  width: 100% !important;
}

.jp-top-bar .jp-bar-title,
.appHeader1 .pageTitle,
.appHeader .pageTitle {
  font-size: 17.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  color: #0F172A !important;
  margin: 0 !important;
  text-align: center !important;
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0 10px !important;
  line-height: normal !important;
}

.jp-top-bar .jp-back-btn,
.appHeader1 .left .icon,
.appHeader1 .goBack,
.appHeader .left .icon,
.appHeader .goBack {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #93C5FD !important;
  color: #1D4ED8 !important;
  text-decoration: none !important;
  font-size: 16px !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.14) !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.jp-top-bar .jp-back-btn:hover,
.appHeader1 .left .icon:hover,
.appHeader1 .goBack:hover,
.appHeader .left .icon:hover,
.appHeader .goBack:hover {
  background: #EFF6FF !important;
  border-color: #60A5FA !important;
  color: #1E40AF !important;
  transform: translateX(-2px) !important;
}

.appHeader1 .left .icon i,
.appHeader1 .goBack i,
.appHeader .left .icon i,
.appHeader .goBack i {
  color: #1D4ED8 !important;
  font-size: 15px !important;
}

.appHeader1 .goBack i.ion-md-arrow-back::before,
.appHeader .goBack i.ion-md-arrow-back::before,
.appHeader1 .left .icon i.ion-md-arrow-back::before,
.appHeader .left .icon i.ion-md-arrow-back::before {
  content: "\f053" !important;
  font-family: FontAwesome !important;
  font-style: normal !important;
  font-weight: normal !important;
}

.appHeader1 .left,
.appHeader .left {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: auto !important;
  min-width: 38px !important;
}

.appHeader1 .right,
.appHeader .right {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: auto !important;
  min-width: 38px !important;
}

/* ==========================================================================
   15. CRITICAL TEXT CONTRAST SAFEGUARDS ACROSS FRONTEND
   ========================================================================== */
/* Form helpers & labels */
.jp-form-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Sub-labels in currency chips (recharge, withdrawal) */
.jp-currency-chip .sub {
  color: #475569 !important;
  font-weight: 700 !important;
}

.jp-currency-chip.active .sub {
  color: #1E3A8A !important;
}

/* Tab nav in complaints / secondary pages */
.tab-nav {
  background: #EFF6FF !important;
  border: 1.5px solid #BFDBFE !important;
  border-radius: 12px !important;
  padding: 6px !important;
}

.tab-nav a {
  color: #334155 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.tab-nav a.active {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* Notice box in agreements & policies */
.agreement-card .notice-box,
.notice-box {
  background: #FEF3C7 !important;
  border-left: 4px solid #D97706 !important;
  color: #78350F !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
}

/* Policy and agreement cards */
.agreement-card,
.policy-card {
  background: #FFFFFF !important;
  border: 1.5px solid #BFDBFE !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08) !important;
}

.agreement-card p,
.policy-card p,
.policy-card li {
  color: #1E293B !important;
  font-weight: 500 !important;
}

.agreement-card h2,
.policy-card h2 {
  color: #0F172A !important;
  font-weight: 800 !important;
}

.agreement-card h3,
.policy-card h3 {
  color: #B45309 !important;
  font-weight: 800 !important;
}

/* Inactive button text contrast (e.g. claim button when claimed) */
.claimed-btn-state {
  background: #EFF6FF !important;
  border: 1.5px solid #BFDBFE !important;
  color: #1E3A8A !important;
  font-weight: 700 !important;
}
