/* ==========================================================================
   PG Pay Mobile Dashboard - PG Exchange Brand Theme
   Mobile-first fintech dashboard (360px–480px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens — PG Exchange Brand Palette
   -------------------------------------------------------------------------- */
:root {
  /* PG Exchange brand palette */
  --primary: #0B2F5B;
  --primary-dark: #061D3A;
  --primary-light: #123E73;
  --accent: #2E8B57;
  --accent-dark: #247346;
  --btn-dark-green: #075E54;
  --accent-light: #E8F6EF;
  --accent-mid: #C5E8D5;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --text: #102033;
  --muted: #6B7280;
  --border: #E5EAF0;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* RGB channels for alpha overlays */
  --rgb-primary: 11, 47, 91;
  --rgb-primary-dark: 6, 29, 58;
  --rgb-primary-light: 18, 62, 115;
  --rgb-accent: 46, 139, 87;
  --rgb-accent-light: 232, 246, 239;
  --rgb-bg: 244, 247, 251;
  --rgb-text: 16, 32, 51;
  --rgb-danger: 239, 68, 68;
  --rgb-white: 255, 255, 255;
  --rgb-success: 34, 197, 94;

  /* Semantic aliases */
  --secondary: var(--accent-light);
  --secondary-soft: var(--accent-light);
  --secondary-mid: var(--accent-mid);
  --background: var(--bg);
  --background-tint: var(--bg);
  --white: var(--card);
  --text-dark: var(--text);
  --text-light: var(--muted);
  --text-muted: #9CA3AF;
  --danger-soft: #FEE2E2;
  --warning-soft: #FFF7ED;
  --success-soft: var(--accent-light);
  --border-soft: var(--border);

  /* Banner highlights (palette only) */
  --highlight-green: var(--success);
  --highlight-blue: var(--primary-light);

  /* Focus & overlay */
  --focus-ring: rgba(var(--rgb-accent), 0.15);
  --focus-ring-danger: rgba(var(--rgb-danger), 0.08);
  --overlay-dark: rgba(var(--rgb-primary-dark), 0.45);
  --overlay-modal: rgba(var(--rgb-primary-dark), 0.5);

  /* Navy-tinted shadows */
  --shadow-xs: 0 1px 3px rgba(var(--rgb-primary), 0.04);
  --shadow-sm: 0 2px 10px rgba(var(--rgb-primary), 0.05), 0 1px 2px rgba(var(--rgb-primary), 0.03);
  --shadow-md: 0 6px 20px rgba(var(--rgb-primary), 0.06), 0 2px 6px rgba(var(--rgb-primary), 0.03);
  --shadow-lg: 0 12px 32px rgba(var(--rgb-primary), 0.08), 0 4px 10px rgba(var(--rgb-primary), 0.04);
  --shadow-card: 0 8px 24px rgba(var(--rgb-primary), 0.08);
  --shadow-float: 0 16px 40px rgba(var(--rgb-primary), 0.1);
  --shadow-header: 0 4px 20px rgba(var(--rgb-primary-dark), 0.25);
  --shadow-btn-primary: 0 6px 18px rgba(var(--rgb-primary), 0.28);
  --shadow-btn-primary-hover: 0 8px 22px rgba(var(--rgb-primary), 0.32);
  --shadow-btn-accent: 0 6px 18px rgba(var(--rgb-accent), 0.28);
  --shadow-btn-accent-hover: 0 8px 22px rgba(var(--rgb-accent), 0.32);
  --shadow-tab-active: 0 4px 12px rgba(var(--rgb-primary), 0.25);
  --shadow-sidebar: 8px 0 40px rgba(var(--rgb-primary), 0.15);
  --shadow-action-icon: 0 4px 12px rgba(var(--rgb-primary), 0.2);

  /* Gradients */
  --gradient-navy: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  --gradient-progress: linear-gradient(90deg, var(--primary), var(--accent));
  --gradient-banner-overlay: linear-gradient(180deg, rgba(var(--rgb-primary-dark), 0.35) 0%, rgba(var(--rgb-primary), 0.55) 45%, rgba(var(--rgb-primary-dark), 0.82) 100%);
  --gradient-wallet: linear-gradient(145deg, var(--accent-light) 0%, rgba(var(--rgb-bg), 0.9) 50%, var(--card) 100%);

  /* Border radius scale */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 26px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 78px;
  --sidebar-width: 82%;
  --max-mobile: 480px;
  --gutter: 6px;
}

