/* ====================================================
   🎨 eXchCrpT MAIN.CSS - Version loaded dynamically - ÚNICO CSS PERMITIDO
   Midnight Teal Banking Design System
   Mobile-First | PWA Ready | Theme Switching
   ==================================================== */

/* === CSS VARIABLES - Midnight Teal Banking === */
:root {
  /* Primary - Midnight Teal Banking */
  --primary: #008B8B;
  --primary-dark: #006666;
  --primary-light: #4DCCCC;
  --primary-50: rgba(0, 139, 139, 0.05);
  --primary-100: rgba(0, 139, 139, 0.1);
  --primary-500: rgba(0, 139, 139, 0.5);
  --primary-900: rgba(0, 139, 139, 0.9);
  
  /* Secondary - Professional Gray */
  --secondary: #2C3E50;
  --secondary-light: #95A5A6;
  --secondary-dark: #1A252F;
  
  /* Tertiary - Dynamic Contrast (Theme Switching) */
  --tertiary: #FFFFFF;
  --tertiary-contrast: #1A1A1A;
  
  /* Status Colors */
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  
  /* Background System */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #E9ECEF;
  
  /* Text System */
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-muted: #BDC3C7;
  --text-inverse: #FFFFFF;
  
  /* Border & Shadow */
  --border: #DEE2E6;
  --border-light: #E9ECEF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  
  /* Typography Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.25s ease-out;
  --transition-slow: 0.4s ease-out;
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 500;
  --z-toast: 800;
  
  /* Layout Constants */
  --max-width: 1200px;
  --nav-height: 64px;
  
  /* Main CTA Button - Light Theme (Verde claro como línea footer) */
  --cta-bg: var(--success);
  --cta-hover-bg: #219A52;
  
  /* Dashboard Variables - Enhanced Theme Switching */
  --hero-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --card-bg: rgba(255,255,255,0.1);
  --card-border: rgba(255,255,255,0.2);
  --dashboard-card-bg: var(--bg-primary);
  --dashboard-card-border: var(--border);
  --dashboard-card-hover-bg: var(--bg-secondary);
  --balance-card-bg: #F8F9FA;
  --balance-card-border: #DEE2E6;
  --action-card-bg: #E9ECEF;
  --action-card-border: #DEE2E6;
  --action-card-hover-bg: #DEE2E6;
  --secondary-button-bg: rgba(255,255,255,0.5);
  --secondary-button-border: var(--border);
  --secondary-button-hover-bg: var(--bg-tertiary);
}

/* === DARK THEME === */
[data-theme="dark"] {
  --tertiary: #1A1A1A;
  --tertiary-contrast: #FFFFFF;
  
  --bg-primary: #1A2B2B;
  --bg-secondary: #2D3E3E;
  --bg-tertiary: #404F4F;
  
  --text-primary: var(--primary-light);
  --text-secondary: #B0B0B0;
  --text-muted: #808080;
  --text-inverse: #1A1A1A;
  
  --border: #404040;
  --border-light: #2D2D2D;
  
  /* Main CTA Button - Dark Theme (Color de línea footer) */
  --cta-bg: var(--primary-light);
  --cta-hover-bg: var(--primary);
  
  /* Dashboard Variables - Dark Theme Enhanced */
  --hero-gradient: linear-gradient(135deg, rgba(20,35,35,0.95) 0%, rgba(35,50,50,0.98) 100%);
  --card-bg: rgba(77, 204, 204, 0.1);
  --card-border: rgba(77, 204, 204, 0.2);
  --dashboard-card-bg: var(--bg-secondary);
  --dashboard-card-border: var(--border);
  --dashboard-card-hover-bg: var(--bg-tertiary);
  --balance-card-bg: #3A3A3A;
  --balance-card-border: #555555;
  --action-card-bg: #404040;
  --action-card-border: #555555;
  --action-card-hover-bg: #4A4A4A;
  --secondary-button-bg: #404040;
  --secondary-button-border: rgba(77,204,204,0.2);
  --secondary-button-hover-bg: rgba(77,204,204,0.15);
}

/* === GLOBAL RESET & BASE === */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* === LOADING SCREEN === */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all var(--transition-base);
}

.loading-content {
  text-align: center;
  color: white;
}

/* Dark theme loading content adjustments */
[data-theme="dark"] .loading-content {
  color: var(--primary-light);
}

.loading-content .logo {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: var(--space-md);
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  -webkit-text-stroke: 1px white;
  text-stroke: 1px white;
  transition: color var(--transition-base);
}

/* Dark theme loading logo */
[data-theme="dark"] .loading-content .logo {
  color: var(--primary-light);
}

.loading-content .version {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* === LAYOUT COMPONENTS === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* === HEADER COMPONENT === */
.header {
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
}

/* Dark theme header - keep it black */
[data-theme="dark"] .header {
  background: #1A1A1A;
  border-bottom: 1px solid #404040;
}

.header .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  width: 100%;
}

/* === LOGO COMPONENT === */
.logo {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

/* === NAVIGATION === */
.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-shrink: 0;
}

/* === BUTTON SYSTEM === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: none;
  min-height: 44px; /* Touch target */
  gap: var(--space-sm);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 139, 139, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--cta-bg);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 139, 139, 0.3);
  transition: all var(--transition-base);
}

/* Dark theme button text adjustment */
[data-theme="dark"] .btn-success {
  color: #1A1A1A;
}

.btn-success:hover {
  background: var(--cta-hover-bg);
  box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: 2px solid var(--danger);
}

.btn-danger:hover {
  background: #C0392B;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  min-height: 36px;
}

