.wm-logo-small {
  height: 32px !important;
  width: auto !important;
  max-width: 120px !important;
}
.wm-footer-logo-small {
  height: 24px !important;
  width: auto !important;
  max-width: 80px !important;
}
:root {
  --bg-dark: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-elevated-soft: #F8FAFC;
  --surface: #F4F8FF;
  --border-subtle: rgba(16, 212, 16, 0.12);
  --primary: #10d410;
  --secondary: #0bb80b;
  --primary-soft: rgba(16, 212, 16, 0.12);
  --secondary-soft: rgba(16, 212, 16, 0.14);
  --text-main: #052e16;
  --text-muted: #5A6C7D;
  --navy-blue: #052e16;
  --royal-blue: #10d410;
  --danger: #E53935;
  --warning: #FFC107;
  --success: #00B33C;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 16px rgba(5, 46, 22, 0.08);
  --shadow-md: 0 8px 24px rgba(5, 46, 22, 0.12);
  --safe-left: max(16px, env(safe-area-inset-left));
  --safe-right: max(16px, env(safe-area-inset-right));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 100%);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.wm-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: none;
  backdrop-filter: none;
  background: #052e16;
  box-shadow: 0 2px 8px rgba(5, 46, 22, 0.2);
}

.wm-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}
.wm-header-inner .wm-logo {
  flex: 0 0 auto;
}
.wm-header-inner .wm-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .wm-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .wm-header-inner .wm-nav {
    justify-content: center;
    width: 100%;
    order: 3;
    flex-basis: 100%;
    padding-top: 12px;
  }
  .wm-header-inner .wm-logo {
    order: 1;
    flex: 0 0 auto;
  }
}

.wm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 12px;
  min-width: 0;
  transition: all 0.2s ease;
  height: 40px;
}

.wm-logo:hover .wm-logo-brand {
  filter: brightness(1.1);
}

.wm-logo-brand {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.wm-logo-symbol {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 212, 16, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10d410;
  font-weight: 800;
  font-size: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.wm-logo-img {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  display: block;
}

.wm-logo-text {
  color: #FFFFFF;
}

.wm-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.wm-nav a {
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease;
}

.wm-nav a:hover {
  color: #FFFFFF;
}

.wm-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 0;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

.wm-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: width 0.2s ease;
}

.wm-nav-link:hover {
  color: #FFFFFF;
}

.wm-nav-link:hover::after {
  width: 100%;
}

.wm-nav .wm-btn {
  flex-shrink: 0;
}

.wm-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.wm-scan-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.wm-scan-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.wm-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.wm-profile-btn:hover {
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

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


.wm-profile-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.wm-main {
  max-width: 1260px;
  width: 100%;
  margin: 16px auto;
  min-width: 0;
}

.wm-footer {
  border-top: 1px solid #E1E4E8;
  padding: 32px 16px 20px;
  font-size: 12px;
  color: #FFFFFF;
  text-align: center;
  word-wrap: break-word;
  background: #052e16;
}

.wm-footer-content {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 0 16px;
  text-align: center;
}

.wm-footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wm-footer-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.wm-footer-logo:hover {
  opacity: 1;
}

.wm-footer-terms {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.wm-footer-disclaimer {
  font-size: 10px;
  opacity: 0.75;
  display: block;
  margin-top: 8px;
}

.wm-footer-main {
  margin: 12px 0 8px !important;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 100%;
}

.wm-footer p {
  margin: 0;
  max-width: 100%;
}

.wm-footer-links {
  margin: 8px 0 !important;
}

.wm-footer-link {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #FFFFFF;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.wm-footer-link:hover {
  color: #E6F2FF;
  text-decoration-color: #E6F2FF;
}

.wm-footer-social {
  margin: 0 2px;
}

.wm-footer-credit {
  margin: 8px 0 0 0 !important;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.wm-footer-muted {
  color: rgba(255, 255, 255, 0.7);
}

.wm-footer-author {
  color: #10d410;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #10d410;
  text-underline-offset: 2px;
}

.wm-footer a {
  word-break: break-word;
}

.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-out;
  background: none;
  color: var(--text-main);
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
}

.wm-btn-primary {
  background: linear-gradient(135deg, #089c08, #5a7cff);
  color: #FFFFFF;
  box-shadow: 0 18px 34px rgba(8, 156, 8, 0.18);
  border: none;
  font-weight: 700;
  border-radius: 14px;
}

.wm-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 22px 44px rgba(8, 156, 8, 0.24);
}

.wm-btn-ghost {
  border-color: rgba(8, 156, 8, 0.18);
  background: rgba(8, 156, 8, 0.08);
  color: #089c08;
  font-weight: 700;
}

.wm-btn-ghost:hover {
  border-color: #089c08;
  background: rgba(8, 156, 8, 0.14);
  color: #089c08;
}

.wm-btn-lg {
  padding: 10px 20px;
  font-size: 15px;
}

.wm-btn-md {
  padding: 8px 16px;
  font-size: 14px;
}

.wm-btn-full {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.wm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  min-width: 0;
}

.wm-hero-text {
  min-width: 0;
}

.wm-hero-text h1 {
  font-size: clamp(22px, 5vw, 38px);
  line-height: 1.2;
  margin: 0 0 12px;
  word-wrap: break-word;
}

.wm-hero-text p {
  margin: 0 0 14px;
  color: var(--text-muted);
  max-width: 100%;
  word-wrap: break-word;
}

.wm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.wm-hero-actions .wm-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.wm-hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.wm-hero-badges li {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #E1E4E8;
  background: #F8F9FA;
  color: #64748B;
}

.wm-hero-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 212, 16, 0.12);
  box-shadow: 0 18px 40px rgba(16, 212, 16, 0.08);
  min-width: 0;
  overflow: hidden;
}

.wm-card-balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.wm-card-balance span {
  font-size: 12px;
  color: var(--text-muted);
}

.wm-card-balance strong {
  font-size: clamp(20px, 5vw, 26px);
  word-break: break-word;
}

.wm-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
  min-width: 0;
}

