/* ==========================================================================
   Customer Mobile Web Application - Premium Figma Glassmorphism Design Style
   Ref: Figma community file 1302171611887922918 (Stock Trading App)
   ========================================================================== */

:root {
  --glass-bg-primary: #f5f4fb;
  --glass-card-bg: rgba(255, 255, 255, 0.72);
  --glass-card-border: rgba(255, 255, 255, 0.85);
  --glass-card-shadow: 0 12px 32px rgba(139, 92, 246, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  --glass-blur: blur(20px);
  --glass-radius: 24px;
  --glass-purple-primary: #8b5cf6;
  --glass-purple-dark: #6d28d9;
  --glass-purple-glow: rgba(139, 92, 246, 0.35);
  --glass-purple-tint: rgba(139, 92, 246, 0.08);
  --text-headline: #1e1b4b;
  --text-muted: #838299;
  --glass-emerald: #10b981;
  --glass-rose: #ef4444;
}

body.mobile-body {
  background: radial-gradient(circle at 50% 0%, #ede9fe 0%, #f5f3ff 35%, #e0e7ff 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* App Viewport Container with Soft Glass Halo */
.mobile-app-wrapper {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f8f7fd 0%, #f4f2fc 50%, #eeeafd 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.18), 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow-x: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

/* Ambient Glass Aura Blurs */
.mobile-app-wrapper::before {
  content: "";
  position: fixed;
  top: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(139, 92, 246, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.mobile-app-wrapper::after {
  content: "";
  position: fixed;
  bottom: 80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.25) 0%, rgba(139, 92, 246, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Screen Management - Strict Single Screen Display */
.mobile-screen {
  flex: 1;
  display: none !important;
  flex-direction: column;
  padding-bottom: 95px; /* Room for floating glass bottom nav */
  background: transparent;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.mobile-screen.active {
  display: flex !important;
}

/* Top App Bar - Glass Frosted */
.mobile-app-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-headline);
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  cursor: pointer;
}
.header-back-btn:active {
  transform: scale(0.92);
  background: #ede9fe;
}

.header-screen-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.3px;
}



/* ---------------- SCREEN 2: HOME DASHBOARD (FIGMA STYLE) ---------------- */
.home-greeting-bar {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 90;
}

.user-greeting-meta {
  display: flex;
  flex-direction: column;
}
.greeting-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: -0.2px;
}
.greeting-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.4px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.user-avatar-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}
.user-avatar-badge:active {
  transform: scale(0.92);
}

.bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-headline);
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.10);
  cursor: pointer;
  transition: all 0.18s ease;
}
.bell-btn:active {
  transform: scale(0.92);
}
.bell-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Markets Screen Search & Filter Bar */
.markets-search-container {
  padding: 12px 18px 8px;
}
.markets-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.06);
  transition: all 0.2s ease;
}
.markets-search-box:focus-within {
  border-color: var(--glass-purple-primary);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.16);
  background: #ffffff;
}
.markets-search-box i {
  color: var(--text-muted);
  font-size: 15px;
}
.markets-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-headline);
  outline: none;
}
.markets-chips-wrapper {
  padding: 0 18px 4px;
}

/* Glassmorphic Portfolio Hero Card */
.home-portfolio-glass-card {
  margin: 8px 18px 18px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.12), 0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.home-portfolio-glass-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.portfolio-meta-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.portfolio-col {
  display: flex;
  flex-direction: column;
}
.portfolio-col.right {
  align-items: flex-end;
}

.glass-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.glass-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.6px;
}

.glass-profit-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.glass-profit-badge.pos {
  background: #dcfce7;
  color: #16a34a;
}
.glass-profit-badge.neg {
  background: #fee2e2;
  color: #dc2626;
}

.glass-profit-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-headline);
}

/* Glass Wallet Bar Inside Card */
.glass-wallet-bar {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-headline);
}
.glass-wallet-info i {
  color: var(--glass-purple-primary);
  font-size: 14px;
}
.glass-wallet-info strong {
  font-weight: 800;
  color: var(--glass-purple-dark);
}

