/* ==========================================================================
   Sadad (سداد) Digital P2P Wallet - Production Design System
   Alexandria for Arabic UI | Outfit for Distinct Financial Numbers | RTL/LTR
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Dark Neobank Theme */
  --bg-main: #090d16;
  --bg-surface: #111827;
  --bg-surface-glass: rgba(17, 24, 39, 0.85);
  --bg-surface-elevated: #1e293b;
  --bg-card-gradient: linear-gradient(135deg, #064e3b 0%, #047857 40%, #0f172a 100%);
  
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --primary-hover: #059669;
  --primary-light: #d1fae5;
  --primary-dark: #064e3b;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-indigo: #6366f1;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #0f172a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Dimensions & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Typography Hierarchy:
     1. Text UI (Arabic): Alexandria - Ultra-crisp geometric modern Arabic
     2. Text UI (English): Plus Jakarta Sans - Sleek international interface
     3. Financial Numbers: Outfit & Sora - Distinct, premium, tabular numerals
  */
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ar: 'Alexandria', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-current: var(--font-ar);
  --font-numbers: 'Outfit', 'Sora', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.9);
  --bg-surface-elevated: #f1f5f9;
  --bg-card-gradient: linear-gradient(135deg, #059669 0%, #047857 50%, #064e3b 100%);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glass: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-current);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

/* RTL / LTR Switching */
[dir="rtl"] {
  --font-current: var(--font-ar);
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  --font-current: var(--font-en);
  direction: ltr;
  text-align: left;
}

/* ==========================================================================
   ANTI-FOUC: INSTANT ACTIVE SESSION STATE (ZERO FLASH OF LOGIN SCREEN)
   ========================================================================== */
.auth-session-active #authSection {
  display: none !important;
}

.auth-session-active #dashboardSection {
  display: grid !important;
}

.auth-session-active #logoutBtn {
  display: inline-flex !important;
}

/* ==========================================================================
   PREMIUM NUMBERS & BIDI ISOLATION STYLING
   Distinct, bold, tabular numbers with proper RTL/LTR isolation
   ========================================================================== */
.num-font,
.balance-amount,
.balance-num,
.stat-value,
.tx-amount,
.pin-digit-box,
.receipt-amount-display,
.amount-pill,
.card-phone-number,
.phone-num,
.code-digits,
#receiptRefId,
#summaryTotalDeduction {
  font-family: var(--font-numbers) !important;
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum" 1;
  -webkit-font-feature-settings: "tnum" 1;
  font-feature-settings: "tnum" 1;
  font-weight: 700;
}

/* Bidi Isolation for Phone Numbers and Amounts */
.bidi-phone,
.card-phone-number,
.phone-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.num-font[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

.currency-tag,
.balance-currency {
  font-family: var(--font-current);
  font-weight: 600;
  margin-inline-start: 0.3rem;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Fluid Responsive Container */
.app-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .app-wrapper {
    padding: 1.25rem 1.75rem 3rem;
  }
}

/* --- Header & Top Navbar (Balanced Proportions & Sizing) --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.95rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  gap: 0.65rem;
  transition: all var(--transition-normal);
}

@media (min-width: 768px) {
  .header {
    padding: 0.75rem 1.35rem;
    margin-bottom: 2rem;
  }
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .brand-logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .brand-name {
    font-size: 1.25rem;
  }
}

.brand-name .brand-ar {
  font-family: 'Alexandria', var(--font-ar), system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name .brand-en {
  font-family: var(--font-numbers);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-name .highlight {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: none;
}

@media (min-width: 520px) {
  .brand-tagline {
    display: inline-block;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Icon Buttons */
.btn-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .btn-icon {
    width: 38px;
    height: 38px;
    font-size: 0.98rem;
  }
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

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

/* Language Toggle Pill Button (Fixed with crisp Alexandria font for Image 2) */
.btn-pill,
#langToggleBtn {
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#langBtnText {
  font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.82rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .btn-pill,
  #langToggleBtn {
    padding: 0.42rem 0.92rem;
    font-size: 0.84rem;
  }
}

.btn-pill:hover,
#langToggleBtn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Auth Card / View --- */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 1rem 0 2rem;
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  .auth-card {
    padding: 2.25rem 2rem;
  }
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

@media (min-width: 480px) {
  .auth-header h1 {
    font-size: 1.7rem;
  }
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Auth Tabs */
.tab-group {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-container {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
  gap: 0.65rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-surface);
}

.input-icon {
  position: static;
  color: var(--text-muted);
  font-size: 1.05rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none !important;
  box-shadow: none !important;
  transition: none;
}

.form-input[type="tel"],
.form-input[type="number"] {
  font-family: var(--font-numbers);
  letter-spacing: 0.5px;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-current);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Egyptian Phone Prefix Component */
.phone-input-wrapper {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.country-code-badge {
  padding: 0.8rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  flex-shrink: 0;
  font-family: var(--font-numbers);
}

/* 4-Digit PIN Input Group */
.pin-input-group {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  direction: ltr; /* Always LTR for consistent digit entry */
  width: 100%;
}

@media (min-width: 400px) {
  .pin-input-group {
    gap: 0.75rem;
  }
}

.pin-digit-box {
  flex: 1;
  max-width: 68px;
  min-width: 44px;
  aspect-ratio: 1 / 1.08;
  height: auto;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--primary);
  outline: none;
  transition: all var(--transition-fast);
  padding: 0;
  font-family: var(--font-numbers) !important;
}

.pin-digit-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  transform: translateY(-2px);
  background: var(--bg-surface);
}