.wm-card-row .wm-value {
  word-break: break-all;
  text-align: right;
}

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

.wm-value {
  font-weight: 500;
}

.wm-card-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.wm-section {
  margin-top: 48px;
  min-width: 0;
}

.wm-section-narrow {
  max-width: 860px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 18px;
}

.wm-section h1,
.wm-section h2 {
  font-size: clamp(18px, 4vw, 22px);
  margin: 0 0 14px;
  word-wrap: break-word;
}

.wm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  min-width: 0;
}

.wm-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  min-width: 0;
}

.wm-feature-card,
.wm-stat-card,
.wm-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid rgba(5, 46, 22, 0.08);
  box-shadow: 0 24px 60px rgba(5, 46, 22, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

.wm-feature-card:hover,
.wm-stat-card:hover,
.wm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(5, 46, 22, 0.1);
  border-color: rgba(8, 156, 8, 0.16);
}

.wm-feature-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: inline-block;
}

.wm-feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  flex-grow: 0;
}

.wm-feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  flex-grow: 1;
  line-height: 1.5;
}

.wm-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.wm-dashboard-header h1 {
  margin: 0 0 4px;
  font-size: clamp(18px, 4vw, 22px);
  word-wrap: break-word;
  min-width: 0;
}

.wm-muted {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  word-wrap: break-word;
}

.wm-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.wm-dashboard-actions .wm-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.wm-stat-card-large {
  grid-column: span 1;
}

.wm-balance {
  font-size: clamp(24px, 6vw, 32px);
  margin: 6px 0 0;
  word-break: break-word;
}

.wm-balance span {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.wm-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.wm-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  gap: 8px;
  min-width: 0;
}

.wm-list li > div:first-child {
  min-width: 0;
}

.wm-list li .wm-amount {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wm-tag {
  font-size: 11px;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
  white-space: nowrap;
}

.wm-amount {
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.wm-amount-sign {
  font-size: 14px;
  font-weight: 700;
}

.wm-amount-value {
  font-weight: 700;
}

.wm-amount-currency {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 500;
}

.wm-amount-in {
  color: #28A745;
}

.wm-amount-in .wm-amount-sign {
  color: #28A745;
}

.wm-amount-out {
  color: #ff9f0a;
}

.wm-amount-out .wm-amount-sign {
  color: #ff9f0a;
}

.wm-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 14px;
}

.wm-links li + li {
  margin-top: 6px;
}

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

.wm-links a:hover {
  color: var(--text-main);
}

.wm-auth {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 0 16px;
  min-width: 0;
}

.wm-auth-card {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  box-shadow: 0 2px 8px rgba(0, 26, 77, 0.08);
}

.wm-auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.wm-auth-subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.wm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wm-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.wm-form-group label {
  color: var(--navy-blue);
  font-weight: 600;
}

.wm-input,
.wm-form-group input,
.wm-form-group select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(5, 46, 22, 0.12);
  background: #F7F9FF;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wm-input:focus,
.wm-form-group input:focus,
.wm-form-group select:focus {
  border-color: rgba(8, 156, 8, 0.32);
  box-shadow: 0 0 0 4px rgba(8, 156, 8, 0.08);
  background: #FFFFFF;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 46, 22, 0.12);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.back-link:hover {
  border-color: rgba(8, 156, 8, 0.3);
  color: var(--primary);
}

.wm-auth-switch {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.wm-auth-switch a {
  color: var(--primary);
}

.wm-flash-container {
  margin: 0 0 24px 0;
  position: relative;
  z-index: 50;
  animation: wm-flash-appear 0.3s ease;
}

@keyframes wm-flash-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wm-flash {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: wm-flash-enter 0.4s ease;
}

@keyframes wm-flash-enter {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wm-flash-success {
  background: #EBF8F0;
  border-color: #28A745;
  color: #155724;
}

.wm-flash-danger {
  background: #FFF5F5;
  border-color: #DC3545;
  color: #721C24;
}

.wm-flash-warning {
  background: #FFF8E6;
  border-color: #FFC107;
  color: #855C07;
}

.wm-flash-info {
  background: #E7F3FF;
  border-color: #10d410;
  color: #002060;
}

.wm-flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wm-flash-close:hover {
  opacity: 0.7;
  transform: rotate(90deg);
}

.wm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}

.wm-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 12px;
}

.wm-table th,
.wm-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid #E1E4E8;
  word-break: break-word;
}

.wm-table th {
  font-weight: 500;
  color: var(--text-muted);
}

img {
  max-width: 100%;
  height: auto;
}

.wm-card img,
.wm-auth-card img,
.wm-stat-card img {
  max-width: 100%;
  height: auto;
}

video {
  max-width: 100%;
  height: auto;
}

.wm-code-display {
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 16px 20px;
  background: rgba(8, 156, 8, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(8, 156, 8, 0.14);
  color: var(--navy-blue);
  font-weight: 700;
}

.wm-card-receive {
  text-align: center;
  padding: 26px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 46, 22, 0.08);
  box-shadow: 0 24px 60px rgba(5, 46, 22, 0.08);
}

.wm-receive-qr-wrap {
  margin: 24px 0;
  min-width: 0;
}

.wm-receive-qr-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border: 2px solid rgba(5, 46, 22, 0.08);
  border-radius: 20px;
  padding: 14px;
  background: #F7F9FF;
  box-sizing: border-box;
}

