/* ==========================================================================
   GS WALLET 2.0 — PREMIUM LIGHT THEME & MOBILE APP SHELL STYLES
   ========================================================================== */

:root {
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Brand Palette: Professional Blue & GS Gold Accent */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  
  --navy-dark: #0F172A;
  --navy-card: #1E293B;
  --blue-primary: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-border: #BFDBFE;
  
  --gold-primary: #D97706;
  --gold-bright: #F59E0B;
  --gold-light: #FEF3C7;
  --gold-border: #FDE68A;
  --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  
  --success-color: #10B981;
  --success-bg: #ECFDF5;
  --error-color: #EF4444;
  --error-bg: #FEF2F2;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-focus: #2563EB;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basic Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.app-body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Blobs for Desktop */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}
.shape-blue {
  width: 360px;
  height: 360px;
  background: #3B82F6;
  top: -80px;
  left: -80px;
}
.shape-gold {
  width: 320px;
  height: 320px;
  background: #F59E0B;
  bottom: -60px;
  right: -60px;
}

/* App Viewport: Android Mobile Frame */
.app-viewport {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  max-height: 920px;
  background-color: #FFFFFF;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 480px) {
  .app-viewport {
    height: 90vh;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
  }
}

/* View Sections */
.view-section {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
}
.view-section.active {
  display: flex;
}

/* ==========================================================================
   AUTHENTICATION VIEW (OTP LOGIN)
   ========================================================================== */

#auth-view {
  overflow-y: auto;
  padding: 24px 20px;
  justify-content: center;
}

.auth-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.brand-logo-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  border: 2px solid var(--gold-border);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}
.brand-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-step {
  display: none;
}
.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.label-with-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.label-with-timer label {
  margin-bottom: 0;
}
.timer-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--error-color);
  background: var(--error-bg);
  padding: 3px 8px;
  border-radius: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
  transition: var(--transition);
}
.input-wrapper input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}
.input-wrapper input:focus {
  background-color: #FFFFFF;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.input-wrapper input:focus + .input-icon {
  color: var(--blue-primary);
}

#otp-input {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  padding-left: 20px;
}

.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.input-hint::before {
  content: 'ℹ️';
  font-size: 0.78rem;
}

/* Sent Email Badge */
.email-sent-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.82rem;
}
.badge-email {
  font-weight: 700;
  color: var(--blue-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.btn-edit-email {
  background: none;
  border: none;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.resend-row {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
}
.resend-label {
  color: var(--text-muted);
}
.btn-link {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-weight: 700;
  cursor: pointer;
}
.btn-link:disabled {
  color: var(--text-light);
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
}
.btn-support-link {
  background: none;
  border: none;
  color: var(--navy-dark);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-support-link:hover {
  background: var(--bg-page);
  color: var(--blue-primary);
}

/* ==========================================================================
   AUTHENTICATED APP SHELL & NAVIGATION
   ========================================================================== */

#authenticated-view {
  background-color: var(--bg-page);
  position: relative;
}

/* Top App Header */
.app-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-bar-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-border);
}
.bar-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bar-app-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.bar-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--gold-gradient);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 6px;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.bar-btn:hover {
  background: var(--blue-light);
  color: var(--blue-primary);
  border-color: var(--blue-border);
}
.bar-btn-logout:hover {
  background: var(--error-bg);
  color: var(--error-color);
  border-color: #FCA5A5;
}

/* Main Content Area */
.app-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 80px; /* bottom padding for fixed nav bar */
}

/* Tab Screen Switching */
.tab-screen {
  display: none;
  animation: fadeIn 0.25s ease;
}
.tab-screen.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fixed Bottom Navigation Bar */
.bottom-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 0;
  transition: var(--transition);
  border-radius: 10px;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.nav-item.active {
  color: var(--blue-primary);
}
.nav-item.active .nav-icon {
  transform: translateY(-2px);
  color: var(--blue-primary);
}
.nav-item.active .nav-label {
  color: var(--navy-dark);
  font-weight: 800;
}

/* ==========================================================================
   1. HOME SCREEN STYLES
   ========================================================================== */