.pin-digit-box.filled {
  border-color: rgba(16, 185, 129, 0.45);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 0.88rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

/* --- Dashboard Screen Layout --- */
.dashboard-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-out;
  width: 100%;
}

@media (min-width: 960px) {
  .dashboard-view {
    grid-template-columns: 390px 1fr;
    align-items: start;
    gap: 1.75rem;
  }
}

@media (min-width: 1120px) {
  .dashboard-view {
    grid-template-columns: 420px 1fr;
    gap: 2rem;
  }
}

/* Virtual Wallet Card */
.wallet-card-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.virtual-card {
  width: 100%;
  background: var(--bg-card-gradient);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 4vw, 1.85rem);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.virtual-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(16, 185, 129, 0.3);
}

.virtual-card::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.virtual-card::after {
  content: 'سداد';
  position: absolute;
  bottom: -20px;
  inset-inline-start: -15px;
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.card-chip {
  width: 42px;
  height: 30px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.card-chip::before {
  content: '';
  position: absolute;
  inset: 5px 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.card-balance-block {
  margin-bottom: 1.75rem;
}

.balance-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.balance-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.balance-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.balance-toggle-btn:hover {
  color: white;
  transform: scale(1.1);
}

.balance-amount {
  font-size: clamp(2rem, 6.5vw, 2.5rem);
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 2.8rem;
  line-height: 1.2;
}

.balance-currency {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  opacity: 0.9;
}

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

.card-user-info {
  display: flex;
  flex-direction: column;
}

.card-user-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.card-phone-number {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-copy-phone {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-copy-phone:hover {
  background: rgba(255, 255, 255, 0.3);
}

.card-brand-label {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-family: var(--font-numbers);
}

/* Quick Action Buttons Grid */
.quick-actions-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

@media (min-width: 480px) {
  .quick-actions-card {
    padding: 1.5rem;
  }
}

.card-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .actions-grid {
    gap: 0.85rem;
  }
}

.action-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  width: 100%;
}

.action-icon-wrap.indigo {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
}

.action-btn-item:hover .action-icon-wrap.indigo {
  background: var(--accent-indigo);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Payment Method Cards for Recharge */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method-card input {
  display: none;
}

.payment-method-card.active,
.payment-method-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
}

.action-btn-item:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--primary);
}

.action-btn-item:active {
  transform: scale(0.96);
}

.action-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.action-btn-item:hover .action-icon-wrap {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.action-icon-wrap.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}
.action-btn-item:hover .action-icon-wrap.cyan {
  background: var(--accent-cyan);
  color: white;
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
}

/* Financial Summary Stats */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.stat-header {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.stat-value {
  font-size: clamp(0.98rem, 3.2vw, 1.15rem);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: baseline;
}

.stat-value.incoming {
  color: var(--success);
}

.stat-value.outgoing {
  color: var(--danger);
}

/* --- Transaction Ledger Section --- */
.ledger-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  width: 100%;
}

@media (min-width: 600px) {
  .ledger-container {
    padding: 1.75rem;
  }
}

.ledger-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 680px) {
  .ledger-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ledger-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-surface-elevated);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ledger-tabs::-webkit-scrollbar {
  display: none;
}

.ledger-tab-btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.ledger-tab-btn.active {
  background: var(--primary);
  color: white;
}

.search-box {
  position: relative;
  width: 100%;
}

@media (min-width: 680px) {
  .search-box {
    max-width: 260px;
  }
}

.search-icon {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  padding-inline-start: 2.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
}

/* Transaction List Items */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  flex: 1;
  padding-inline-end: 0.15rem;
}

.transaction-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .transaction-card {
    padding: 1rem 1.15rem;
    gap: 1rem;
  }
}

.transaction-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

[dir="rtl"] .transaction-card:hover {
  transform: translateX(-3px);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

@media (min-width: 480px) {
  .tx-left {
    gap: 0.85rem;
  }
}

.tx-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .tx-icon-badge {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

.tx-icon-badge.incoming {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tx-icon-badge.outgoing {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.tx-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  overflow: hidden;
}

.tx-person {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .tx-person {
    font-size: 0.92rem;
  }
}

.tx-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-numbers);
}

.tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.tx-amount {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
}

@media (min-width: 480px) {
  .tx-amount {
    font-size: 1.1rem;
  }
}

.tx-amount.incoming {
  color: var(--success);
}

.tx-amount.outgoing {
  color: var(--danger);
}

.tx-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: var(--success);
}

/* Empty State */
.empty-ledger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  gap: 0.65rem;
  margin: auto;
}

.empty-icon {
  font-size: 2.75rem;
  opacity: 0.5;
}