.wm-receive-hint,
.wm-receive-https-hint {
  font-size: 13px;
  margin-top: 16px;
  text-align: left;
  max-width: 100%;
  word-wrap: break-word;
}

.wm-receive-https-hint {
  font-size: 12px;
  margin-top: 12px;
}

.wm-receive-https-hint code {
  word-break: break-all;
  font-size: 11px;
}

/* Responsive: tablet */
@media (max-width: 800px) {
  .wm-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .wm-header-inner {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
  }

  .wm-nav {
    gap: 6px;
    font-size: 12px;
  }

  .wm-nav a {
    padding: 6px 8px;
  }

  .wm-dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .wm-dashboard-actions {
    width: 100%;
  }

  .wm-dashboard-actions .wm-btn {
    flex: 1 1 0;
  }

  .wm-auth {
    margin-top: 20px;
    padding: 0 16px;
  }

  .wm-auth-card {
    padding: 18px 16px;
  }
}

/* Responsive: móvil */
@media (max-width: 600px) {
  .wm-header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
  }

  .wm-logo {
    justify-content: center;
    letter-spacing: 0.06em;
    font-size: 11px;
  }

  .wm-nav {
    justify-content: center;
    gap: 6px;
  }

  .wm-nav a {
    font-size: 12px;
    padding: 8px 10px;
  }

  .wm-nav .wm-btn {
    width: 100%;
    max-width: 100%;
  }


  .wm-section {
    margin-top: 24px;
  }

  .wm-hero-text h1 {
    font-size: 20px;
  }

  .wm-hero-actions {
    flex-direction: column;
  }

  .wm-hero-actions .wm-btn {
    width: 100%;
  }

  .wm-dashboard-actions {
    flex-direction: column;
  }

  .wm-dashboard-actions .wm-btn {
    width: 100%;
  }

  .wm-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wm-feature-card,
  .wm-stat-card,
  .wm-card {
    padding: 12px;
  }

  .wm-balance {
    font-size: 22px;
  }

  .wm-auth-card {
    padding: 16px 14px;
    margin: 0 4px;
  }

  .wm-auth-card h1 {
    font-size: 18px;
  }

  .wm-footer {
    padding: 12px 10px 16px;
    font-size: 11px;
  }

  .wm-footer p {
    line-height: 1.5;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
  .wm-logo-text {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .wm-nav a {
    padding: 6px 6px;
    font-size: 11px;
  }
}

/* Escaneo QR: tarjeta, cámara, subir foto */
.wm-scan-card {
  margin-bottom: 16px;
}

.wm-camera-tip {
  font-size: 13px;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: rgba(8, 156, 8, 0.08);
  border: 1px solid rgba(8, 156, 8, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.wm-scan-or {
  margin: 12px 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.wm-scan-hint {
  font-size: 12px;
  margin-top: 8px;
  margin-bottom: 0;
}

.wm-upload-qr-label {
  display: flex;
  text-align: center;
  cursor: pointer;
  margin: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(8, 156, 8, 0.12);
  background: rgba(8, 156, 8, 0.08);
  color: #089c08;
  font-weight: 700;
}

.wm-upload-qr-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.wm-qr-scanner-box {
  text-align: center;
  margin-top: 12px;
}

.wm-qr-video {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  background: #000;
}

/* ═══════════════════════════════════════════════════════════════════
   MÉTRICAS Y DASHBOARD ADMIN
   ═══════════════════════════════════════════════════════════════════ */

.metrics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;
}

.metrics-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: #10d410;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  border-color: #10d410;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 26, 77, 0.1);
}

.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.kpi-value {
  font-size: 36px;
  font-weight: 700;
  color: #10d410;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.stat-box {
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s ease;
}

.stat-box:hover {
  border-color: #10d410;
  background: #F8F9FA;
}

.stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Charts Section */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.chart-container {
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  margin-top: 0;
}

/* Tables */
.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.metrics-table thead {
  background: #F8F9FA;
  border-bottom: 2px solid #E1E4E8;
}

.metrics-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.metrics-table tbody tr {
  border-bottom: 1px solid #E1E4E8;
  transition: background 0.2s ease;
}

.metrics-table tbody tr:hover {
  background: #F8F9FA;
}

.metrics-table td {
  padding: 14px 16px;
  color: var(--text-main);
}

.rank-badge {
  display: inline-block;
  background: #10d410;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.tx-count {
  color: #10d410;
  font-weight: 600;
}

.volume {
  color: #28A745;
  font-weight: 600;
}

/* Top Users Section */
.top-users-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  margin-top: 0;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid #E1E4E8;
}

/* Controls Section */
.controls-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: var(--radius-lg);
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #10d410;
  color: #FFFFFF;
  border: 1px solid #10d410;
}

.btn-primary:hover {
  background: #2B4AC0;
  border-color: #2B4AC0;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid #E1E4E8;
}

.btn-secondary:hover {
  border-color: #10d410;
  color: #10d410;
  background: #F8F9FA;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.toggle-label:hover {
  color: var(--text-main);
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

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

/* ═══════════════════════════════════════════════════════════════════
   TRANSACCIONES CON SCROLL
   ═══════════════════════════════════════════════════════════════════ */

.transactions-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #E1E4E8;
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.transactions-list::-webkit-scrollbar {
  width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 10px;
}

.transactions-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
}

.transactions-list::-webkit-scrollbar-thumb:hover {
  background: rgba(57, 255, 20, 0.3);
}

.transaction-item {
  padding: 16px;
  border-bottom: 1px solid #E1E4E8;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item:hover {
  background: #F8F9FA;
}