/* --------------------------------------------------------------------------
   Base Reset & Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-light);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Override Bootstrap defaults inside app */
.app-wrapper .row {
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}

.app-wrapper [class*="col-"] {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   Mobile App Container
   -------------------------------------------------------------------------- */
.app-wrapper {
  max-width: var(--max-mobile);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(var(--rgb-primary), 0.06);
}

.app-content {
  padding: clamp(14px, 4vw, 20px);
  padding-top: calc(var(--header-height) + clamp(14px, 4vw, 20px));
  padding-bottom: clamp(28px, 6vw, 40px);
}

/* --------------------------------------------------------------------------
   Sticky Header — Navy Gradient
   -------------------------------------------------------------------------- */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-mobile);
  z-index: 1000;
  background: var(--gradient-navy);
  border: none;
  border-top: none;
  box-shadow: var(--shadow-header);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 14px clamp(14px, 4vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: var(--transition);
}

.header-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--rgb-white), 0.18);
  background: rgba(var(--rgb-white), 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  font-size: 17px;
  cursor: pointer;
  box-shadow: none;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.header-btn:hover,
.header-btn:focus {
  background: rgba(var(--rgb-white), 0.2);
  color: var(--card);
  border-color: rgba(var(--rgb-white), 0.3);
  outline: none;
}

.header-center {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.header-app-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(var(--rgb-white), 0.75);
  margin: 0;
  line-height: 1.3;
}

.header-user-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: 3px;
}

.header-username {
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 700;
  color: var(--card);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Badge Component
   -------------------------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.3;
}

.badge-success {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-info {
  background: var(--accent-light);
  color: var(--primary);
}

.badge-primary {
  background: var(--primary);
  color: var(--card);
}

/* --------------------------------------------------------------------------
   Card Component
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  padding: clamp(18px, 4.5vw, 24px);
  margin-bottom: var(--space-4);
  transition: var(--transition);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.glass-card.no-hover,
.glass-card.no-hover:hover {
  transform: none;
}

.glass-card.no-hover:hover {
  box-shadow: var(--shadow-card);
}

.card-title {
  font-size: clamp(17px, 4.5vw, 19px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Sidebar Drawer — Navy Top + White Menu
   -------------------------------------------------------------------------- */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  max-width: 360px;
  height: 100%;
  background: var(--bg);
  z-index: 1200;
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sidebar);
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
}

.sidebar-drawer.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 5vw, 24px) clamp(14px, 4vw, 18px) var(--space-6);
  background: var(--gradient-navy);
  margin-bottom: 0;
}

/* User profile pill card */
.sidebar-user-card {
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-4) clamp(14px, 4vw, 18px) var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-icon {
  width: 42px;
  height: 42px;
  background: rgba(var(--rgb-white), 0.12);
  border: 1px solid rgba(var(--rgb-white), 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  font-size: 18px;
  box-shadow: none;
}

.sidebar-logo-text {
  font-size: 21px;
  font-weight: 700;
  color: var(--card);
  margin: 0;
  letter-spacing: -0.03em;
}

.sidebar-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--rgb-white), 0.2);
  background: rgba(var(--rgb-white), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  color: rgba(var(--rgb-white), 0.85);
  font-size: 15px;
  transition: var(--transition);
}

.sidebar-close:hover {
  background: rgba(var(--rgb-danger), 0.2);
  color: var(--card);
  border-color: rgba(var(--rgb-danger), 0.4);
}

.sidebar-user-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-user-card .badge-success,
.sidebar-user-card .sidebar-status-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  flex-shrink: 0;
  box-shadow: none;
}

.sidebar-nav {
  list-style: none;
  padding: 0 clamp(10px, 3vw, 14px);
  margin: 0;
  background: var(--bg);
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-nav a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--primary);
  opacity: 0.75;
}

.sidebar-nav a:hover {
  background: var(--accent-light);
  color: var(--primary);
}

.sidebar-nav a:hover i {
  opacity: 1;
}

.sidebar-nav a.active {
  background: var(--accent-light);
  color: var(--primary);
  border-left-color: var(--accent);
  box-shadow: none;
  font-weight: 600;
}

.sidebar-nav a.active i {
  color: var(--primary);
  opacity: 1;
}

.sidebar-nav a.active:hover {
  color: var(--primary);
  background: var(--accent-light);
}

.sidebar-nav a#sidebarLogout {
  color: var(--danger);
}

.sidebar-nav a#sidebarLogout i {
  color: var(--danger);
  opacity: 1;
}