/* === HERO SECTION === */
.hero {
  min-height: 60vh;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding: var(--space-xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-title .primary-text {
  color: var(--primary);
  -webkit-text-stroke: 1px white;
  text-stroke: 1px white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title .secondary-text {
  color: var(--secondary-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title .tertiary-text {
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === BRAND ANIMATION === */
.brand-animated {
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  color: var(--primary);
  display: inline-flex;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform-origin: center;
  -webkit-text-stroke: 1px white;
  text-stroke: 1px white;
  letter-spacing: 0.1em;
  min-width: 8ch; /* Fixed width to prevent layout shifts */
  justify-content: center;
  transition: letter-spacing 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-letter {
  display: inline-block;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
  color: inherit;
  text-shadow: inherit;
  opacity: 1;
  transform: scale(1);
  width: auto;
  overflow: hidden;
}

.core-letter {
  /* X, C, T letters - core brand letters */
  z-index: 1;
}

.extra-letter {
  /* e, h, r, p, T letters - fade smoothly */
  /* Initial state set via JavaScript */
}

.product-line {
  display: flex;
  gap: var(--space-md);
  font-size: 1em;
  opacity: 0.95;
}

.hero-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* === BADGES GRID === */
.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.badge:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.badge-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.badge-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
}

/* === MODAL SYSTEM === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin: auto;
}

.modal-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px; /* Increased from var(--text-xl) to match icon button size */
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  width: 44px;  /* Same as icon buttons */
  height: 44px; /* Same as icon buttons */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  transform: scale(1.1);
}

.modal-close-text {
  font-size: var(--text-xs);
  margin-top: 2px;
  line-height: 1;
  font-weight: 500;
}

.modal-body {
  padding: var(--space-md) var(--space-lg);
}

/* === MODAL SPECIFIC COMPONENTS === */
.modal-xct-logo {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  -webkit-text-stroke: 1px var(--primary);
  text-stroke: 1px var(--primary);
  margin-bottom: 1rem;
}

.modal-exchcrpt-title {
  color: var(--primary);
  font-weight: 900;
  font-size: var(--text-xl);
  margin: 0;
}

/* === DARK THEME MODAL ADJUSTMENTS === */
[data-theme="dark"] .modal-xct-logo {
  color: white;
  -webkit-text-stroke: 1px var(--primary);
  text-stroke: 1px var(--primary);
}

[data-theme="light"] .modal-xct-logo {
  color: white;
  -webkit-text-stroke: 1px var(--primary);
  text-stroke: 1px var(--primary);
}

/* === MODAL TABS === */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(0, 139, 139, 0.1);
}

.config-tab-content {
  display: none;
}

.config-tab-content.active {
  display: block;
}

/* === DASH SWITCH === */
.dash-switch-container {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: var(--space-xs);
}

.dash-greeting {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.dash-switch {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dash-switch.user-active {
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.dash-switch.admin-active {
  border-bottom: 2px solid #ff6b35;
  border-left: 2px solid #ff6b35;
  border-right: 2px solid #ff6b35;
}

.dash-btn {
  background: none;
  border: none;
  padding: 2px var(--space-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-xs);
}

.dash-btn.active {
  font-size: var(--text-sm);
  padding: var(--space-xs);
}

.user-active .user-dash.active {
  background: rgba(0, 139, 139, 0.1);
}

.user-active .admin-dash:not(.active) {
  border-bottom: 2px dashed #ffa500;
  color: #ffa500;
}

.admin-active .admin-dash.active {
  background: rgba(255, 107, 53, 0.1);
}

.admin-active .user-dash:not(.active) {
  border-top: 2px dashed var(--primary);
  color: var(--primary);
}

.user-dash {
  color: var(--primary);
}

.admin-dash {
  color: #ff6b35;
}

/* === INSTALL BUTTON FLOATING === */
.install-btn-floating {
  position: absolute;
  top: calc(100% + 18px);
  left: -13px;
  background: var(--bg-primary);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  min-height: 36px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  animation: pulse 3s infinite;
  z-index: 10;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.install-btn-floating .svg-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
}

.install-btn-floating:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.install-text-floating {
  display: inline;
  vertical-align: baseline;
  line-height: 1;
  margin-top: 3px;
}

@keyframes pulse {
  0%, 70%, 100% { transform: scale(1); }
  35% { transform: scale(1.1); }
}

@media (max-width: 480px) {
  .install-text-floating {
    display: none;
  }
  .install-btn-floating {
    padding: var(--space-sm);
    min-width: 36px;
    min-height: 36px;
    top: calc(100% + 6px);
  }
}

/* === SINGLE USER BUTTON === */
.user-name-btn {
  background: none;
  border: 2px solid var(--primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: var(--space-xs);
  color: var(--primary);
}

.user-name-btn:hover {
  background: var(--primary);
  color: white;
}

/* === MODAL COMPACT LAYOUT === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.feature-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.feature-col > div {
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
}

.contact-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}

.contact-compact > div {
  padding: var(--space-xs) 0;
}

/* === FORM COMPONENTS === */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* === COMPACT FORM COMPONENTS === */
.form-group-compact {
  margin-bottom: var(--space-md);
}

.form-input-compact {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.form-input-compact:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-100);
}

.form-input-compact::placeholder {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* === FLAG SVG SPRITES === */
.flag-ve { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%23FFCC00"/><rect y="6.67" width="30" height="6.67" fill="%23003893"/><rect y="13.33" width="30" height="6.67" fill="%23CF0921"/><circle cx="12" cy="10" r="0.8" fill="white"/><circle cx="15" cy="10" r="0.8" fill="white"/><circle cx="18" cy="10" r="0.8" fill="white"/></svg>'); }
.flag-ar { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%2374ACDF"/><rect y="6.67" width="30" height="6.67" fill="white"/><rect y="13.33" width="30" height="6.67" fill="%2374ACDF"/><circle cx="15" cy="10" r="2" fill="none" stroke="%23FFAA00" stroke-width="0.8"/><path d="M15,8.5 L15.5,9.5 L16.5,9.5 L15.8,10.2 L16,11.2 L15,10.5 L14,11.2 L14.2,10.2 L13.5,9.5 L14.5,9.5 Z" fill="%23FFAA00"/></svg>'); }
.flag-br { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="%23009639"/><polygon points="15,4 24,10 15,16 6,10" fill="%23FFDF00"/><circle cx="15" cy="10" r="3.5" fill="%23002868"/><path d="M12,12 Q15,8 18,12" stroke="white" stroke-width="0.3" fill="none"/></svg>'); }
.flag-eu { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="%23003399"/><g fill="%23FFFF00"><circle cx="15" cy="6" r="0.8"/><circle cx="18" cy="7" r="0.8"/><circle cx="20" cy="10" r="0.8"/><circle cx="18" cy="13" r="0.8"/><circle cx="15" cy="14" r="0.8"/><circle cx="12" cy="13" r="0.8"/><circle cx="10" cy="10" r="0.8"/><circle cx="12" cy="7" r="0.8"/></g></svg>'); }
.flag-mx { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="10" height="20" fill="%23006847"/><rect x="10" width="10" height="20" fill="white"/><rect x="20" width="10" height="20" fill="%23CE1126"/></svg>'); }
.flag-pa { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="15" height="10" fill="white"/><rect x="15" width="15" height="10" fill="%23DA121A"/><rect y="10" width="15" height="10" fill="%23DA121A"/><rect x="15" y="10" width="15" height="10" fill="white"/><rect x="18" y="2" width="2" height="6" fill="%23005CE6"/><rect x="16" y="4" width="6" height="2" fill="%23005CE6"/><path d="M5,3 L6,5 L8,5 L6.5,6.5 L7,8 L5,7 L3,8 L3.5,6.5 L2,5 L4,5 Z" fill="%23005CE6"/></svg>'); }
.flag-sv { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%23002868"/><rect y="6.67" width="30" height="6.67" fill="white"/><rect y="13.33" width="30" height="6.67" fill="%23002868"/></svg>'); }
.flag-co { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="10" fill="%23FFCD00"/><rect y="10" width="30" height="5" fill="%23003893"/><rect y="15" width="30" height="5" fill="%23C8102E"/></svg>'); }
.flag-pe { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="10" height="20" fill="%23D91023"/><rect x="10" width="10" height="20" fill="white"/><rect x="20" width="10" height="20" fill="%23D91023"/></svg>'); }
.flag-uy { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="2.22" fill="white"/><rect y="2.22" width="30" height="2.22" fill="%23002868"/><rect y="4.44" width="30" height="2.22" fill="white"/><rect y="6.67" width="30" height="2.22" fill="%23002868"/><rect y="8.89" width="30" height="2.22" fill="white"/><rect y="11.11" width="30" height="2.22" fill="%23002868"/><rect y="13.33" width="30" height="2.22" fill="white"/><rect y="15.56" width="30" height="2.22" fill="%23002868"/><rect y="17.78" width="30" height="2.22" fill="white"/><rect width="12" height="10" fill="%23002868"/><circle cx="6" cy="5" r="1.5" fill="%23FCD116"/><path d="M6,3.5 L6.5,4.5 L7.5,4.5 L6.8,5.2 L7,6.2 L6,5.5 L5,6.2 L5.2,5.2 L4.5,4.5 L5.5,4.5 Z" fill="%23FCD116"/></svg>'); }
.flag-cl { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="10" fill="white"/><rect y="10" width="30" height="10" fill="%23D52B1E"/><rect width="10" height="10" fill="%230F47AF"/></svg>'); }
.flag-ec { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="10" fill="%23FFD100"/><rect y="10" width="30" height="5" fill="%23003893"/><rect y="15" width="30" height="5" fill="%23CE1126"/></svg>'); }
.flag-pr { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="4" fill="%23ED0000"/><rect y="4" width="30" height="4" fill="white"/><rect y="8" width="30" height="4" fill="%23ED0000"/><rect y="12" width="30" height="4" fill="white"/><rect y="16" width="30" height="4" fill="%23ED0000"/><polygon points="0,0 0,20 15,10" fill="%23002868"/></svg>'); }
.flag-us { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="1.54" fill="%23B22234"/><rect y="1.54" width="30" height="1.54" fill="white"/><rect y="3.08" width="30" height="1.54" fill="%23B22234"/><rect y="4.62" width="30" height="1.54" fill="white"/><rect y="6.15" width="30" height="1.54" fill="%23B22234"/><rect y="7.69" width="30" height="1.54" fill="white"/><rect y="9.23" width="30" height="1.54" fill="%23B22234"/><rect y="10.77" width="30" height="1.54" fill="white"/><rect y="12.31" width="30" height="1.54" fill="%23B22234"/><rect y="13.85" width="30" height="1.54" fill="white"/><rect y="15.38" width="30" height="1.54" fill="%23B22234"/><rect y="16.92" width="30" height="1.54" fill="white"/><rect y="18.46" width="30" height="1.54" fill="%23B22234"/><rect width="12" height="10.77" fill="%233C3B6E"/></svg>'); }
.flag-do { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="white"/><rect width="30" height="8" fill="%23002D62"/><rect y="12" width="30" height="8" fill="%23CE1126"/><rect x="12" width="6" height="20" fill="white"/><rect y="8" width="30" height="4" fill="white"/></svg>'); }
.flag-py { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%23D52B1E"/><rect y="6.67" width="30" height="6.67" fill="white"/><rect y="13.33" width="30" height="6.67" fill="%23003893"/></svg>'); }
.flag-bo { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%23D52B1E"/><rect y="6.67" width="30" height="6.67" fill="%23FFD100"/><rect y="13.33" width="30" height="6.67" fill="%23007934"/></svg>'); }
.flag-cn { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="%23DE2910"/><path d="M5,4 L6,6 L8,6 L6.5,7.5 L7,9 L5,8 L3,9 L3.5,7.5 L2,6 L4,6 Z" fill="%23FFDE00"/><circle cx="10" cy="3" r="0.5" fill="%23FFDE00"/><circle cx="12" cy="4" r="0.5" fill="%23FFDE00"/><circle cx="12" cy="6" r="0.5" fill="%23FFDE00"/><circle cx="10" cy="7" r="0.5" fill="%23FFDE00"/></svg>'); }
.flag-ca { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="10" height="20" fill="%23FF0000"/><rect x="10" width="10" height="20" fill="white"/><rect x="20" width="10" height="20" fill="%23FF0000"/><path d="M15,6 L16,8 L18,8 L16.5,9.5 L17,11 L15,10 L13,11 L13.5,9.5 L12,8 L14,8 Z" fill="%23FF0000"/></svg>'); }
.flag-cr { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="4" fill="%23002B7F"/><rect y="4" width="30" height="4" fill="white"/><rect y="8" width="30" height="4" fill="%23C8102E"/><rect y="12" width="30" height="4" fill="white"/><rect y="16" width="30" height="4" fill="%23002B7F"/></svg>'); }
.flag-hn { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%230F47AF"/><rect y="6.67" width="30" height="6.67" fill="white"/><rect y="13.33" width="30" height="6.67" fill="%230F47AF"/></svg>'); }
.flag-gt { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="10" height="20" fill="%234997D0"/><rect x="10" width="10" height="20" fill="white"/><rect x="20" width="10" height="20" fill="%234997D0"/></svg>'); }
.flag-ni { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%230F47AF"/><rect y="6.67" width="30" height="6.67" fill="white"/><rect y="13.33" width="30" height="6.67" fill="%230F47AF"/></svg>'); }

/* === FOOTER === */
.footer {
  background: rgba(0,120,120,0.95);
  border-top: 3px solid var(--success);
  padding: var(--space-2xl) 0;
  margin-top: auto;
  color: white;
  transition: all var(--transition-base);
}

/* Dark theme footer adjustments */
[data-theme="dark"] .footer {
  background: rgba(0,139,139,0.12);
  border-top: 3px solid var(--primary-light);
  color: var(--primary-light);
}

.flags-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.flag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Dark theme flag borders */
[data-theme="dark"] .flag-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
}

[data-theme="dark"] .flag-item:hover {
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.2);
}

.flag-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flag-svg {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-size: cover;
  background-position: center;
}

.flag-code {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.footer-text {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
}

/* === RESPONSIVE BREAKPOINTS === */

/* Mobile First - Default styles above are for mobile */

/* Tablet - 768px and up */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .badges-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    max-width: 500px;
  }
  
  .modal-content {
    width: 500px;
  }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
  .badges-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    max-width: 600px;
    gap: var(--space-xl);
  }
  
  .badge {
    min-height: 120px;
    padding: var(--space-2xl);
  }
  
  .hero-title {
    font-size: 4rem;
  }
}

/* Large Desktop - 1280px and up */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* === UTILITY CLASSES === */
.hidden {
  display: none;
}

.visible {
  display: block;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-primary {
  color: var(--primary);
}

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

.text-muted {
  color: var(--text-muted);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* === PWA SPECIFIC STYLES === */
@media (display-mode: standalone) {
  .header {
    padding-top: env(safe-area-inset-top);
  }
  
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* === VERSION DISPLAY (Legacy - will be replaced by positioned version) === */
.version-display {
  position: fixed;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  z-index: var(--z-dropdown);
}

/* === ANIMATION CLASSES === */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===================================================================
   🎨 POSITIONED UI CONTROLS - Modular System (ModalUtils.js)
   Theme Switch + Version Display + Custom Controls
   =================================================================== */

/* UI Positioned Control Base */
.ui-positioned-control {
  pointer-events: auto;
  user-select: none;
}

/* Theme Switch Positioned */
.theme-switch-positioned {
  position: fixed;
  z-index: 9999;
}

.theme-toggle-btn {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: calc(var(--space-xs) * 0.6) calc(var(--space-xs) * 0.8);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  min-width: 28px;
  min-height: 28px;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  color: var(--text-color);
  transform: scale(1.05);
}

.theme-icon-light,
.theme-icon-dark {
  font-size: var(--text-sm);
  line-height: 1;
  display: block;
}

/* Show/hide theme icons based on current theme */
[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

.theme-label {
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Version Display Positioned */
.version-display-positioned {
  position: fixed;
  z-index: 9998;
}

.version-text {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: calc(var(--space-xs) * 0.6) calc(var(--space-xs) * 0.8);
  font-size: var(--text-xs);
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
  line-height: 1.2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.version-display-positioned:hover .version-text {
  background: var(--bg-tertiary);
  color: var(--text-color);
  border-color: var(--primary-light);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .theme-toggle-btn {
    min-width: 24px;
    min-height: 24px;
    padding: calc(var(--space-xs) * 0.5);
  }
  
  .theme-icon-light,
  .theme-icon-dark {
    font-size: var(--text-xs);
  }
  
  .theme-label {
    display: none; /* Hide label on mobile for space */
  }
  
  .version-text {
    font-size: var(--text-xs);
    padding: calc(var(--space-xs) * 0.5) calc(var(--space-xs) * 0.6);
    min-height: 24px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .theme-toggle-btn,
  .version-text {
    border-width: 2px;
    font-weight: 600;
  }
}

/* === DARK THEME ADJUSTMENTS === */
[data-theme="dark"] .hero-title .secondary-text {
  color: var(--tertiary-contrast);
}

[data-theme="dark"] .hero-title .tertiary-text {
  color: var(--secondary-light);
}

/* Dark theme logo adjustments - NO BORDERS */
[data-theme="dark"] .logo {
  color: var(--primary-light);
  -webkit-text-stroke: none;
  text-stroke: none;
}

[data-theme="dark"] .hero-title .primary-text {
  color: var(--primary-light);
  -webkit-text-stroke: none;
  text-stroke: none;
}

[data-theme="dark"] .loading-content .logo {
  color: var(--primary-light);
}

[data-theme="dark"] .brand-text,
[data-theme="dark"] .brand-letter {
  -webkit-text-stroke: none;
  text-stroke: none;
}

[data-theme="light"] .loading-content .logo {
  color: var(--primary);
}

[data-theme="light"] .brand-text,
[data-theme="light"] .brand-letter {
  -webkit-text-stroke: none;
  text-stroke: none;
}

/* === SPECIAL EFFECTS === */
.cta-main {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === HEADER BUTTONS UNIFIED === */
.header-btn {
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  margin-right: var(--space-xs);
  font-size: var(--text-sm);
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 36px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--text-secondary) !important;
}

/* SuperAdmin button special styling */
.header-btn.superadmin-btn {
  border-color: var(--warning) !important;
  color: var(--warning) !important;
}

.header-btn.superadmin-btn:hover {
  background: var(--warning) !important;
  color: #1A1A1A !important;
  border-color: var(--warning) !important;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.help-btn {
  min-width: 36px;
}

.install-btn {
  white-space: nowrap;
}

/* === FLOATING THEME SWITCH === */
.theme-switch-floating {
  position: fixed;
  bottom: var(--space-sm);
  left: var(--space-sm);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  z-index: var(--z-dropdown);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.theme-switch-floating:hover {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-color: var(--text-muted);
}

/* === NAV SPACING === */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* === COUNTRY SELECTION MODAL === */
.countries-grid {
  display: grid;
  gap: var(--space-sm);
  max-height: 50vh;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.country-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.country-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--primary) !important;
}

[data-theme="dark"] .country-item:hover {
  box-shadow: 0 4px 12px rgba(0,139,139,0.3);
}

/* === MODAL VARIATIONS === */

/* Deposit modals - wider on desktop */
.modal-overlay.deposit-modal .modal-content {
  max-width: 480px;
}

/* === MODAL RESPONSIVE IMPROVEMENTS === */

/* Mobile keyboard handling - when virtual keyboard appears */
@media (max-width: 768px) {
  .modal {
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    top: 0;
    transform: none;
  }
  
  .modal-body {
    padding: var(--space-md);
  }
  
  .modal-header {
    padding: var(--space-md) var(--space-lg);
  }
  
  /* When input is focused (keyboard visible) */
  .modal.keyboard-visible {
    align-items: flex-start;
    padding-top: 10px;
  }
  
  .modal.keyboard-visible .modal-content {
    position: absolute;
    top: 10px;
    max-height: 60vh;
  }
}

/* Small mobile screens */  
@media (max-width: 480px) {
  .modal-content {
    width: 96%;
    max-width: 380px;
  }
  
  .modal-body {
    padding: var(--space-md);
  }
  
  .modal-header {
    padding: var(--space-md);
  }
  
  /* Compact form elements on mobile */
  .modal-body input,
  .modal-body button {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: var(--space-sm);
  }
  
  /* Stack buttons vertically on small screens */
  .modal-body .btn-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .modal-body .btn-group button {
    width: 100%;
  }
}

/* Extra small screens - 320px */
@media (max-width: 320px) {
  .modal-content {
    width: 98%;
    max-width: 300px;
  }
  
  .modal-body {
    padding: var(--space-sm) var(--space-md);
  }
  
  .modal-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .modal-title {
    font-size: var(--text-base);
  }
}

/* === DEPOSIT MODAL SPECIFIC STYLES === */

/* Countries grid */
.countries-grid {
  display: grid;
  gap: var(--space-sm);
  max-height: 50vh;
  overflow-y: auto;
}

/* Country items */
.country-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.country-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--primary);
}

[data-theme="dark"] .country-item:hover {
  box-shadow: 0 4px 12px rgba(0,139,139,0.3);
}

/* Bank details grid */
.bank-details-grid {
  display: grid;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.bank-details-grid div {
  line-height: 1.4;
}

/* Mobile adjustments for deposit-specific content */
@media (max-width: 480px) {
  .country-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-sm);
  }
  
  .countries-grid {
    max-height: 40vh;
  }
  
  .bank-details-grid {
    font-size: var(--text-xs);
    gap: var(--space-xs);
  }
}

/* === DASHBOARD COMPONENTS === */
.dashboard-card {
  background: var(--dashboard-card-bg);
  border: 1px solid var(--dashboard-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.dashboard-card:hover {
  background: var(--dashboard-card-hover-bg);
  box-shadow: var(--shadow-md);
}

.balance-card {
  background: var(--balance-card-bg);
  border: 1px solid var(--balance-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.action-card {
  background: var(--action-card-bg);
  border: 1px solid var(--action-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55px;
}

.action-card:hover {
  background: var(--action-card-hover-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
}

.balance-amount {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: var(--space-sm) 0;
}

.balance-label, .balance-currency {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.user-greeting {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
}

.greeting-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.user-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.action-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.action-title {
  font-size: var(--text-xs);
  font-weight: 600;
}

/* === SVG ICONS LIBRARY === */
.svg-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  transition: fill var(--transition-base);
  flex-shrink: 0;
}

.svg-icon-lg {
  width: 32px;
  height: 32px;
}

.svg-icon-xl {
  width: 48px;
  height: 48px;
}

/* Dark theme SVG adjustments */
[data-theme="dark"] .svg-icon {
  fill: var(--primary-light);
}

/* SVG Icon variants */
.svg-icon-white { fill: white !important; }
.svg-icon-success { fill: var(--success); }
.svg-icon-warning { fill: var(--warning); }
.svg-icon-danger { fill: var(--danger); }
.svg-icon-secondary { fill: var(--text-secondary); }

/* Container for SVG icons in action cards */
.action-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

/* Enhanced container styles for buttons */
.container-with-buttons {
  background: var(--dashboard-card-bg);
  border: 1px solid var(--dashboard-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--dashboard-card-border);
}

.container-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.container-button {
  background: var(--secondary-button-bg);
  border: 1px solid var(--secondary-button-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.container-button:hover {
  background: var(--secondary-button-hover-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}

.container-button .svg-icon {
  width: 16px;
  height: 16px;
}

/* Container button styling in dark theme */
[data-theme="dark"] .container-button {
  opacity: 0.6;
  color: #D1D5DB;  /* Light gray instead of pure white */
}

[data-theme="dark"] .container-button .svg-icon {
  fill: #D1D5DB;   /* Light gray for icons too */
}

[data-theme="dark"] .container-button:hover {
  opacity: 0.8;
  color: #F3F4F6;  /* Slightly lighter on hover */
}

/* Container button text in light theme */
[data-theme="light"] .container-button {
  color: black;
}

[data-theme="light"] .container-button .svg-icon {
  fill: black;
}

/* Balance Compact Buttons - 3-button layout in balance card */
.balance-compact-btn {
  background: var(--secondary-button-bg);
  border: 1px solid var(--secondary-button-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 80px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  justify-content: center;
}

.balance-compact-btn:hover {
  background: var(--secondary-button-hover-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}

.balance-compact-btn .svg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.balance-compact-btn span {
  font-size: var(--text-sm);
  line-height: 1.2;
}

/* Dark theme balance compact buttons */
[data-theme="dark"] .balance-compact-btn {
  opacity: 0.6;
  color: white;
}

[data-theme="dark"] .balance-compact-btn .svg-icon {
  fill: white;
}

[data-theme="dark"] .balance-compact-btn:hover {
  opacity: 0.8;
}

/* Light theme balance compact buttons */
[data-theme="light"] .balance-compact-btn {
  color: black;
}

[data-theme="light"] .balance-compact-btn .svg-icon {
  fill: black;
}

/* === WALLET ACTION BUTTONS === */
/* Perfect size buttons for wallet balance section */
.wallet-action-btn {
  background: var(--secondary-button-bg);
  border: 1px solid var(--secondary-button-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);  /* Smaller padding than container-button */
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 70px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  justify-content: center;
}

.wallet-action-btn:hover {
  background: var(--secondary-button-hover-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}

.wallet-action-btn .svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dark theme wallet action buttons */
[data-theme="dark"] .wallet-action-btn {
  opacity: 0.6;
  color: #D1D5DB;  /* Light gray instead of pure white */
}

[data-theme="dark"] .wallet-action-btn .svg-icon {
  fill: #D1D5DB;   /* Light gray for icons too */
}

[data-theme="dark"] .wallet-action-btn:hover {
  opacity: 0.8;
  color: #F3F4F6;  /* Slightly lighter on hover */
}

/* Light theme wallet action buttons */
[data-theme="light"] .wallet-action-btn {
  color: black;
}

[data-theme="light"] .wallet-action-btn .svg-icon {
  fill: black;
}

/* Wallet buttons container */
.wallet-buttons-container {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* === MOBILE HEADER BUTTONS === */
/* In mobile, show only icons to save space */
@media (max-width: 768px) {
  .install-btn, .logout-btn, .debug-btn, .superadmin-btn {
    width: 36px;
    height: 36px;
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
  }
  
  .install-btn .install-text,
  .logout-btn .logout-text,
  .superadmin-btn .admin-text {
    display: none;
  }
  
  .install-btn .install-icon,
  .logout-btn .logout-icon,
  .superadmin-btn .admin-icon,
  .debug-btn .svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 auto;
  }
}

/* Desktop - show full text and icons */
@media (min-width: 769px) {
  .install-btn .install-text,
  .logout-btn .logout-text,
  .superadmin-btn .admin-text {
    display: inline;
    margin-left: var(--space-xs);
  }
  
  .install-btn .install-icon,
  .logout-btn .logout-icon,
  .superadmin-btn .admin-icon,
  .debug-btn .svg-icon {
    width: 16px;
    height: 16px;
  }
}


/* Balance text colors by theme */
[data-theme="light"] .balance-text,
[data-theme="light"] .balance-amount-text {
  color: white;
}

[data-theme="dark"] .balance-text,
[data-theme="dark"] .balance-amount-text {
  color: #B0B0B0;
}

/* === HISTORY MODAL STYLES === */

/* Filter buttons for period selection */
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-width: auto;
}

.filter-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Filter chips for type selection */
.filter-chip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
}

/* Responsive optimization */
@media (max-width: 480px) {
  .period-filters {
    justify-content: space-between;
  }
  
  .filter-btn {
    flex: 1;
    padding: var(--space-xs);
    font-size: 12px;
    min-width: 50px;
  }
  
  .filter-btn .period-text {
    display: none;
  }
  
  .type-filters {
    justify-content: space-around;
  }
  
  .filter-chip {
    flex: 1;
    justify-content: center;
    padding: var(--space-xs);
    min-width: 44px;
  }
  
  .filter-chip .filter-text {
    display: none;
  }
  
  .filter-chip svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .history-modal .modal-content {
    margin: var(--space-sm);
    max-width: calc(100vw - var(--space-md));
  }
}

.filter-chip:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.filter-chip.active {
  background: var(--primary-light, rgba(59, 130, 246, 0.1));
  color: var(--primary);
  border-color: var(--primary);
}

/* Transaction item styles */
.transaction-item {
  transition: all var(--transition-fast);
}

.transaction-item:hover {
  background: var(--bg-secondary) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Transaction amount colors */
.transaction-amount.success {
  color: var(--success) !important;
}

.transaction-amount.danger {
  color: var(--danger) !important;
}

.transaction-amount.warning {
  color: var(--warning) !important;
}

.transaction-amount.text-primary {
  color: var(--text-primary) !important;
}

/* History modal responsive design */
@media (max-width: 480px) {
  .history-modal .modal-content {
    width: 96%;
    max-width: 380px;
    max-height: 90vh;
  }
  
  .transaction-item {
    flex-direction: column;
    align-items: flex-start !important;
    padding: var(--space-sm) !important;
  }
  
  .transaction-item > div:first-child {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .transaction-item > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .filter-btn, .filter-chip {
    font-size: var(--text-xs);
    padding: calc(var(--space-xs) * 0.8) var(--space-xs);
  }
}

/* === NOTIFICATION SYSTEM === */
.notification-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  pointer-events: none;
}

.notification {
  margin-bottom: var(--space-sm);
  min-width: 300px;
  max-width: 400px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.notification.slide-in {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .notification-container {
    left: 0.5rem;
    right: 0.5rem;
    top: var(--space-lg);
  }
  
  .notification {
    min-width: auto;
    max-width: none;
    width: 100%;
    margin-bottom: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .notification-container {
    left: 0.25rem;
    right: 0.25rem;
    top: 1rem;
  }
  
  .notification-content {
    padding: 0.5rem;
    gap: 0.375rem;
  }
  
  .notification-text {
    font-size: var(--text-xs);
    line-height: 1.2;
  }
}

@media (max-width: 340px) {
  .notification-container {
    left: 0.125rem;
    right: 0.125rem;
  }
}

/* Argentina Account Validation Warnings */
.account-warning {
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.account-warning.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.account-warning.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.notification-toast {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  gap: var(--space-sm);
}

.notification-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.notification-close:hover {
  color: var(--text-primary);
}

/* Notification types */
.notification-info {
  border-left: 4px solid var(--info);
}

.notification-info .notification-icon {
  fill: var(--info);
}

.notification-warning {
  border-left: 4px solid var(--warning);
}

.notification-warning .notification-icon {
  fill: var(--warning);
}

.notification-error {
  border-left: 4px solid var(--danger);
}

.notification-error .notification-icon {
  fill: var(--danger);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-success .notification-icon {
  fill: var(--success);
}

/* Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
  .notification-toast {
    left: 0.5rem;
    right: 0.5rem;
    top: var(--space-lg);
    min-width: auto;
    max-width: none;
    width: calc(100vw - 1rem);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .notification-toast {
    left: 0.25rem;
    right: 0.25rem;
    top: 1rem;
    width: calc(100vw - 0.5rem);
    font-size: var(--text-xs);
  }
  
  .notification-content {
    padding: 0.5rem;
    gap: 0.375rem;
  }
  
  .notification-text {
    font-size: var(--text-xs);
    line-height: 1.2;
  }
}

@media (max-width: 340px) {
  .notification-toast {
    left: 0.125rem;
    right: 0.125rem;
    width: calc(100vw - 0.25rem);
  }
}

/* === DEBUG BUTTON SPECIAL STYLING === */
.debug-btn {
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    #FFD700,
    #FFD700 4px,
    #FFA500 4px,
    #FFA500 8px
  ) !important;
  border: 2px dashed #000000 !important;
  color: #000000 !important;
  font-weight: bold !important;
  animation: debugPulse 2s infinite;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6) !important;
  -webkit-text-stroke: 1px white;
  text-stroke: 1px white;
  text-shadow: 0 0 3px white, 0 0 6px white;
}

.debug-btn:hover {
  background: repeating-linear-gradient(
    45deg,
    #FFA500,
    #FFA500 4px,
    #FF8C00 4px,
    #FF8C00 8px
  ) !important;
  border-color: #FF0000 !important;
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.8) !important;
  transform: scale(1.05) !important;
}

@keyframes debugPulse {
  0% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
}

/* ===================================================================
   ADMIN CONFIGURATION SYSTEM STYLES - v0.0.0.8
   ================================================================== */

.admin-tab {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
}

.admin-tab:hover {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--primary);
}

.admin-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.admin-list-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  transition: all 0.2s ease;
}

.admin-list-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-status-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.admin-status-badge.active {
  background: var(--success-light, #dcfce7);
  color: var(--success);
  border: 1px solid var(--success);
}

.admin-status-badge.inactive {
  background: var(--warning-light, #fef3c7);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.admin-status-badge.danger {
  background: var(--danger-light, #fee2e2);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* Country Tags (Chips) */
.country-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--success-light, #dcfce7);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Dark theme country tags */
[data-theme="dark"] .country-tag {
  background: rgba(39, 174, 96, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.admin-form-group {
  margin-bottom: var(--space-md);
}

.admin-form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }
  
  .admin-tabs {
    flex-direction: column;
  }
  
  .admin-tab {
    justify-content: center;
  }
}

/* ===================================================================
   CONFIGURATION BUTTON STYLES - v0.0.0.8
   ================================================================== */

.action-card.config-admin {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #F4C430 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.action-card.config-admin:hover {
  background: linear-gradient(135deg, #B8860B 0%, #DAA520 50%, #D4AF37 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.action-card.config-admin .action-icon-svg svg {
  color: #8B4513;
  filter: drop-shadow(0 1px 2px rgba(139, 69, 19, 0.3));
}

.action-card.config-admin .action-title {
  color: #8B4513;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.action-card.config-user {
  background: linear-gradient(135deg, #C0C0C0 0%, #E5E5E5 50%, #D3D3D3 100%);
  border: 1px solid rgba(192, 192, 192, 0.3);
  box-shadow: 0 4px 12px rgba(169, 169, 169, 0.2);
}

.action-card.config-user:hover {
  background: linear-gradient(135deg, #A9A9A9 0%, #DCDCDC 50%, #C0C0C0 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(169, 169, 169, 0.3);
}

.action-card.config-user .action-icon-svg svg {
  color: #4A4A4A;
  filter: drop-shadow(0 1px 2px rgba(74, 74, 74, 0.3));
}

.action-card.config-user .action-title {
  color: #4A4A4A;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   NOTIFICATION ITEMS - Admin Dashboard v0.0.0.8
   ================================================================== */

/* Notification items inside containers */
.notification-item {
    background: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-base);
}

.notification-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===================================================================
   RESPONSIVE MODAL LAYOUTS - Desktop Horizontal Layout
   ================================================================== */

/* Desktop horizontal layout for larger screens */
@media (min-width: 768px) {
  .admin-countries-modal .modal-content,
  .admin-accounts-modal .modal-content,
  .admin-approvals-modal .modal-content {
    max-width: 90vw;
    width: 90vw;
    max-height: 85vh;
  }
  
  .admin-countries-modal .modal-body,
  .admin-accounts-modal .modal-body,
  .admin-approvals-modal .modal-body {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg) var(--space-xl);
  }
  
  .admin-countries-modal .countries-list,
  .admin-accounts-modal .accounts-list,
  .admin-approvals-modal .approvals-list {
    flex: 2;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .admin-countries-modal .countries-detail,
  .admin-accounts-modal .accounts-detail,
  .admin-approvals-modal .approvals-detail {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: sticky;
    top: 0;
  }
}

/* ===================================================================
   ADMIN STATUS BADGES - v0.0.0.8
   ================================================================== */

.admin-status-badge {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1;
}

.admin-status-badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-status-badge.inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.admin-status-badge.urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-status-badge.normal {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Country tags for admin lists */
.country-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Status badges for user modals - using admin layout pattern */
.status-badge {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Improved country item layout for user modals */
.countries-grid .country-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--space-xs);
}

.countries-grid .country-item:hover {
  background: var(--hover-bg);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Action alert indicator */
.action-alert {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  border: 1px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: alertPulse 2s infinite;
  z-index: 10;
}

@keyframes alertPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Animación para búsqueda exitosa */
@keyframes successGlow {
  0% {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
  }
  100% {
    background: linear-gradient(90deg, #16a34a, #15803d);
    transform: scaleX(1);
  }
}

/* User search result styles */
.user-search-result:hover {
  background: var(--hover-bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.user-search-result[style*="cursor: not-allowed"]:hover {
  transform: none !important;
  box-shadow: none !important;
  background: var(--card-bg) !important;
}

/* Hover effect for search result button */
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
}

/* ===================================================================
   ADMIN METRICS CARDS - v0.0.0.9
   ================================================================== */

.admin-metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: white;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.admin-metric-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metric-label {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.metric-change {
  font-size: var(--text-xs);
  opacity: 0.8;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS FOR ADMIN METRICS
   ================================================================== */

@media (max-width: 768px) {
  .admin-metric-card {
    min-height: 120px;
    padding: var(--space-md);
  }
  
  .metric-icon {
    font-size: 2rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-label {
    font-size: var(--text-xs);
  }
  
  .metric-change {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .admin-metric-card {
    min-height: 100px;
    padding: var(--space-sm);
  }
  
  .metric-icon {
    font-size: 1.5rem;
    margin-bottom: calc(var(--space-sm) * 0.5);
  }
  
  .metric-value {
    font-size: 1.25rem;
  }
  
  .metric-label {
    font-size: 10px;
    margin-bottom: calc(var(--space-xs) * 0.5);
  }
  
  .metric-change {
    font-size: 9px;
  }
}

/* ===================================================================
   ENVIAR MODAL COMPONENTS - v0.0.0.11
   ================================================================== */

/* User search result card */
.enviar-user-result {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px dashed #27AE60;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(39, 174, 96, 0.05);
}

.enviar-user-result.selected {
    border: 2px solid #27AE60;
    background: rgba(39, 174, 96, 0.1);
}

/* User name line with checkmark */
.enviar-user-name {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Checkmark circle */
.enviar-checkmark {
    width: 20px;
    height: 20px;
    background: #27AE60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* User full name */
.enviar-user-fullname {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    line-height: 1.2;
}

/* Status and UIDN line */
.enviar-status-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

/* Available status badge */
.enviar-status-badge {
    background: rgba(39, 174, 96, 0.15);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* UIDN display */
.enviar-uidn {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: monospace;
}

/* Search method line */
.enviar-search-method {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Search method text */
.enviar-search-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Success modal styling - COMPACT VERSION */
.enviar-success-compact {
    text-align: center;
    padding: var(--space-md);
}

.enviar-success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.enviar-success-check {
    font-size: 1.5rem;
    color: var(--success);
}

.enviar-success-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
}

.enviar-success-amount {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.enviar-success-id {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.enviar-id-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-xs);
}

/* Professional Receipt Styles - COMPACT VERSION */
.receipt-professional {
    background: white;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.receipt-content {
    padding: 12px;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid black;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.receipt-logo {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #008B8B;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.receipt-title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.receipt-title {
    font-size: 12px;
    font-weight: bold;
    font-family: system-ui, -apple-system, sans-serif;
    color: #000;
}

.receipt-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    margin-bottom: 3px;
}

.receipt-transaction-info {
    margin-bottom: 10px;
}

.receipt-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 11px;
}

.receipt-info-label {
    color: #333;
}

.receipt-info-value {
    color: #000;
}

.receipt-info-value.bold {
    font-weight: bold;
}

.receipt-section {
    border-top: 1px solid #ddd;
    padding-top: 6px;
    margin-bottom: 8px;
}

.receipt-section-title {
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
    font-size: 10px;
}

.receipt-section-name {
    color: #000;
    font-weight: 500;
    font-size: 11px;
}

.receipt-section-uidn {
    font-size: 9px;
    color: #008B8B;
    font-weight: 600;
}

.receipt-section-company {
    font-size: 9px;
    color: #666;
}

.receipt-footer {
    border-top: 2px solid black;
    padding-top: 6px;
    text-align: center;
    font-size: 8px;
    color: #666;
    font-family: system-ui, -apple-system, sans-serif;
}

.receipt-footer-company {
    font-weight: 600;
}

.receipt-footer-website {
    margin: 1px 0;
}

.receipt-footer-tagline {
    margin-top: 3px;
    font-style: italic;
}

.receipt-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    font-family: system-ui;
}

.receipt-btn {
    border: none;
    padding: 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.receipt-btn-primary {
    flex: 1;
    background: var(--primary);
    color: white;
}

.receipt-btn-secondary {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.receipt-btn-close {
    flex: 0.6;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* ===================================================================
   HISTORIAL MODAL STYLES - Full screen transaction history
   ================================================================== */

/* Main history modal container */
.history-modal-fullscreen {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.history-title-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.history-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.history-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.history-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Filters section */
.history-filters {
    padding: var(--space-sm) var(--space-sm);
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.history-search {
    position: relative;
    margin-bottom: var(--space-sm);
}

.history-search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    padding-right: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.history-search-icon {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.history-search-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.history-period-filters {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--space-xs);
}

.history-filter-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.history-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.history-filter-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.history-type-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.history-filter-chip {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.history-filter-chip.active {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.history-filter-chip svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Transaction list */
.history-transaction-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
}

.history-loading {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.history-loading-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-bottom: var(--space-sm);
}

/* Auto loader styles */
.history-auto-loader {
    padding: var(--space-md);
    text-align: center;
}

.history-auto-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.history-loading-icon-small {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

/* All loaded message styles */
.history-all-loaded {
    padding: var(--space-lg);
    text-align: center;
}

.history-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--success);
    font-size: var(--text-sm);
    font-weight: 500;
}

.history-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.history-empty-icon {
    width: 48px;
    height: 48px;
    fill: currentColor;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.history-empty-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.history-empty-text {
    font-size: var(--text-sm);
}

.history-date-separator {
    padding: var(--space-md) var(--space-sm) var(--space-xs);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    background: var(--bg-secondary);
    margin-bottom: var(--space-sm);
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-transaction-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.history-transaction-item:not(:last-child):after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--border);
    opacity: 0.6;
}

.history-transaction-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

/* Línea 1: Signo + Nombre completo */
.history-line-1 {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.history-icon {
    margin-right: var(--space-xs);
}

.history-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

/* Línea 2: Estado + Monto */
.history-line-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.history-status {
    font-size: var(--text-xs);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.history-amount {
    font-weight: 600;
    font-size: var(--text-sm);
}

.history-amount-negative {
    color: #ef4444; /* Rojo para envíos/retiros */
}

.history-amount-positive {
    color: #22c55e; /* Verde para recepciones/depósitos */
}

/* Línea 3: ID + Fecha */
.history-line-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-tidh {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.history-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.history-transaction-amount {
    font-weight: 600;
    font-size: var(--text-md);
    margin-bottom: 2px;
}

.history-transaction-amount.success {
    color: var(--success);
}

.history-transaction-amount.danger {
    color: var(--danger);
}

.history-transaction-amount.warning {
    color: var(--warning);
}

.history-transaction-amount.text-primary {
    color: var(--text-primary);
}

.history-transaction-status {
    font-size: var(--text-xs);
    padding: 2px var(--space-xs);
    border-radius: var(--radius-sm);
}

.history-load-more {
    padding: var(--space-md);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Transaction detail modal */
.transaction-detail-compact {
    padding: var(--space-md);
}

.transaction-detail-info {
    margin-bottom: var(--space-md);
}

.transaction-detail-section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.transaction-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.transaction-detail-label {
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

.transaction-detail-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 65%;
    word-break: break-all;
    font-size: var(--text-xs);
}

.transaction-detail-actions {
    margin-bottom: var(--space-md);
}

.transaction-detail-help {
    padding: var(--space-sm);
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.transaction-detail-help-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
}

/* Status badges */
.status-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
}

.status-badge-success {
    background: var(--success-light, #dcfce7);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-badge-warning {
    background: var(--warning-light, #fef3c7);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-badge-danger {
    background: var(--danger-light, #fee2e2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Transaction icon colors */
.icon-success {
    color: var(--success);
    fill: var(--success);
}

.icon-warning {
    color: var(--warning);
    fill: var(--warning);
}

.icon-primary {
    color: var(--primary);
    fill: var(--primary);
}

.icon-info {
    color: var(--info, #3b82f6);
    fill: var(--info, #3b82f6);
}

.icon-secondary {
    color: var(--text-secondary);
    fill: var(--text-secondary);
}

/* ===================================================================
   ANIMATIONS - v0.0.0.9
   ================================================================== */

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

/* 🎨 Theme Switch - Formato original al lado de version */
.floating-theme-switch {
    position: fixed;
    bottom: 20px;
    right: 115px;
    z-index: 1001;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.floating-theme-switch:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.floating-theme-switch:active {
    transform: scale(0.95);
}

/* 🎯 Receipt Verification Number - Súper Compacto */
.receipt-verification {
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 6px 12px;
    margin: 8px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 123, 123, 0.2);
}

.receipt-verification-title {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-verification-number {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    margin: 2px 0;
}

.receipt-verification-note {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.1;
    margin-top: 1px;
}

/* 📱 Receipt Actions Compact - Botones Pequeños */
.receipt-actions-compact {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: 8px;
}

.receipt-btn-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
}

.receipt-btn-compact:hover {
    background: var(--card-bg);
    transform: translateY(-1px);
}

.receipt-btn-compact:active {
    transform: translateY(0);
}

.receipt-btn-icon-small {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.receipt-btn-pdf {
    border-color: #dc2626;
    color: #dc2626;
}

.receipt-btn-pdf:hover {
    background: rgba(220, 38, 38, 0.1);
}

.receipt-btn-jpg {
    border-color: #2563eb;
    color: #2563eb;
}

.receipt-btn-jpg:hover {
    background: rgba(37, 99, 235, 0.1);
}

.receipt-btn-close {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.receipt-btn-close:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