.transaction-info {
  flex: 1;
  min-width: 0;
}

.transaction-type {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.transaction-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.transaction-amount.send {
  color: #DC3545;
}

.transaction-amount.receive {
  color: #28A745;
}

.transaction-amount.fee {
  color: #FFC107;
}

@media (max-width: 768px) {
  .metrics-title {
    font-size: 20px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .controls-section {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .toggle-label {
    width: 100%;
  }
}
/* ============================================
   CREDIT CARD STYLE - TARJETA DE CRÉDITO
   ============================================ */

.wm-card-credit {
  background: #10d410;
  border-radius: 20px;
  padding: 28px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 212, 16, 0.2);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #0051a8;
}

.wm-card-credit::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.wm-card-credit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.wm-card-credit-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.wm-card-credit-chip {
  width: 50px;
  height: 40px;
  background: #FFD700;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wm-card-credit-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.wm-card-credit-amount-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.wm-card-credit-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.wm-card-credit-holder {
  display: flex;
  flex-direction: column;
}

.wm-card-credit-holder-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.wm-card-credit-holder-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.wm-card-credit-code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

/* ============================================
   ADMIN INTERFACE IMPROVEMENTS
   ============================================ */

.wm-admin-search {
  margin-bottom: 24px;
}

.wm-search-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.wm-search-input,
.wm-select {
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid #E1E4E8;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.wm-search-input:focus,
.wm-select:focus {
  outline: none;
  border-color: #10d410;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.wm-select {
  cursor: pointer;
}

.wm-select option {
  background: var(--bg-dark);
  color: var(--text-main);
}

.wm-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-badge-user,
.wm-badge-modern.badge-user {
  background: #E7F3FF;
  color: #10d410;
}

.wm-badge-business,
.wm-badge-modern.badge-business {
  background: #E7F0FF;
  color: #2B4AC0;
}

.wm-badge-admin,
.wm-badge-modern.badge-admin {
  background: #FFF5F5;
  color: #DC3545;
}

.wm-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.wm-badge-modern.badge-operator,
.wm-badge-modern.badge-mayor_agent,
.wm-badge-modern.badge-lower_agent {
  background: rgba(16, 212, 16, 0.11);
  color: #0d7a12;
  border-color: rgba(16, 212, 16, 0.22);
}

.wm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.wm-status-active,
.wm-status-pill.status-active {
  background: #EBF8F0;
  color: #28A745;
}

.wm-status-active::before,
.wm-status-pill.status-active .dot {
  content: '';
  width: 8px;
  height: 8px;
  background: #28A745;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.wm-status-inactive,
.wm-status-pill.status-inactive {
  background: #FFF5F5;
  color: #DC3545;
}

.wm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.wm-status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.wm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.wm-btn-info {
  background: #E7F3FF;
  color: #10d410;
  border: 1px solid #B3D9FF;
}

.wm-btn-info:hover {
  background: #D0E9FF;
  border-color: #87CEEB;
}

.wm-btn-success {
  background: #EBF8F0;
  color: #28A745;
  border: 1px solid #C3E6CB;
}

.wm-btn-success:hover {
  background: #D4EDDA;
  border-color: #A8DDB5;
}

.wm-btn-danger {
  background: #FFF5F5;
  color: #DC3545;
  border: 1px solid #F5C6CB;
}

.wm-btn-danger:hover {
  background: #F8D7DA;
  border-color: #F1B0B7;
}

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

.wm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 19, 63, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.wm-modal-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 212, 16, 0.16);
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 25px 70px rgba(16, 212, 16, 0.16);
  animation: modalSlideIn 0.28s ease;
}

.wm-modal-large {
  max-width: 920px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(16, 212, 16, 0.12);
}

.wm-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--navy-blue);
}