.sidebar-nav a#sidebarLogout:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Dashboard Carousel / Banner — Navy Overlay
   -------------------------------------------------------------------------- */
.banner-carousel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}

.banner-carousel .carousel-inner {
  border-radius: var(--radius-xl);
}

.banner-slide {
  position: relative;
  height: clamp(190px, 52vw, 220px);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
}

.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-banner-overlay);
  border-radius: var(--radius-xl);
}

.banner-content {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 4vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--card);
  z-index: 1;
}

.banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

.banner-brand {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  opacity: 0.92;
  text-transform: uppercase;
}

.banner-tag {
  background: var(--accent);
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.6px;
  white-space: nowrap;
  color: var(--card);
}

.banner-title {
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.banner-title .highlight-green {
  color: var(--highlight-green);
}

.banner-title .highlight-blue {
  color: var(--highlight-blue);
}

.banner-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
}

.banner-project-name {
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 700;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.banner-meta {
  font-size: 10px;
  opacity: 0.88;
  margin: 0;
  line-height: 1.45;
  font-weight: 400;
}

.banner-location {
  text-align: right;
  flex-shrink: 0;
}

.banner-location-label {
  font-size: 8px;
  opacity: 0.72;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.banner-location-value {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.banner-carousel .carousel-indicators {
  bottom: 10px;
  margin-bottom: 0;
}

.banner-carousel .carousel-indicators li {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 4px;
  background: rgba(var(--rgb-white), 0.35);
  border: none;
  transition: var(--transition);
}

.banner-carousel .carousel-indicators .active {
  background: var(--accent);
  width: 22px;
  border-radius: 6px;
}

/* Carousel swipe / touch */
.carousel,
.carousel-inner,
.carousel-item,
.carousel .item {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-inner {
  cursor: grab;
}

.carousel-inner:active {
  cursor: grabbing;
}

/* --------------------------------------------------------------------------
   Wallet Summary Card
   -------------------------------------------------------------------------- */
.wallet-summary {
  background: var(--gradient-wallet);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 5vw, 26px);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.wallet-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: 10px;
}

.wallet-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

.wallet-datetime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--card);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  flex-shrink: 0;
}

.wallet-datetime i {
  font-size: 10px;
  opacity: 0.7;
  color: var(--primary);
}

.wallet-amount {
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Statistic Cards Grid
   -------------------------------------------------------------------------- */
.stats-grid {
  margin-bottom: var(--space-5);
}

.stats-grid .col-xs-4 {
  margin-bottom: calc(var(--gutter) * 2);
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: clamp(12px, 3.5vw, 16px) clamp(10px, 3vw, 14px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  min-height: clamp(108px, 30vw, 118px);
  display: flex;
  flex-direction: column;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.stat-icon.navy,
.stat-icon.accent {
  background: var(--accent-light);
  color: var(--primary);
}

.stat-icon.debit {
  background: var(--danger-soft);
  color: var(--danger);
}

.stat-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.35;
  flex: 1;
}

.stat-value {
  font-size: clamp(13px, 3.8vw, 15px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}

.stat-card.income .stat-value {
  color: var(--accent);
}

.stat-card.debit .stat-value {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   KYC Status Card
   -------------------------------------------------------------------------- */
a.kyc-card {
  display: flex;
  text-decoration: none;
  color: inherit;
}

a.kyc-card:hover {
  color: inherit;
}

.kyc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 4vw, 20px) clamp(18px, 4.5vw, 22px) !important;
  cursor: pointer;
  margin-bottom: var(--space-5);
}

.kyc-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-primary), 0.06);
}

.kyc-content {
  flex: 1;
  min-width: 0;
}

.kyc-title {
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

.kyc-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}

.kyc-card .badge-pill {
  flex-shrink: 0;
  font-size: 8px;
  padding: 5px 10px;
}

/* --------------------------------------------------------------------------
   Dashboard Referral Section
   -------------------------------------------------------------------------- */
.referral-section {
  margin-top: 14px;
  margin-bottom: 20px;
}

.referral-code-box {
  background: #F9F1E7;
  border-radius: 999px;
  padding: 15px 22px;
  color: #6B7280;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.35;
}

.referral-code-box span {
  color: var(--text);
  font-weight: 600;
}

.referral-link-card {
  background: var(--card);
  border: 1px solid #E8EDF2;
  border-radius: 22px;
  padding: 20px 18px 18px;
  box-shadow: 0 4px 18px rgba(var(--rgb-primary), 0.06);
}