.glass-wallet-actions {
  display: flex;
  gap: 8px;
}

.glass-pill-btn {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.glass-pill-btn.add {
  background: var(--glass-purple-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}
.glass-pill-btn.withdraw {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-headline);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.glass-pill-btn:active {
  transform: scale(0.94);
}

/* Section Header */
.home-section-header {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-headline);
  margin: 0;
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--glass-purple-primary);
  cursor: pointer;
}

/* Horizontal Assets Carousel (Figma Style) */
.home-assets-scroll {
  display: flex;
  gap: 12px;
  padding: 0 18px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-assets-scroll::-webkit-scrollbar {
  display: none;
}

.asset-glass-card {
  min-width: 170px;
  max-width: 170px;
  flex: 0 0 170px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.asset-glass-card:active {
  transform: scale(0.97);
}

.asset-glass-card.empty-hint {
  min-width: 100%;
  max-width: 100%;
  flex: 1;
  text-align: center;
  padding: 20px;
  cursor: default;
}

.asset-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.asset-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.asset-icon-box.gold { background: #fef3c7; color: #d97706; }
.asset-icon-box.silver { background: #ede9fe; color: #7c3aed; }
.asset-icon-box.agri { background: #dcfce7; color: #16a34a; }

.asset-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-headline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-price {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.asset-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asset-pnl {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.asset-pnl.pos { color: #16a34a; }
.asset-pnl.neg { color: #dc2626; }

.asset-mini-sparkline {
  width: 70px;
  height: 24px;
}
.asset-mini-sparkline svg {
  width: 100%;
  height: 100%;
}

/* Category Filter Strip - Glass Pills */
.home-category-strip {
  display: flex;
  padding: 0 18px 16px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-category-strip::-webkit-scrollbar {
  display: none;
}

.category-tab-card {
  padding: 8px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.category-tab-card.active {
  background: var(--glass-purple-primary);
  color: #ffffff;
  border-color: var(--glass-purple-primary);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

/* Live Market Section */
.home-market-section {
  padding: 0 18px;
}

.market-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.market-heading-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.3px;
}

/* Category Filter Chips Bar for All Stocks */
.stocks-category-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
}
.stocks-category-filter-bar::-webkit-scrollbar {
  display: none;
}
.stock-filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.05);
}
.stock-filter-chip:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--glass-purple-primary);
}
.stock-filter-chip.active {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.market-product-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}
.market-product-tile:hover, .market-product-tile:active {
  transform: translateY(-2px);
  border-color: var(--glass-purple-primary);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.product-tile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cat-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cat-icon-box.gold { background: #fef3c7; color: #d97706; }
.cat-icon-box.silver { background: #ede9fe; color: #7c3aed; }
.cat-icon-box.agri { background: #dcfce7; color: #16a34a; }

.product-tile-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-headline);
}
.product-tile-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.product-tile-wave {
  width: 60px;
  height: 20px;
  margin: 0 10px;
  flex-shrink: 0;
}
.product-tile-wave svg {
  width: 100%;
  height: 100%;
}

.product-tile-right {
  text-align: right;
  flex-shrink: 0;
}
.product-tile-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-headline);
}

.badge-tag-change {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
}
.badge-tag-change.pos { background: #dcfce7; color: #16a34a; }
.badge-tag-change.neg { background: #fee2e2; color: #dc2626; }

/* ---------------- SCREEN 3: PRODUCT & PRICE CHART (FIGMA STYLE) ---------------- */
.chart-hero-section {
  padding: 24px 20px 10px;
  text-align: center;
}

.hero-coin-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
  color: var(--glass-purple-primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.hero-large-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.6px;
}

.hero-price-change-sub {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 4px;
}

.timeframe-pill-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 10px;
}

.tf-pill {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tf-pill.active {
  background: var(--glass-purple-primary);
  color: #ffffff;
  border-color: var(--glass-purple-primary);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.interactive-chart-box {
  width: 100%;
  height: 235px;
  padding: 0 16px;
  position: relative;
  box-sizing: border-box;
}

.spread-duo-container {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
}

.spread-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.05);
}
.spread-box-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.spread-box-amt {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-headline);
}

.product-footer-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  margin-top: auto;
}

.btn-hero-buy {
  flex: 1;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
}
.btn-hero-buy:active {
  transform: scale(0.97);
}

.btn-hero-sell {
  flex: 1;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-purple-primary);
  color: var(--glass-purple-primary);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-hero-sell:active {
  transform: scale(0.97);
}

/* ---------------- SCREEN 4 & 6: TRADE FORMS (BUY / SELL) ---------------- */
.trade-form-wrapper {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trade-item-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.06);
}

.stepper-control-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px 0;
}

.stepper-btn-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.stepper-btn-round:active {
  transform: scale(0.92);
  background: #ede9fe;
}

.stepper-qty-val {
  width: 110px;
  height: 46px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-headline);
}

.trade-summary-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.06);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.summary-row.total {
  border-top: 1.5px dashed rgba(139, 92, 246, 0.25);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-headline);
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-headline);
  margin-top: 8px;
  transition: all 0.2s ease;
}
.payment-method-card.active {
  border-color: var(--glass-purple-primary);
  background: rgba(139, 92, 246, 0.08);
  color: var(--glass-purple-dark);
}