/* --- Modals & Overlays --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 1.25rem;
  }
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.25rem 2.25rem;
  position: relative;
  transform: translateY(100%);
  transition: transform var(--transition-bounce);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal-sheet {
    max-width: 480px;
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    transform: translateY(20px) scale(0.96);
  }
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0) scale(1);
}

.modal-drag-handle {
  width: 42px;
  height: 4px;
  background: var(--border-glass);
  border-radius: var(--radius-full);
  margin: -0.75rem auto 1.25rem;
  display: block;
}

@media (min-width: 640px) {
  .modal-drag-handle {
    display: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .modal-title {
    font-size: 1.25rem;
  }
}

.modal-close-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Quick Amount Pills */
.quick-amount-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.amount-pill {
  flex: 1;
  min-width: 60px;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.amount-pill:hover, .amount-pill.selected {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* Confirmation Box inside Modal */
.transfer-summary-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

.summary-label {
  color: var(--text-secondary);
}

.summary-val {
  font-weight: 700;
  color: var(--text-primary);
}

.summary-total {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.65rem;
  margin-top: 0.2rem;
}

.summary-total .summary-val {
  font-size: 1.15rem;
  color: var(--primary);
}

/* Transaction Receipt Modal Styles */
.receipt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
}

.receipt-status-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.receipt-amount-display {
  font-size: clamp(2rem, 5.5vw, 2.35rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.receipt-table {
  width: 100%;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid var(--border-color);
  text-align: start;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1rem;
  inset-inline-end: 1rem;
  inset-inline-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 200;
  pointer-events: none;
}

@media (min-width: 480px) {
  .toast-container {
    inset-inline-start: auto;
    max-width: 420px;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
  }
}

.toast {
  pointer-events: auto;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  bottom: 0;
  width: 4px;
}

.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast.info::before { background: var(--accent-cyan); }
.toast.warning::before { background: var(--warning); }

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--accent-cyan); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-message {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}

/* Shake Animation on PIN Error */
.shake-animation {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Spinner Loader */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   HERO AMOUNT INPUT BOX (FINTECH GRADE & ZERO OVERLAP)
   ========================================================================== */
.recharge-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.recharge-hero-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 8px 24px rgba(16, 185, 129, 0.15);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
}

.hero-amount-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-amount-input {
  font-family: var(--font-numbers) !important;
  font-size: clamp(2.2rem, 7vw, 2.75rem) !important;
  font-weight: 800 !important;
  color: var(--text-primary);
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-align: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0;
  letter-spacing: 1px;
}

.hero-amount-input::-webkit-outer-spin-button,
.hero-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hero-amount-input[type=number] {
  -moz-appearance: textfield;
}

.hero-currency-tag {
  font-family: var(--font-current);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-amount-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.badge-instant-recharge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-instant-recharge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Direct Instant Recharge Banner (No Card Required) */
.instant-direct-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  margin: 0.85rem 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.direct-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.direct-banner-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
}

.direct-banner-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* ==========================================================================
   BANK CARD RECHARGE CHECKOUT & METHOD SELECTOR
   ========================================================================== */
.badge-single-method {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-method-card {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  transition: all var(--transition-fast);
}

.payment-method-card.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.method-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.method-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.method-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.method-card-title {
  font-size: 0.92rem;
  color: var(--text-primary);
  display: block;
}

.method-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.bank-card-checkout-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-label-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.card-brand-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.meeza-badge {
  background: #008752;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

/* ==========================================================================
   TRANSACTION DELETION & MODAL ACTIONS
   ========================================================================== */
.tx-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-tx-delete {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  padding: 0;
}

.btn-tx-delete:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(244, 63, 94, 0.35);
  transform: scale(1.1);
}

.btn-danger {
  width: 100%;
  padding: 0.8rem 1.15rem;
  background: linear-gradient(135deg, var(--danger) 0%, #e11d48 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
  transition: all var(--transition-fast);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

.btn-danger-outline {
  padding: 0.8rem 1.15rem;
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger-outline:hover {
  background: var(--danger-bg);
  transform: translateY(-2px);
}

.delete-icon-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--danger-bg);
  border: 2px solid var(--danger);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin: 0 auto 1rem;
  animation: pulseDanger 2s infinite;
}

@keyframes pulseDanger {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.delete-tx-info-card {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: start;
}

.receipt-actions-wrapper {
  margin-top: 0.5rem;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 480px) {
  .app-wrapper {
    padding: 0.5rem 0.65rem 2.5rem;
  }
  .header {
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .user-badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  .modal-sheet {
    padding: 1.25rem 0.95rem 1.75rem;
    border-radius: 20px 20px 0 0;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.35rem !important;
  }
  .action-card {
    padding: 0.65rem 0.2rem !important;
  }
  .action-icon-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
  .action-title {
    font-size: 0.72rem !important;
  }
  .transaction-card {
    padding: 0.7rem 0.75rem !important;
  }
  .tx-amount {
    font-size: 0.92rem !important;
  }
}

/* Print Styles for Receipts */
@media print {
  body * {
    visibility: hidden;
  }
  .receipt-container, .receipt-container * {
    visibility: visible;
  }
  .receipt-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: black;
    background: white;
  }
}