.referral-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.referral-url {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 20px;
}

.referral-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.referral-btn {
  min-width: 0;
  height: 50px;
  border-radius: 22px;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.referral-btn i {
  font-size: 13px;
  flex-shrink: 0;
}

.copy-referral-btn {
  flex: 1.3;
  background: var(--card);
  color: var(--text);
  border: 1px solid #E5EAF0;
  box-shadow: 0 4px 12px rgba(var(--rgb-primary), 0.05);
}

.copy-referral-btn:hover {
  background: #FAFBFC;
}

.share-referral-btn {
  flex: 0.9;
  background: var(--btn-dark-green);
  color: var(--card);
  box-shadow: 0 6px 16px rgba(7, 94, 84, 0.2);
}

.share-referral-btn:hover {
  background: #064a42;
}

.referral-alert {
  margin-top: 12px;
  margin-bottom: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
}

@media (max-width: 390px) {
  .referral-section {
    margin-top: 12px;
    margin-bottom: 18px;
  }

  .referral-code-box {
    font-size: 14px;
    padding: 14px 20px;
    margin-bottom: 16px;
  }

  .referral-link-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .referral-label {
    font-size: 11px;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
  }

  .referral-url {
    font-size: 14px;
    line-height: 1.42;
    margin-bottom: 18px;
  }

  .referral-actions {
    gap: 8px;
  }

  .referral-btn {
    height: 48px;
    border-radius: 20px;
    font-size: 13px;
    padding: 0 12px;
    gap: 6px;
  }

  .copy-referral-btn {
    flex: 1.35;
  }

  .share-referral-btn {
    flex: 0.82;
    min-width: 96px;
  }
}

/* --------------------------------------------------------------------------
   Quick Actions Grid
   -------------------------------------------------------------------------- */
.section-heading {
  font-size: clamp(17px, 4.5vw, 19px);
  font-weight: 700;
  color: var(--text);
  margin: var(--space-2) 0 var(--space-4);
  letter-spacing: -0.02em;
}

.quick-actions-grid .col-xs-6 {
  margin-bottom: calc(var(--gutter) * 2);
}

.action-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 4.5vw, 20px) clamp(14px, 4vw, 18px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  color: inherit;
  height: 100%;
  min-height: clamp(128px, 36vw, 140px);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--accent-light);
  color: inherit;
}

.action-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 17px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.action-card:hover .action-icon {
  background: var(--primary);
  color: var(--card);
  box-shadow: var(--shadow-action-icon);
}

.action-title {
  font-size: clamp(14px, 3.8vw, 15px);
  font-weight: 700;
  margin: 0 0 7px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.action-desc {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Form Component
   -------------------------------------------------------------------------- */
.form-group-custom {
  margin-bottom: var(--space-5);
}

.form-label-custom {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.form-control-custom {
  width: 100%;
  padding: 15px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  transition: var(--transition);
  outline: none;
  box-shadow: var(--shadow-xs);
}

.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-control-custom.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--focus-ring-danger);
}

.form-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 7px;
  display: none;
  padding-left: 4px;
}

.form-error.visible {
  display: block;
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.form-actions .btn-custom {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Button Component
   -------------------------------------------------------------------------- */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--card);
  box-shadow: var(--shadow-btn-primary);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: var(--primary-dark);
  color: var(--card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-primary-hover);
  outline: none;
}

.btn-accent-custom {
  background: var(--accent);
  color: var(--card);
  box-shadow: var(--shadow-btn-accent);
}

.btn-accent-custom:hover,
.btn-accent-custom:focus {
  background: var(--accent-dark);
  color: var(--card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-accent-hover);
  outline: none;
}

.btn-outline-custom {
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-xs);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-light);
  outline: none;
}

.btn-sm-custom {
  padding: 9px 16px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--rgb-white), 0.45);
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4.5);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Profile Page
   -------------------------------------------------------------------------- */
.profile-photo-wrap {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-top: var(--space-2);
}

.profile-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-light);
  box-shadow: var(--shadow-md);
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-4);
}

.profile-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-detail-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.profile-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Wallet Page - Tabs
   -------------------------------------------------------------------------- */