/* ---------------- SCREEN 5: MY HOLDINGS / PORTFOLIO ---------------- */
.portfolio-total-banner {
  margin: 16px 20px 20px;
  padding: 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #4c1d95 100%);
  color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(46, 16, 101, 0.4);
  position: relative;
  overflow: hidden;
}

.portfolio-total-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.portfolio-total-label {
  font-size: 12px;
  color: #c4b5fd;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-total-value {
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.holding-item-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  margin: 0 20px 12px;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.06);
  transition: all 0.2s ease;
}
.holding-item-tile:hover {
  transform: translateY(-2px);
  border-color: var(--glass-purple-primary);
}

/* ==================== SCREEN 7: IN-APP WALLET (GLASS CARD STYLE) ==================== */
.wallet-glass-hero-card {
  margin: 16px 20px 18px;
  padding: 24px 22px;
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #4c1d95 100%);
  border-radius: 28px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(46, 16, 101, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wallet-glass-hero-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.wallet-hero-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: #c4b5fd;
}
.chip-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}
.wallet-hero-chip i {
  font-size: 16px;
}

.wallet-hero-bal-wrap {
  margin-bottom: 20px;
}
.wallet-bal-lbl {
  font-size: 12px;
  color: #c4b5fd;
  font-weight: 600;
  margin-bottom: 4px;
}
.wallet-bal-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.wallet-hero-actions {
  display: flex;
  gap: 12px;
}

.wallet-btn-action {
  flex: 1;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.wallet-btn-action.primary {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}
.wallet-btn-action.secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.wallet-btn-action:active {
  transform: scale(0.96);
}

/* Wallet Quick Stats Duo */
.wallet-quick-stats-row {
  display: flex;
  gap: 12px;
  padding: 0 20px 14px;
}

.wallet-stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.05);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.purple { background: #ede9fe; color: #8b5cf6; }

.stat-text {
  display: flex;
  flex-direction: column;
}
.stat-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-headline);
}
.stat-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Passbook Container & List */
.passbook-container {
  padding: 0 20px 20px;
}

.passbook-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.04);
  transition: all 0.2s ease;
}
.passbook-item-row:hover {
  transform: translateY(-1px);
  border-color: var(--glass-purple-primary);
}

.passbook-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.passbook-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.passbook-icon-box.credit {
  background: #dcfce7;
  color: #16a34a;
}
.passbook-icon-box.debit {
  background: #fee2e2;
  color: #dc2626;
}