/* User Welcome Card */
.user-welcome-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy-dark);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.user-welcome-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.welcome-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.user-email-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-status-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success-color);
  background: var(--success-bg);
  padding: 4px 10px;
  border-radius: 20px;
}
.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Main Balance Card */
.main-balance-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  color: #FFFFFF;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.card-bg-decoration {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.balance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.balance-label-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.balance-refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.balance-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}
.balance-amount-display {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  word-break: break-all;
}
.balance-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance-crypto-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}
.network-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Exchange Rate Card */
.exchange-rate-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.rate-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rate-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rate-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rate-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.rate-status-chip {
  font-size: 0.68rem;
  font-weight: 800;
  color: #047857;
  background: #D1FAE5;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Quick Action Buttons */
.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.btn-action {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.action-deposit:hover {
  border-color: var(--blue-primary);
}
.action-withdrawal:hover {
  border-color: var(--gold-primary);
}
.action-icon-bg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-deposit .action-icon-bg {
  background: var(--blue-light);
  color: var(--blue-primary);
}
.action-withdrawal .action-icon-bg {
  background: var(--gold-light);
  color: var(--gold-primary);
}
.action-text {
  display: flex;
  flex-direction: column;
}
.action-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.action-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Recent Activity Section */
.recent-activity-section {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.view-all-link {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.empty-activity-card {
  text-align: center;
  padding: 24px 12px;
}
.empty-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.empty-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.empty-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   2. DEPOSIT SCREEN STYLES
   ========================================================================== */

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.screen-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.network-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369A1;
  background: #E0F2FE;
  padding: 4px 10px;
  border-radius: 12px;
}

.deposit-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.address-copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 16px;
}
.tron-address-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-dark);
  word-break: break-all;
  flex: 1;
}
.btn-copy-action {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-copy-action:hover {
  background: var(--blue-hover);
}

.qr-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.qr-image-container {
  width: 160px;
  height: 160px;
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.qr-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.info-alert-card {
  display: flex;
  gap: 10px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 12px;
}
.info-alert-icon {
  font-size: 1.1rem;
}
.alert-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #B45309;
  display: block;
  margin-bottom: 2px;
}
.alert-body {
  font-size: 0.75rem;
  color: #92400E;
  line-height: 1.4;
}

.verification-card {
  border-top: 3px solid var(--blue-primary);
}
.card-subheading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.verification-status-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   3. WITHDRAWAL SCREEN STYLES
   ========================================================================== */

.avail-balance-chip {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 20px;
}
.avail-balance-chip strong {
  color: var(--gold-primary);
  font-weight: 800;
}

.withdrawal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.withdrawal-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1E40AF;
  margin-bottom: 18px;
}

.currency-prefix {
  position: absolute;
  left: 14px;
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 1.05rem;
}
.prefix-padding {
  padding-left: 32px !important;
}

.field-error-text {
  font-size: 0.76rem;
  color: var(--error-color);
  font-weight: 600;
  margin-top: 5px;
}

.status-banner-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
}
.status-banner-success {
  background: var(--success-bg);
  border: 1px solid #A7F3D0;
  color: #047857;
}
.status-banner-processing {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}
.status-banner-error {
  background: var(--error-bg);
  border: 1px solid #FCA5A5;
  color: #B91C1C;
}

/* ==========================================================================
   4. HISTORY SCREEN STYLES
   ========================================================================== */

.history-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.filter-btn {
  flex: 1;
  padding: 8px 12px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active {
  background: #FFFFFF;
  color: var(--navy-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.history-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-history-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
}
.empty-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.empty-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Transaction Card Row */
.tx-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.tx-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tx-type-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tx-type-deposit {
  background: var(--blue-light);
  color: var(--blue-primary);
}
.tx-type-withdrawal {
  background: var(--gold-light);
  color: var(--gold-primary);
}
.tx-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tx-card-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.tx-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.tx-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.tx-card-amount {
  font-size: 0.95rem;
  font-weight: 800;
}
.tx-amount-in { color: #047857; }
.tx-amount-out { color: var(--navy-dark); }

.tx-status-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-completed { background: #D1FAE5; color: #047857; }
.tag-pending { background: #FEF3C7; color: #B45309; }
.tag-processing { background: #DBEAFE; color: #1E40AF; }
.tag-failed { background: #FEE2E2; color: #B91C1C; }

/* ==========================================================================
   TELEGRAM / SUPPORT MODAL
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-title-wrap h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.support-modal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--navy-dark);
  transition: var(--transition);
}
.support-channel-card:hover {
  background: var(--blue-light);
  border-color: var(--blue-border);
  transform: translateY(-1px);
}
.channel-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.telegram-official-icon {
  background: #0088CC;
  color: #FFFFFF;
}
.telegram-cs-icon {
  background: #2AABEE;
  color: #FFFFFF;
}
.channel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.channel-name {
  font-size: 0.88rem;
  font-weight: 800;
}
.channel-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.external-arrow {
  color: var(--text-light);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
}
.toast-error {
  background: var(--navy-dark);
  color: #F87171;
  border-left: 4px solid var(--error-color);
}
.toast-success {
  background: var(--navy-dark);
  color: #34D399;
  border-left: 4px solid var(--success-color);
}
.toast-info {
  background: var(--navy-dark);
  color: #60A5FA;
  border-left: 4px solid var(--blue-primary);
}

/* Spinner Loader */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.spinner-sm {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border-light);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.loading .btn-text {
  visibility: hidden;
}
.btn.loading .btn-loader {
  display: block;
  position: absolute;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Phase 3 — Rejected Status Tag */
.tag-rejected {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