.tab-nav {
  display: flex;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.tab-nav-item {
  flex: 1;
  padding: 11px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: -0.01em;
}

.tab-nav-item.active {
  background: var(--primary);
  color: var(--card);
  box-shadow: var(--shadow-tab-active);
}

.tab-pane-custom {
  display: none;
}

.tab-pane-custom.active {
  display: block;
  animation: fadeIn 0.32s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Table Component
   -------------------------------------------------------------------------- */
.table-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.table-responsive-custom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-custom {
  width: 100%;
  margin: 0;
  font-size: 12px;
}

.table-custom thead th {
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-custom tbody td {
  padding: 13px 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  font-size: 11px;
}

.table-custom tbody tr {
  transition: var(--transition);
}

.table-custom tbody tr:hover {
  background: rgba(var(--rgb-accent-light), 0.5);
}

.text-credit {
  color: var(--success);
  font-weight: 600;
}

.text-debit {
  color: var(--danger);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Team Page
   -------------------------------------------------------------------------- */
.team-summary-grid {
  margin-bottom: var(--space-5);
}

.team-summary-grid .col-xs-4 {
  margin-bottom: calc(var(--gutter) * 2);
}

.team-summary-card {
  text-align: center;
  padding: clamp(16px, 4vw, 20px) clamp(10px, 3vw, 14px);
}

.team-summary-value {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.team-summary-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.3;
}

.search-box {
  position: relative;
  margin-bottom: var(--space-5);
}

.search-box input {
  width: 100%;
  padding: 15px 20px 15px 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  color: var(--text);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Rewards Page — Ladder Design
   -------------------------------------------------------------------------- */
.rewards-page {
  background: var(--primary-dark);
}

.rewards-page::before,
.rewards-page::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.rewards-page::before {
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(var(--rgb-accent), 0.35) 0%, transparent 70%);
}

.rewards-page::after {
  top: 120px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(var(--rgb-primary-light), 0.45) 0%, transparent 68%);
}

.rewards-mobile-wrapper {
  max-width: 430px;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
}

.reward-top-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  background:
    radial-gradient(circle at 85% 10%, rgba(var(--rgb-accent), 0.32) 0%, transparent 38%),
    radial-gradient(circle at 10% 55%, rgba(var(--rgb-primary-light), 0.42) 0%, transparent 42%),
    linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 55%, var(--bg) 100%);
  z-index: 0;
}

.rewards-app-content {
  position: relative;
  z-index: 2;
  padding: 0 12px 28px;
}

.rewards-app-content::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 200px;
  bottom: 0;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  z-index: -1;
}

/* Rewards header card */
.reward-header-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px;
  padding: 12px 14px;
  min-height: 70px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.reward-header-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  transition: var(--transition);
}

.reward-header-btn:hover {
  background: var(--accent-light);
  color: var(--primary);
}

.reward-header-center {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.reward-header-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.reward-header-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
}

.reward-header-username {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Lifetime summary card */
.reward-summary-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 18px 16px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.reward-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.reward-summary-left {
  flex: 1;
  min-width: 0;
}

.reward-summary-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.reward-summary-count {
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.reward-summary-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.reward-next-card {
  flex-shrink: 0;
  width: 88px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.reward-next-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
}

.reward-next-label {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}

.reward-next-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 0;
  line-height: 1.25;
}

/* Mini stats */
.reward-mini-stats {
  margin-left: -4px;
  margin-right: -4px;
}

.reward-mini-stats > [class*="col-"] {
  padding-left: 4px;
  padding-right: 4px;
}

.reward-mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  height: 100%;
  min-height: 92px;
}

.reward-mini-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
}

.reward-mini-label {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
  line-height: 1.25;
  min-height: 18px;
}

.reward-mini-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

/* Reward ladder section */
.reward-ladder-card {
  background: var(--card);
  border-radius: 24px;
  padding: 16px 14px 10px;
  margin: 10px 0 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.reward-ladder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.reward-ladder-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.reward-achieved-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.reward-ladder-list {
  padding-bottom: 4px;
}

/* Individual reward level item */
.reward-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.reward-item-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  padding-right: 72px;
  margin-bottom: 10px;
}

.reward-level-number {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.reward-item-content {
  flex: 1;
  min-width: 0;
}

.reward-item-label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.reward-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.25;
}