.passbook-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-headline);
}
.passbook-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.passbook-amt {
  font-size: 14.5px;
  font-weight: 800;
  text-align: right;
  flex-shrink: 0;
}
.passbook-amt.credit { color: #16a34a; }
.passbook-amt.debit { color: #dc2626; }

.empty-passbook-state {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------------- ANIMATED CURVED NOTCH BOTTOM NAVIGATION BAR (LIGHT GLASS PURPLE THEME) ---------------- */
.curved-notch-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 440px;
  margin: 0 auto;
  height: 70px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 -10px 32px rgba(139, 92, 246, 0.12), 0 -2px 6px rgba(0, 0, 0, 0.02);
  z-index: 999;
  user-select: none;
}

/* 4 Tab Items Row */
.curved-nav-items-row {
  display: flex;
  height: 100%;
  position: relative;
  z-index: 10;
}

.curved-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 8px 0;
  transition: all 0.25s ease;
  position: relative;
}

.curved-nav-tab .tab-icon-wrap {
  font-size: 19px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.curved-nav-tab .tab-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 4px;
  transition: all 0.2s ease;
  color: #94a3b8;
}

/* When Tab is Active, hide its inline icon and show bold purple glowing label below */
.curved-nav-tab.active .tab-icon-wrap {
  opacity: 0;
  transform: translateY(-8px);
}
.curved-nav-tab.active .tab-label {
  color: var(--glass-purple-primary);
  font-weight: 800;
  transform: translateY(2px);
}

/* Sliding Floating Circular Bubble Indicator */
.nav-bubble-indicator {
  position: absolute;
  top: -24px;
  left: 0;
  width: 25%; /* 4 tabs: 100% / 4 */
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.nav-bubble-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 55%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45), 0 2px 8px rgba(109, 40, 217, 0.2);
  border: 4px solid #ffffff;
  transition: transform 0.25s ease;
  animation: bubblePop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bubblePop {
  0% { transform: scale(0.65) translateY(12px); }
  60% { transform: scale(1.1) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

/* Bank Selection Radio Cards in Withdrawal Screen */
.bank-accounts-selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bank-option-card.selected {
  border-color: var(--glass-purple-primary);
  background: rgba(139, 92, 246, 0.08);
}

.bank-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ede9fe;
  color: var(--glass-purple-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bank-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-headline);
}

.bank-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.bank-card-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-bank-edit-action,
.btn-bank-delete-action {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-bank-edit-action {
  color: #6366f1;
}
.btn-bank-edit-action:hover {
  background: #ede9fe;
  color: #4f46e5;
  transform: scale(1.08);
}
.btn-bank-delete-action {
  color: #ef4444;
}
.btn-bank-delete-action:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.08);
}
.btn-bank-edit-action:active,
.btn-bank-delete-action:active {
  transform: scale(0.92);
}

.bank-check-indicator {
  font-size: 18px;
  color: #cbd5e1;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.bank-option-card.selected .bank-check-indicator {
  color: #10b981;
}

/* In-App Wallet Dual Subtabs Pill Row */
.wallet-subtabs-pill-row {
  display: flex;
  margin: 0 20px 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
}

.wallet-filter-tab-pill {
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wallet-filter-tab-pill.active {
  background: #ffffff;
  color: var(--glass-purple-dark);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.12);
  font-weight: 800;
}

/* Passbook Amount Column & Status Pill */
.passbook-amt-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.user-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.user-status-pill.completed {
  background: #dcfce7;
  color: #16a34a;
}

.user-status-pill.pending {
  background: #fef3c7;
  color: #d97706;
}

.user-status-pill.rejected {
  background: #fee2e2;
  color: #dc2626;
}

.passbook-icon-box.pending {
  background: #fef3c7;
  color: #d97706;
}

/* Modal: Add Money */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.app-modal-backdrop.active {
  display: flex;
}

.app-modal-dialog {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 32px 32px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==================== SCREEN 9: PROFILE STYLES ==================== */
.profile-hero-card {
  margin: 16px 18px 14px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.08);
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.profile-large-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.profile-badge-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.profile-name-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.profile-meta-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.kyc-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.client-id-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.1);
  color: var(--glass-purple-primary);
}