.wm-modal-close {
  background: rgba(16, 212, 16, 0.06);
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.wm-modal-close:hover {
  background: rgba(16, 212, 16, 0.14);
  color: var(--primary);
}

.wm-modal-body {
  padding: 24px 28px 28px;
}

.wm-user-detail,
.wm-wallet-detail {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.wm-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.wm-detail-row:last-child {
  border-bottom: none;
}

.wm-detail-row code {
  background: var(--bg-elevated);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* ============================================
   PROFESSIONAL MODAL STYLES (Business Sell)
   ============================================ */

.wm-modal-professional {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 19, 63, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.wm-modal-professional-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 212, 16, 0.16);
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 25px 70px rgba(16, 212, 16, 0.16);
  animation: modalSlideIn 0.28s ease;
}

@media (max-width: 768px) {
  .wm-modal-professional-content {
    max-width: 100%;
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 480px) {
  .wm-modal-professional-content {
    max-width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: var(--radius-md);
  }
}
  font-size: 12px;
  color: var(--primary);
}

.wm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.wm-stat-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.wm-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.wm-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.wm-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-dark);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.wm-history-item:hover {
  border-left-color: var(--text-main);
  background: var(--bg-elevated);
}

.wm-history-sent {
  border-left-color: #ff4d4f;
}

.wm-history-received {
  border-left-color: #39ff14;
}

.wm-history-icon {
  font-size: 24px;
  min-width: 32px;
}

.wm-history-details {
  flex: 1;
}

.wm-history-description {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wm-history-counterpart {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.wm-history-timestamp {
  font-size: 11px;
  color: var(--text-muted);
}

.wm-history-amount {
  font-size: 16px;
  font-weight: 700;
  min-width: 120px;
  text-align: right;
}

.wm-amount-out {
  color: #ff9f0a;
}

.wm-amount-in {
  color: var(--primary);
}

.wm-history-status {
  font-size: 14px;
  min-width: 24px;
  text-align: center;
}

.wm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.wm-pagination-info {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 12px;
}

.wm-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.wm-monospace {
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.wm-date {
  font-size: 12px;
  color: var(--text-muted);
}

.wm-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.wm-loading::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.wm-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.wm-alert-danger {
  background: rgba(255, 77, 79, 0.15);
  color: #ff4d4f;
  border: 1px solid rgba(255, 77, 79, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .wm-search-container {
    grid-template-columns: 1fr;
  }

  .wm-modal-content {
    max-width: 95vw;
  }

  .wm-card-credit {
    min-height: 200px;
    padding: 20px;
  }

  .wm-card-credit-amount {
    font-size: 36px;
  }

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

  .wm-table {
    font-size: 12px;
  }

  .wm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   NOTIFICATIONS & ALERTS
   ============================================ */

.wm-flash-notifications {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
  box-sizing: border-box;
  padding: 0 12px;
  overflow: visible;
}

.wm-toast-msg {
  width: 100%;
  pointer-events: auto;
  animation: wm-toast-enter 0.28s ease both;
}

.wm-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(5, 46, 22, 0.08);
  box-shadow: 0 14px 30px rgba(5, 46, 22, 0.14);
  color: #052e16;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wm-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 16px;
  background: rgba(16, 212, 16, 0.12);
  color: #10d410;
}

.wm-toast-text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #052e16;
}

.wm-toast-close {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 2px;
  line-height: 1;
}

.wm-toast-close:hover {
  color: #052e16;
}

.wm-toast-msg.category-error .wm-toast-inner,
.wm-toast-msg.category-danger .wm-toast-inner {
  border-color: rgba(229, 57, 53, 0.18);
  background: #fff7f7;
}

.wm-toast-msg.category-error .wm-toast-icon,
.wm-toast-msg.category-danger .wm-toast-icon {
  background: rgba(229, 57, 53, 0.12);
  color: #e53935;
}

.wm-toast-msg.category-warning .wm-toast-inner {
  border-color: rgba(255, 193, 7, 0.2);
  background: #fffcf2;
}

.wm-toast-msg.category-warning .wm-toast-icon {
  background: rgba(255, 193, 7, 0.16);
  color: #f59e0b;
}

.wm-toast-msg.category-info .wm-toast-inner {
  border-color: rgba(16, 212, 16, 0.16);
  background: #f7fff8;
}

@keyframes wm-toast-enter {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wm-notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
  padding: 0;
  overflow: visible;
}

.wm-notification {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 212, 16, 0.05);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-16px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wm-notification.wm-notification-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wm-notification-icon {
  font-size: 22px;
  flex-shrink: 0;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-notification-content {
  flex: 1;
  min-width: 0;
}

.wm-notification-content h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wm-notification-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.wm-notification-message {
  flex: 1;
  color: #ffffff;
  word-wrap: break-word;
  font-weight: 600;
  font-size: 13px;
}

.wm-notification-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wm-notification-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Notification type variations */
.wm-notification-success {
  border-color: #8a8a8a;

}

.wm-notification-success .wm-notification-icon {
  color: #ffffff;
  background: #050303;
}

.wm-notification-error {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(239, 68, 68, 0.15);
}

.wm-notification-error .wm-notification-icon {
  color: #ff4d4f;
  background: rgba(239, 68, 68, 0.12);
}

.wm-notification-info {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.15);
}

.wm-notification-info .wm-notification-icon {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.wm-notification-warning {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(251, 191, 36, 0.15);
}

.wm-notification-warning .wm-notification-icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.wm-notification-transaction {
  border-color: #86efac;
  background: #f0fdf4;
}

.wm-notification-transaction .wm-notification-icon {
  color: #00B33C;
}

/* Transaction Success Animation */
.wm-notification-transaction-success {
  min-width: 280px;
  background: linear-gradient(135deg, rgba(0, 179, 60, 0.12), rgba(76, 217, 100, 0.08)) !important;
  border: 1px solid rgba(0, 179, 60, 0.24) !important;
  padding: 18px 16px !important;
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 14px 30px rgba(0, 179, 60, 0.14) !important;
}

.wm-notification-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wm-checkmark-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00B33C 0%, #4cd964 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.wm-checkmark-mark {
  width: 24px;
  height: 24px;
  position: relative;
  animation: checkmarkDraw 0.5s ease-out 0.2s forwards;
}

.wm-checkmark-mark::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 8px;
  border: 3px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateX(-50%);
  left: 50%;
  top: 30%;
  animation: checkDraw 0.5s ease-out 0.4s both;
}

@keyframes checkDraw {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  100% {
    width: 16px;
    height: 8px;
    opacity: 1;
  }
}

.wm-notification-content {
  flex: 1;
}

.wm-notification-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #00B33C;
}

.wm-notification-content p {
  margin: 0;
  font-size: 12px;
  color: #5A6C7D;
}

/* Loading Screen */
.wm-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.wm-loading-screen.wm-loading-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wm-loading-content {
  text-align: center;
}

.wm-loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wm-loader-animation {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* Page header con botón Atrás (evita conflicto con título en móvil) */
.wm-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8, 156, 8, 0.06), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(8, 156, 8, 0.1);
}

.wm-page-header .wm-page-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy-blue);
}

.wm-btn-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 16px 22px !important;
  border-radius: 12px !important;
  border: 2px solid var(--border-subtle) !important;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-elevated-soft) 100%) !important;
  color: var(--text-main) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  min-width: 52px !important;
  min-height: 52px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  letter-spacing: 0.3px !important;
}

.wm-btn-back i {
  font-size: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: bold !important;
}

.wm-btn-back:hover {
  background: var(--bg-elevated) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateX(-2px) !important;
}