.reward-item-gift {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

.reward-status-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.reward-status-badge.achieved {
  background: var(--accent-light);
  color: var(--accent);
}

.reward-progress-row {
  margin-bottom: 8px;
}

.reward-progress-row:last-child {
  margin-bottom: 0;
}

.reward-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.reward-progress-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.reward-progress-value {
  font-size: 9px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.reward-progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.reward-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reward-progress-fill.achieved {
  background: var(--gradient-progress);
}

/* Shared progress (legacy pages) */
.progress-bar-custom {
  height: 9px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 2px rgba(var(--rgb-primary), 0.04);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-progress);
  border-radius: var(--radius-pill);
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rewards page responsive */
@media (max-width: 374px) {
  .reward-item-top {
    padding-right: 64px;
  }

  .reward-status-badge {
    font-size: 7px;
    padding: 3px 6px;
  }

  .reward-mini-label {
    font-size: 6px;
  }

  .reward-mini-value {
    font-size: 11px;
  }

  .reward-next-card {
    width: 78px;
  }
}

/* --------------------------------------------------------------------------
   Modal Component
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-modal);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 5vw, 28px);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
  transform: scale(0.92) translateY(24px);
  transition: var(--transition-slow);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 58px;
  height: 58px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
  color: var(--primary);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.modal-text {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
}

.modal-actions .btn-custom {
  flex: 1;
}

.modal-box-form {
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.modal-title-left {
  text-align: left;
  margin: 0;
}

.modal-text-left {
  text-align: left;
  margin: 0 0 var(--space-5);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-light);
  color: var(--primary);
  border-color: var(--accent-light);
}

.form-textarea-custom {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.profile-readonly-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--accent-light);
  color: var(--primary);
  font-size: 12px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
}

.profile-readonly-note i {
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Recharge Page
   -------------------------------------------------------------------------- */
.recharge-tabs {
  border: none;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
}

.recharge-tabs > li {
  flex: 1;
  float: none;
  margin-bottom: 0;
  text-align: center;
}

.recharge-tabs > li > a {
  border: none !important;
  border-radius: var(--radius-pill) !important;
  margin: 0;
  padding: 11px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent !important;
  transition: var(--transition);
}

.recharge-tabs > li > a i {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.recharge-tabs > li.active > a,
.recharge-tabs > li.active > a:hover,
.recharge-tabs > li.active > a:focus {
  background: var(--primary) !important;
  color: var(--card) !important;
  box-shadow: var(--shadow-tab-active);
}

.recharge-tabs > li > a:hover {
  background: var(--accent-light) !important;
  color: var(--primary);
}

.recharge-tab-content {
  margin-bottom: var(--space-4);
}

.form-select-custom {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B2F5B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}

.amount-chip {
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.amount-chip:hover,
.amount-chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.recharge-alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(var(--rgb-accent), 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.bill-form-actions {
  flex-wrap: wrap;
}

.bill-form-actions .btn-custom {
  min-width: calc(50% - 6px);
}

.confirm-summary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.confirm-summary li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.confirm-summary li:last-child {
  border-bottom: none;
}

.confirm-summary li span:first-child {
  color: var(--muted);
  font-weight: 500;
}

.confirm-summary li span:last-child {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.recharge-modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.recharge-modal-header {
  background: var(--gradient-navy);
  color: var(--card);
  border: none;
  padding: 16px 20px;
}

.recharge-modal-header .modal-title {
  font-size: 16px;
  font-weight: 700;
}

.recharge-modal-header .close {
  color: var(--card);
  opacity: 0.85;
  text-shadow: none;
}

.recharge-modal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  gap: var(--space-3);
}

.recharge-modal-footer .btn-custom {
  flex: 1;
  margin: 0;
}

.recharge-success-body {
  text-align: center;
  padding: 28px 24px;
}

.recharge-success-body .modal-icon {
  margin-bottom: 14px;
}

.recharge-success-body .modal-title {
  margin-bottom: 8px;
}

.recharge-success-body .modal-text {
  margin-bottom: 20px;
}

.mt-16 {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Page Header (inner pages)
   -------------------------------------------------------------------------- */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: var(--space-2) !important; }
.mb-16 { margin-bottom: var(--space-4) !important; }
.mt-16 { margin-top: var(--space-4) !important; }
.text-center { text-align: center; }

body.sidebar-open {
  overflow: hidden;
}

.counter-animate {
  display: inline-block;
}

.empty-state {
  text-align: center;
  padding: 36px var(--space-4);
  color: var(--muted);
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.35;
  color: var(--primary);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: clamp(20px, 5vw, 28px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: var(--card);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  z-index: 3000;
  box-shadow: var(--shadow-float);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
  background: var(--primary);
}

.toast-notification.error {
  background: var(--danger);
}

/* --------------------------------------------------------------------------
   Responsive Fine-Tuning
   -------------------------------------------------------------------------- */

/* Extra small devices (~360px) */
@media (max-width: 374px) {
  :root {
    --gutter: 5px;
    --header-height: 74px;
  }

  .header-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .badge-pill {
    font-size: 8px;
    padding: 3px 9px;
  }

  .stat-label {
    font-size: 7px;
    letter-spacing: 0.2px;
  }

  .stat-value {
    font-size: 12px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .stat-card {
    min-height: 100px;
    padding: 10px 8px;
  }

  .action-desc {
    font-size: 10px;
  }

  .action-card {
    min-height: 120px;
    padding: 14px 12px;
  }

  .action-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
    margin-bottom: 12px;
  }

  .wallet-datetime {
    font-size: 8px;
    padding: 4px 8px;
  }

  .kyc-card .badge-pill {
    font-size: 7px;
    padding: 4px 8px;
  }

  .table-custom thead th,
  .table-custom tbody td {
    padding: 10px 8px;
    font-size: 10px;
  }
}

/* Standard mobile (~390–414px) */
@media (min-width: 375px) and (max-width: 429px) {
  .stat-card {
    min-height: 112px;
  }
}

/* Larger mobile (~430–480px) */
@media (min-width: 430px) {
  :root {
    --gutter: 8px;
  }

  .app-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .app-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .stat-card {
    min-height: 120px;
    padding: 16px 14px;
  }

  .action-card {
    min-height: 145px;
    padding: 20px 18px;
  }

  .banner-slide {
    height: 220px;
  }
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
  .app-header {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .app-content {
    padding-bottom: max(clamp(28px, 6vw, 40px), env(safe-area-inset-bottom));
  }

  .toast-notification {
    bottom: max(clamp(20px, 5vw, 28px), calc(env(safe-area-inset-bottom) + 12px));
  }
}

/* --------------------------------------------------------------------------
   Prepaid Topup Page
   -------------------------------------------------------------------------- */
.prepaid-topup-page {
  background: #020617;
}

.prepaid-mobile-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(var(--rgb-accent), 0.55), transparent 28%),
    radial-gradient(circle at 0% 25%, rgba(var(--rgb-primary-light), 0.75), transparent 32%),
    #020617;
  padding-bottom: 24px;
  box-shadow: none;
}

.prepaid-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(var(--rgb-accent), 0.4) 0%, transparent 35%),
    radial-gradient(circle at 5% 30%, rgba(var(--rgb-primary-light), 0.5) 0%, transparent 40%);
}

.prepaid-app-content {
  position: relative;
  z-index: 2;
  padding: 0 12px 20px;
}

.prepaid-header-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px;
  padding: 11px 14px;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.prepaid-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  transition: var(--transition);
}

.prepaid-icon-btn:hover {
  background: var(--accent-light);
}

.prepaid-header-center {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.prepaid-header-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin: 0;
}

.prepaid-header-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
}

.prepaid-header-username {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.prepaid-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.prepaid-alert {
  margin: 0 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--rgb-accent), 0.25);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 12px;
}