.btn-edit-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  color: var(--glass-purple-primary);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-edit-profile-pill:hover {
  background: var(--glass-purple-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}
.btn-edit-profile-pill:active {
  transform: scale(0.95);
}

.group-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.edit-link-btn {
  background: none;
  border: none;
  color: var(--glass-purple-primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}
.edit-link-btn:hover {
  text-decoration: underline;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 16px;
}
.profile-stat-box {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}
.profile-stat-box:active {
  transform: scale(0.96);
}
.profile-stat-box .stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.profile-stat-box .stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-headline);
  margin: 4px 0;
}
.profile-stat-box .stat-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--glass-purple-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-stat-box .stat-sub.pos {
  color: #10b981;
}

.profile-settings-group {
  margin: 0 18px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 8px 16px;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.05);
}
.profile-settings-group .group-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 4px 6px;
}
.profile-menu-row {
  display: flex;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: opacity 0.15s ease;
}
.profile-menu-row:last-child {
  border-bottom: none;
}
.profile-menu-row:active {
  opacity: 0.7;
}
.menu-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-right: 12px;
  flex-shrink: 0;
}
.menu-icon-box.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.menu-icon-box.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.menu-icon-box.emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.menu-icon-box.amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.menu-icon-box.violet { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

.menu-text-box {
  flex: 1;
}
.menu-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-headline);
}
.menu-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.menu-chevron {
  color: #cbd5e1;
  font-size: 12px;
}
.menu-pill-verified {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
}
.menu-pill-active {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
}

.profile-footer-actions {
  padding: 4px 18px 40px;
  text-align: center;
}
.btn-profile-logout {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #dc2626;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-profile-logout:active {
  transform: scale(0.98);
  background: #fee2e2;
}
.profile-version-text {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 14px;
  font-weight: 600;
}