.wm-btn-back:active {
  transform: translateX(-4px) !important;
}

@media (max-width: 600px) {
  .wm-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wm-page-header .wm-page-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .wm-btn-back-text {
    display: none;
  }

  .wm-btn-back {
    padding: 14px 16px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  .wm-btn-back i {
    font-size: 20px !important;
  }
}

/* Confirm Modal */
.wm-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wm-confirm-modal.wm-modal-show {
  opacity: 1;
}

.wm-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive Notifications */
@media (max-width: 600px) {
  .wm-notification-container {
    top: auto;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .wm-notification {
    transform: translateY(200px);
  }

  .wm-notification.wm-notification-show {
    transform: translateY(0);
  }

  .wm-notification-transaction-success {
    min-width: auto;
  }

  .wm-checkmark-circle {
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.wm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  margin: 0 8px;
}

.wm-theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.wm-theme-toggle .wm-icon {
  display: inline-block;
  animation: themeSwitch 0.4s ease;
}

@keyframes themeSwitch {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* ============================================
   LIGHT THEME - DISABLED
   ============================================ */
/* Light theme completely removed per user request */

/* WebSocket Connection Indicator - HIDDEN */
.ws-status {
  display: none !important;
}

/* ============================================
   MICRO ANIMATIONS - BOTONES
   ============================================ */

.wm-btn {
  position: relative;
  overflow: hidden;
}

.wm-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wm-btn:active::after {
  animation: wm-ripple 0.6s ease-out;
}

@keyframes wm-ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

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

.wm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   TRANSACCIONES DROPDOWN
   ============================================ */

.wm-transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.wm-transactions-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wm-tx-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.wm-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  font-size: 0;
}

.wm-dropdown-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wm-dropdown-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.wm-dropdown-toggle.wm-toggle-active svg {
  transform: rotate(180deg);
}

.wm-transactions-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.wm-transactions-dropdown.wm-dropdown-open {
  max-height: 500px;
  opacity: 1;
  overflow-y: auto;
  overflow-y: overlay;
  animation: wm-dropdown-open 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 255, 20, 0.3) transparent;
}

.wm-transactions-dropdown.wm-dropdown-open::-webkit-scrollbar {
  width: 6px;
}

.wm-transactions-dropdown.wm-dropdown-open::-webkit-scrollbar-track {
  background: transparent;
}

.wm-transactions-dropdown.wm-dropdown-open::-webkit-scrollbar-thumb {
  background: rgba(57, 255, 20, 0.3);
  border-radius: 3px;
}

.wm-transactions-dropdown.wm-dropdown-open::-webkit-scrollbar-thumb:hover {
  background: rgba(57, 255, 20, 0.5);
}

@keyframes wm-dropdown-open {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.wm-transactions-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wm-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: wm-tx-item-fade 0.4s ease;
  transition: all 0.2s ease;
  margin-bottom: 6px;
}

.wm-tx-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);

}

.wm-tx-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.wm-tx-item.wm-tx-unseen {
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.15), rgba(57, 255, 20, 0.05));
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  margin-bottom: 8px;
  position: relative;
  box-shadow: inset 0 0 1px rgba(57, 255, 20, 0.2);
}

@keyframes wm-tx-item-fade {
  0% {
    opacity: 0;
    transform: translateX(-8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.wm-tx-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wm-tx-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-notification-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
  animation: wm-pulse 2s ease-in-out infinite;
}

@keyframes wm-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.6), inset 0 0 0 2px var(--primary);
  }
  50% {
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.9), inset 0 0 0 2px var(--primary);
  }
}

/* ============================================
   MODAL DE ÉXITO CON ANIMACIÓN LOTTIE
   ============================================ */

.wm-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 46, 22, 0.85);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
}

.wm-success-modal.wm-modal-open {
  opacity: 1;
  visibility: visible;
}

.wm-success-content {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #FFFFFF, #F4F8FF);
  border: 1px solid rgba(8, 156, 8, 0.14);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  text-align: center;
  max-width: 520px;
  animation: wm-success-slide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 28px 70px rgba(5, 46, 22, 0.14);
}

@keyframes wm-success-slide {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wm-success-animation {
  width: 100px;
  height: 100px;
  margin: 0 auto 22px;
}

.wm-success-content h2 {
  font-size: 26px;
  color: var(--primary);
  margin: 16px 0 8px 0;
}

.wm-success-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 24px 0;
}

.wm-success-content .wm-btn {
  width: 100%;
}

/* ============================================
   ANIMACIÓN DE CARGA MEJORADA
   ============================================ */

/* Estilos duplicados removidos - definido arriba en línea 2222 */



/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (max-width: 768px) {
  .wm-success-content {
    padding: 32px 24px;
    max-width: 90%;
  }
  
  .wm-success-animation {
    width: 80px;
    height: 80px;
  }
  
  .wm-loader-animation {
}

/* ═══════════════════════════════════════════════════════════════════
   TARJETA VIRTUAL DE WAPMONEY
   Componente responsivo con aspect-ratio y container queries
   ═══════════════════════════════════════════════════════════════════ */

.virtual-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  margin: 24px 0;
  min-width: 0;
}