.prepaid-alert i {
  margin-right: 6px;
}

/* UPI QR Section */
.upi-qr-section,
.prepaid-form-section,
.all-requests-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 16px;
  margin: 0 0 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.upi-qr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.upi-qr-section-header .prepaid-section-title {
  margin: 0;
}

.prepaid-refresh-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--card);
  border-radius: 50%;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.prepaid-refresh-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.upi-qr-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: 18px;
  padding: 14px;
  position: relative;
}

.qr-thumb-wrap {
  flex-shrink: 0;
  width: 90px;
  position: relative;
}

.qr-thumb {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--bg);
}

.qr-full-view-btn {
  position: absolute;
  left: 0;
  bottom: -6px;
  border: none;
  background: var(--btn-dark-green);
  color: var(--card);
  font-size: 9px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(7, 94, 84, 0.3);
  transition: var(--transition);
}

.qr-full-view-btn i {
  margin-right: 3px;
  font-size: 9px;
}

.qr-full-view-btn:hover {
  background: #064a42;
}

.qr-details {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
  padding-right: 28px;
}

.qr-details-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.qr-details-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.qr-side-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--muted);
  font-size: 18px;
  opacity: 0.7;
}

/* Selected QR box */
.selected-qr-box {
  background: #ECEFF3;
  border: 1px solid #C8CDD2;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
}

.selected-qr-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.selected-qr-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.selected-qr-upi {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Topup form */
.topup-form .form-field-wrap {
  margin-bottom: 14px;
}

.topup-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.topup-input {
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  padding: 12px 16px;
}

.topup-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.topup-input.error {
  border-color: var(--danger);
}

.topup-input::placeholder {
  color: var(--muted);
  font-size: 13px;
}

#topupUtr::placeholder {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.input-icon-left {
  position: relative;
}