/* ==================== SCREEN 10: NOTIFICATIONS STYLES ==================== */
.header-text-action {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--glass-purple-primary);
  cursor: pointer;
  padding: 4px 8px;
}
.notif-filters-bar {
  display: flex;
  gap: 8px;
  padding: 10px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.notif-filters-bar::-webkit-scrollbar {
  display: none;
}
.notif-filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.notif-filter-chip.active {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.notifications-list-wrap {
  padding: 0 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notif-card-item {
  display: flex;
  gap: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.05);
  transition: all 0.2s ease;
}
.notif-card-item.unread {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.1);
}
.notif-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.notif-icon-circle.green { background: #dcfce7; color: #16a34a; }
.notif-icon-circle.amber { background: #fef3c7; color: #d97706; }
.notif-icon-circle.purple { background: #f3e8ff; color: #9333ea; }
.notif-icon-circle.blue { background: #dbeafe; color: #2563eb; }
.notif-icon-circle.emerald { background: #ecfdf5; color: #059669; }
.notif-icon-circle.gold { background: #fef9c3; color: #ca8a04; }

.notif-content-meta {
  flex: 1;
}
.notif-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.notif-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-headline);
}
.notif-card-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.notif-card-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

/* Delete Bank Confirmation Dialog */
.delete-warning-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 4px solid #fef2f2;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.22);
}
.delete-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.delete-modal-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 22px;
}
.delete-modal-desc strong {
  color: #0f172a;
}
.delete-modal-actions {
  display: flex;
  gap: 12px;
}
.btn-cancel-modal {
  flex: 1;
  padding: 13px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel-modal:hover {
  background: #f8fafc;
}
.btn-cancel-modal:active {
  transform: scale(0.96);
}
.btn-confirm-delete {
  flex: 1.25;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}
.btn-confirm-delete:hover {
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}
.btn-confirm-delete:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Live Candlestick & TradingView Charts + Limit Orders & Alerts Styling
   ========================================================================== */

/* Chart Controls Toolbar */
.chart-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 20px 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-type-selector-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

.chart-mode-pill {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-mode-pill:hover {
  color: var(--glass-purple-dark);
}

.chart-mode-pill.active {
  background: #ffffff;
  color: var(--glass-purple-dark);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.16);
  font-weight: 800;
}

/* TradingView / Pro Candlestick Canvas & Legend (Normal Theme) */
.tv-candlestick-wrapper,
#tradingview-candlestick-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.08);
  overflow: hidden;
}

.tv-chart-top-legend {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.05);
}

.tv-legend-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tv-legend-pill strong {
  color: #0f172a;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.ma9 {
  background: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
}

.legend-dot.ma21 {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.tv-candlestick-canvas,
#tradingview-candlestick-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.tv-candle-tooltip {
  position: absolute;
  top: 36px;
  left: 12px;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 24h Market Stats Ribbon */
.market-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 6px 20px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.06);
  gap: 4px;
}

.stat-ribbon-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.stat-ribbon-item .ribbon-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.stat-ribbon-item .ribbon-val {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.stat-ribbon-item .ribbon-val.high {
  color: #16a34a;
}

.stat-ribbon-item .ribbon-val.low {
  color: #ef4444;
}

.stat-ribbon-item .ribbon-val.pos {
  color: #16a34a;
}

.stat-ribbon-item .ribbon-val.neg {
  color: #ef4444;
}

/* Order Execution Type Bar (Market vs Limit Order) */
.order-execution-type-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
  border: 1.5px solid #e2e8f0;
}

.order-type-chip {
  flex: 1;
  padding: 10px 8px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.order-type-chip.active {
  background: #ffffff;
  color: var(--glass-purple-dark);
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.15);
}

/* Limit Order Input Box & Quick Offset Chips */
.limit-input-box-wrapper {
  margin-bottom: 16px;
}

.quick-offset-chips-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.offset-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.offset-chip:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}

.offset-chip:active {
  transform: scale(0.95);
}

/* Limit Order Cards in Portfolio */
.limit-orders-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.limit-order-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.limit-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

.limit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.limit-type-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.limit-type-pill.buy {
  background: #dcfce7;
  color: #16a34a;
}

.limit-type-pill.sell {
  background: #fee2e2;
  color: #dc2626;
}

.limit-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.limit-meta-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
}

.limit-meta-val {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.btn-cancel-limit-order {
  padding: 6px 13px;
  border-radius: 10px;
  border: 1.5px solid #fecdd3;
  background: #fff1f2;
  color: #e11d48;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-cancel-limit-order:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.btn-cancel-limit-order:active {
  transform: scale(0.95);
}

/* ==========================================================================
   AUTHENTIC ANIMATED SPLASH SCREEN (LIGHT THEME - ROYAL PURPLE ACCENTS)
   ========================================================================== */
.app-splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 25%, #ffffff 0%, #f5f3ff 45%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.splash-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px;
  max-width: 360px;
  width: 100%;
}

.splash-logo-pulse-box {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  animation: splashPulse 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.splash-glow-ring.ring-2 {
  inset: -24px;
  border-color: rgba(124, 58, 237, 0.18);
  animation-delay: 0.6s;
}

@keyframes splashPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 0.25; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

.splash-logo-badge {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.35), 0 4px 12px rgba(109, 40, 217, 0.2);
  position: relative;
  border: 3px solid #ffffff;
}

.splash-main-icon {
  font-size: 38px;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.splash-sparkle {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid #ede9fe;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
  animation: sparkleTwinkle 1.8s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.9) rotate(0deg); }
  100% { transform: scale(1.12) rotate(15deg); }
}