.virtual-card {
  /* 1. BLOQUEO DE PROPORCIÓN (Aspect Ratio) */
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1.586 / 1;
  
  /* 2. Container Queries para escalado proporcional */
  container-type: inline-size;
  
  /* Posicionamiento y display */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  /* Estilo del plástico - Colores actuales */
  background: #10d410;
  border-radius: min(4cqw, 24px);
  padding: 6cqw;
  color: #FFFFFF;
  border: 1px solid #0051a8;
  
  /* Sombras para efecto de grosor de plástico */
  box-shadow: 
    0 8px 32px rgba(16, 212, 16, 0.3),
    inset 0 -2cqw 8cqw rgba(0, 0, 0, 0.15),
    inset 0 2cqw 8cqw rgba(255, 255, 255, 0.1);
  
  /* Overflow y z-index */
  overflow: hidden;
  z-index: 1;
  
  /* Transiciones suaves */
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  
  /* Efecto de ruido suave (overlay de textura) */
  background-image: 
    linear-gradient(135deg, #10d410 0%, #0051A8 50%, #003A7F 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/></filter><rect width="100%" height="100%" fill="%23007FFF" filter="url(%23noise)" opacity="0.03"/></svg>');
  background-blend-mode: overlay;
}

.virtual-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(16, 212, 16, 0.4),
    inset 0 -2cqw 8cqw rgba(0, 0, 0, 0.15),
    inset 0 2cqw 8cqw rgba(255, 255, 255, 0.15);
}

/* Elemento decorativo de fondo */
.virtual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Contenedor principal del contenido */
.virtual-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #FFFFFF;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN SUPERIOR: LOGO, CHIP Y QR
   ═══════════════════════════════════════════════════════════════════ */

.virtual-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4cqw;
  gap: 3cqw;
}

/* Logo de WapMoney */
.virtual-card-logo {
  width: 14cqw;
  height: auto;
  max-height: 8cqw;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Contenedor del chip y QR (lado derecho) */
.virtual-card-icons {
  display: flex;
  gap: 2.5cqw;
  align-items: flex-start;
}

/* Chip de seguridad */
.virtual-card-chip {
  width: 12cqw;
  height: 10cqw;
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 50%, #FFB700 100%);
  border-radius: 1.5cqw;
  
  /* Efecto de grabado del chip */
  box-shadow: 
    inset 0 -1cqw 3cqw rgba(0, 0, 0, 0.3),
    inset 0 0.5cqw 1cqw rgba(255, 255, 255, 0.4),
    0 4cqw 10cqw rgba(0, 0, 0, 0.25);
  
  position: relative;
  overflow: hidden;
  
  /* Contactos del chip */
  background-image: 
    linear-gradient(135deg, #FFD700 0%, #FFC700 50%, #FFB700 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2cqw,
      rgba(0, 0, 0, 0.1) 2cqw,
      rgba(0, 0, 0, 0.1) 2.5cqw
    );
}

/* Código QR */
.virtual-card-qr {
  width: 12cqw;
  height: 12cqw;
  background: #FFFFFF;
  border-radius: 1cqw;
  padding: 0.8cqw;
  box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Borde de seguridad del QR */
  border: 0.5cqw solid rgba(0, 51, 200, 0.2);
}

.virtual-card-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.6cqw;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN CENTRAL: SALDO PRINCIPAL
   ═══════════════════════════════════════════════════════════════════ */

.virtual-card-balance-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 1.5cqw;
  margin: 4cqw 0;
}

.virtual-card-balance-label {
  font-size: 2.5cqw;
  font-weight: 600;
  letter-spacing: 0.8cqw;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1;
}

.virtual-card-balance-amount {
  font-size: 9cqw;
  font-weight: 800;
  letter-spacing: -0.3cqw;
  line-height: 0.95;
  text-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.2);
  word-break: break-word;
}

.virtual-card-balance-currency {
  font-size: 4cqw;
  font-weight: 700;
  opacity: 0.9;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN INFERIOR: DATOS DEL TITULAR
   ═══════════════════════════════════════════════════════════════════ */

.virtual-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3cqw;
  padding-top: 4cqw;
  border-top: 0.8cqw solid rgba(255, 255, 255, 0.15);
  margin-top: auto;
}

/* Datos del titular (lado izquierdo) */
.virtual-card-holder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.virtual-card-holder-label {
  font-size: 2cqw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5cqw;
  opacity: 0.8;
  margin-bottom: 1cqw;
  line-height: 1;
}

.virtual-card-holder-name {
  font-size: 3.5cqw;
  font-weight: 700;
  letter-spacing: -0.1cqw;
  line-height: 1.1;
  word-break: break-word;
  text-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, 0.15);
}

/* Código WAP (lado derecho) */
.virtual-card-code-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.virtual-card-code-label {
  font-size: 1.8cqw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4cqw;
  opacity: 0.8;
  margin-bottom: 1cqw;
  line-height: 1;
}

.virtual-card-code {
  font-size: 3.2cqw;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3cqw;
  line-height: 1;
  text-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, 0.2);
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE: Validación de tamaño mínimo
   ═══════════════════════════════════════════════════════════════════ */

/* Pantallas extra pequeñas */
@media (max-width: 380px) {
  .virtual-card {
    max-width: 100%;
    aspect-ratio: 1.586 / 1;
  }
}

/* Tablets y pantallas medianas */
@media (300px <= width <= 800px) {
  .virtual-card {
    max-width: min(100%, 450px);
  }
  
  .virtual-card-icons {
    flex-direction: column;
    gap: 3cqw;
  }
  
  .virtual-card-footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2cqw;
  }
  
  .virtual-card-code-section {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
}

/* Laptops y pantallas grandes */
@media (min-width: 801px) {
  .virtual-card {
    max-width: 450px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   EFECTOS Y ANIMACIONES
   ═══════════════════════════════════════════════════════════════════ */

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

.virtual-card {
  animation: cardSlideIn 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Estado enfocado (accesibilidad) */
.virtual-card:focus-within {
  outline: 2cqw solid rgba(255, 255, 255, 0.3);
  outline-offset: 0.5cqw;
}
    width: 100px;
    height: 100px;
  }
  
  .wm-transactions-dropdown.wm-dropdown-open {
    max-height: 400px;
  }
}

/* ==================== GRÁFICAS Y CHARTS ==================== */
canvas {
  max-height: unset !important;
}

.wm-chart-container {
  position: relative;
  width: 100%;
  min-height: 240px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid rgba(5, 46, 22, 0.08);
  box-shadow: 0 24px 60px rgba(5, 46, 22, 0.08);
}

.wm-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #F7F9FF;
  border: 1px solid rgba(5, 46, 22, 0.08);
  box-shadow: 0 20px 45px rgba(5, 46, 22, 0.06);
}