.input-icon-left > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
}

.input-icon-left .topup-input {
  padding-left: 44px;
}

.topup-file-upload {
  position: relative;
  background: #ECEFF3;
  border: 2px dashed #C8CDD2;
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
}

.topup-file-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
}

.topup-file-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.topup-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.topup-choose-file-btn {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: 8px;
  transition: var(--transition);
}

.topup-choose-file-btn:hover {
  background: var(--accent-light);
}

.topup-file-name {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  word-break: break-all;
}

.submit-topup-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: var(--btn-dark-green);
  color: var(--card);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(7, 94, 84, 0.32);
  transition: var(--transition);
}

.submit-topup-btn:hover {
  background: #064a42;
}

/* All requests */
.topup-empty-state {
  background: #ECEFF3;
  border: 2px dashed #C8CDD2;
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
}

.topup-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.topup-empty-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.topup-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topup-request-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

.topup-request-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.topup-request-row:last-of-type {
  border-bottom: none;
}

.topup-request-label {
  color: var(--muted);
  font-weight: 500;
}

.topup-request-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.topup-request-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.topup-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.qr-modal-body {
  text-align: center;
  padding: 16px;
}

.qr-full-image {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 374px) {
  .upi-qr-card {
    flex-wrap: wrap;
  }

  .qr-details {
    padding-right: 0;
    width: calc(100% - 102px);
  }

  .qr-side-icon {
    top: auto;
    bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   KYC Page — scoped to avoid dashboard .kyc-card conflict
   -------------------------------------------------------------------------- */
.kyc-page {
  background: #F4F7FB;
}

.kyc-page .kyc-mobile-wrapper {
  max-width: 430px;
  background: #F4F7FB;
  box-shadow: 0 0 40px rgba(var(--rgb-primary), 0.04);
}

.kyc-page .kyc-app-content {
  padding: calc(var(--header-height) + 10px) 14px 32px;
}

.kyc-page .kyc-capture-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 20px 26px;
  margin: 0;
  box-shadow: 0 4px 24px rgba(var(--rgb-primary), 0.06);
}

.kyc-page .kyc-capture-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kyc-page .kyc-form {
  margin: 0;
}

.kyc-page .kyc-form-group {
  margin-bottom: 28px;
}

.kyc-page .kyc-form-group-last {
  margin-bottom: 0;
}

.kyc-page .kyc-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.3;
}

.kyc-page .kyc-input {
  display: block;
  width: 100%;
  height: 58px;
  line-height: 58px;
  border: 1px solid #DDE3E8;
  border-radius: 30px;
  background: var(--card);
  padding: 0 20px;
  font-size: 15px;
  color: var(--text);
  box-shadow: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.kyc-page .kyc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--rgb-accent), 0.12);
  outline: none;
}

.kyc-page .kyc-input.error {
  border-color: var(--danger);
}

.kyc-page .kyc-input::placeholder {
  color: #9CA3AF;
  font-size: 15px;
}

.kyc-page .kyc-file-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  height: 58px;
  border: 1px solid #DDE3E8;
  border-radius: 30px;
  background: var(--card);
  padding: 10px 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kyc-page .kyc-file-wrap.error {
  border-color: var(--danger);
}

.kyc-page .kyc-file-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  margin: 0;
  background: #E8EAED;
  border: 1px solid #D1D5DB;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.kyc-page .kyc-file-btn:hover {
  background: #DFE3E8;
}

.kyc-page .kyc-file-name {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kyc-page .kyc-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.kyc-page .kyc-error {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  padding-left: 4px;
}

.kyc-page .kyc-error.visible {
  display: block;
}

.kyc-page .kyc-submit-btn {
  display: block;
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 30px;
  background: var(--btn-dark-green);
  color: var(--card);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 32px;
  box-shadow: 0 6px 18px rgba(7, 94, 84, 0.25);
  transition: var(--transition);
}

.kyc-page .kyc-submit-btn:hover {
  background: #064a42;
}

@media (max-width: 374px) {
  .kyc-page .kyc-capture-card {
    padding: 20px 16px 24px;
  }

  .kyc-page .kyc-label {
    font-size: 15px;
  }

  .kyc-page .kyc-file-name {
    font-size: 13px;
  }

  .kyc-page .kyc-file-btn {
    padding: 0 12px;
    font-size: 12px;
  }
}