.splash-brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #0f172a;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.splash-brand-title .purple-accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}

.splash-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 28px 0;
  line-height: 1.45;
}

.splash-progress-track {
  width: 180px;
  height: 6px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.splash-status-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #6d28d9;
  margin-bottom: 24px;
}

.splash-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(139, 92, 246, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  color: #6d28d9;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
}

.splash-security-badge i {
  color: #7c3aed;
}

/* ==========================================================================
   DEV MODE INSTANT OTP FLOATING BANNER (ROYAL PURPLE)
   ========================================================================== */
.dev-otp-floating-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99990;
  width: calc(100% - 32px);
  max-width: 410px;
  animation: bannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dev-otp-floating-banner.hidden {
  display: none !important;
}

@keyframes bannerSlideDown {
  0% { transform: translate(-50%, -40px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.dev-banner-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(30, 27, 75, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(167, 139, 250, 0.7);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45), 0 0 24px rgba(124, 58, 237, 0.35);
  color: #ffffff;
}

.dev-banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-pill-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-pill-code {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  font-family: monospace;
}

.dev-pill-hint {
  font-size: 10.5px;
  color: #cbd5e1;
}

.btn-dev-autofill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s ease;
}

.btn-dev-autofill:active {
  transform: scale(0.95);
}

/* ==========================================================================
   AUTHENTICATION SCREENS (LOGIN, REGISTER & DEDICATED OTP VERIFICATION)
   ========================================================================== */
.screen-login-view,
.screen-otp-view {
  min-height: 100vh;
  padding: 24px 18px 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #ede9fe 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen-login-view.active,
.screen-otp-view.active {
  display: flex !important;
}

.screen-otp-view {
  justify-content: flex-start;
  padding-top: 12px;
}

.auth-screen-container {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}

.auth-header-card {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand-emblem {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #4f46e5 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
  margin-bottom: 12px;
}

.auth-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Segmented tab switch */
.auth-nav-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #ede9fe;
  border-radius: 16px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-segment-btn {
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #6d28d9;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-segment-btn.active {
  background: #ffffff;
  color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}

/* Glassmorphic Auth Box */
.auth-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  padding: 22px 20px;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
}

/* Channel selection chips */
.auth-channel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.channel-chip {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.channel-chip i {
  font-size: 15px;
}

/* Utility: Hidden Helper */
.hidden {
  display: none !important;
}

.auth-input-group.register-only.hidden {
  display: none !important;
}

/* Input Fields */
.auth-input-group {
  margin-bottom: 16px;
}

.auth-input-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.auth-input-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #7c3aed;
}

.auth-input-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input-control.with-prefix {
  padding-left: 52px;
}

.auth-input-control:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.auth-hint-text {
  font-size: 11px;
  color: #64748b;
  margin-top: 5px;
  padding-left: 2px;
}

/* Action button (Pure Royal Purple Gradient) */
.btn-auth-action {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.38);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.btn-auth-action:active {
  transform: scale(0.98);
}

/* Dedicated Screen: OTP Verification */
.otp-stage-intro {
  text-align: center;
  margin-bottom: 22px;
}

.otp-shield-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.otp-main-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.otp-prompt-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.btn-edit-target {
  background: none;
  border: none;
  color: #7c3aed;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
  margin-left: 4px;
}

.otp-digit-matrix {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.otp-matrix-cell {
  width: 48px;
  height: 54px;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.otp-matrix-cell:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}

.otp-matrix-cell.filled {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.otp-countdown-row {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
}

.countdown-text {
  color: #64748b;
}

.btn-resend-link {
  background: none;
  border: none;
  color: #7c3aed;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}



.auth-footer-security {
  text-align: center;
  font-size: 11px;
  color: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Hide curved bottom nav during authentication and verification screens */
body.auth-active .curved-notch-nav-bar,
.mobile-app-wrapper.auth-mode .curved-notch-nav-bar,
.curved-notch-nav-bar.hidden-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