.wm-chart-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: inherit;
  z-index: 1;
}

#balanceChart,
#incomeExpenseChart,
#transactionTypeChart {
  width: 100% !important;
  height: 100% !important;
}

/* ==================== CAROUSEL / GALLERY SLIDER ==================== */

.wm-gallery-section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.wm-gallery-section h2 {
  padding: 0 20px;
  margin-bottom: 40px !important;
}

.wm-carousel-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.wm-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 5.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wm-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wm-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.wm-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: none;
  image-rendering: high-quality;
  image-rendering: crisp-edges;
}

.wm-carousel-slide.portrait-slide img {
  animation: slideInVertical 0.8s ease-in-out;
}

@keyframes slideInVertical {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wm-carousel-slide:hover img {
  /* Hover effect removed for clean display */
}

.wm-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(57, 255, 20, 0.8);
  color: #050608;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.wm-carousel-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(57, 255, 20, 0.4);
}

.wm-carousel-prev {
  left: 16px;
}

.wm-carousel-next {
  right: 16px;
}

.wm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 40px 0 40px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.wm-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wm-carousel-dot.active {
  background: var(--primary);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.8), 0 4px 8px rgba(57, 255, 20, 0.4);
  border-radius: 50%;
  transform: scale(1.2);
}

.wm-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .wm-carousel-wrapper {
    aspect-ratio: 16 / 6;
  }

  .wm-carousel-nav {
    width: 40px;
    height: 40px;
  }

  .wm-carousel-prev {
    left: 8px;
  }

  .wm-carousel-next {
    right: 8px;
  }

  .wm-carousel-dots {
    margin-top: 12px;
    gap: 6px;
    padding: 12px 20px 0 20px;
  }

  .wm-carousel-dot {
    width: 8px;
    height: 8px;
  }

  .wm-carousel-dot.active {
    transform: scale(1.3);
  }
}

/* ============================================
   QR SCANNER MODAL
   ============================================ */

.scanner-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.scanner-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(15, 17, 23, 0.98), rgba(20, 24, 36, 0.98));
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(57, 255, 20, 0.25), 0 0 40px rgba(57, 255, 20, 0.15);
  animation: scanner-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scanner-slide-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scanner-header {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.scanner-header h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text-main);
}

.scanner-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.scanner-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scanner-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 
    0 0 0 2000px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px var(--primary);
  pointer-events: none;
}

.scanner-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(45deg, transparent 40%, rgba(57, 255, 20, 0.1) 50%, transparent 60%);
  animation: scanner-scan 2s ease-in-out infinite;
}

@keyframes scanner-scan {
  0%, 100% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
}

.scanner-info {
  padding: 16px 24px 24px;
  text-align: center;
  border-top: 1px solid rgba(57, 255, 20, 0.1);
  color: var(--text-muted);
  font-size: 13px;
}

.scanner-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.scanner-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-main);
}

.scanner-close-btn:active {
  transform: scale(0.9);
}

/* Scanner Result Modal */
.scanner-result-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.scanner-result-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, rgba(15, 17, 23, 0.98), rgba(20, 24, 36, 0.98));
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(57, 255, 20, 0.25);
  animation: scanner-result-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scanner-result-pop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.scanner-result-content h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 20px;
}

.scanner-result-data {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 13px;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: monospace;
  max-height: 100px;
  overflow-y: auto;
}

.scanner-result-actions {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.scanner-result-actions .wm-btn {
  width: 100%;
}

@media (max-width: 500px) {
  .scanner-container {
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .scanner-header {
    padding: 16px 16px 12px;
  }

  .scanner-header h2 {
    font-size: 18px;
  }

  .scanner-frame {
    width: 80%;
  }

  .scanner-info {
    padding: 12px 16px 16px;
    font-size: 12px;
  }

  .scanner-result-content {
    max-width: 100%;
    padding: 24px 16px;
  }

  .scanner-result-content h2 {
    font-size: 18px;
  }
}
.wm-notification-container {
  position: fixed;
  right: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.wm-notification {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wm-notification-show {
  opacity: 1;
  transform: translateY(0);
}

.wm-notification-hide {
  opacity: 0;
  transform: translateY(-8px);
}

.wm-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-notification-message {
  flex: 1;
  line-height: 1.4;
}

.wm-notification-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}

.wm-checkmark-mark {
  width: 14px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.wm-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wm-modal-show {
  opacity: 1;
}

.wm-modal-content {
  width: min(480px, calc(100vw - 32px));
  background: #fff;
  color: #111827;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

.wm-modal-show .wm-modal-content {
  transform: scale(1);
}

.wm-modal-header {
  padding: 20px 20px 0;
}

.wm-modal-body {
  padding: 16px 20px;
}

.wm-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  transition: opacity 0.25s ease;
}

.wm-loading-hidden {
  opacity: 0;
  pointer-events: none;
}

.wm-loading-content {
  text-align: center;
}

.wm-loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: #111827;
  animation: wm-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .wm-notification,
  .wm-modal-content,
  .wm-loading-screen {
    transition: none;
  }

  .wm-loading-spinner {
    animation-duration: 1.2s;
  }
}