/* ============================================================
   auth-modal.css — LUXA Unified Web3 Wallet & User Account System
   Fully Responsive, English, High-Performance Web3 Architecture
   ============================================================ */

.luxa-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxa-auth-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.luxa-auth-modal {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #0d1322;
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 255, 204, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  max-height: 92vh;
}

.luxa-auth-backdrop.active .luxa-auth-modal {
  transform: scale(1) translateY(0);
}

/* LEFT COLUMN: VORTEX & SOVEREIGN TELEMETRY */
.luxa-auth-left {
  position: relative;
  width: 40%;
  background: #080c16;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.luxa-vortex-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
}

.luxa-vortex-bg svg {
  width: 100%;
  height: 100%;
}

.luxa-auth-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #00FFCC;
  letter-spacing: 0.05em;
  z-index: 2;
  align-self: flex-start;
}

.luxa-auth-features {
  position: relative;
  z-index: 2;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.luxa-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.luxa-feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00FFCC, #38bdf8);
  color: #050a12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.35);
}

.luxa-feat-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.luxa-feat-text strong {
  color: #ffffff;
  font-weight: 600;
}

.luxa-auth-footnote {
  position: relative;
  z-index: 2;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* RIGHT COLUMN: TABS & ACTION TERMINAL */
.luxa-auth-right {
  position: relative;
  flex: 1;
  background: #0f1524;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.luxa-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 10;
}

.luxa-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* TABS SWITCHER */
.luxa-modal-tabs {
  display: flex;
  background: #090e1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.luxa-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.luxa-tab-btn.active {
  background: #192238;
  color: #00FFCC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 204, 0.25);
}

.luxa-tab-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

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

.luxa-tab-content.active {
  display: block;
  animation: luxaFadeIn 0.2s ease;
}

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

.luxa-auth-header {
  margin-bottom: 16px;
}

.luxa-auth-header h2 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.luxa-auth-header p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   WALLET CARDS & ACTIONS
   ============================================================ */

/* TOP FEATURED: LUXA SPIDER VAULT */
.luxa-wallet-featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.12) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1.5px solid #00FFCC;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.18);
  transition: all 0.2s ease;
  text-align: left;
}

.luxa-wallet-featured:hover {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.22) 0%, rgba(56, 189, 248, 0.25) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 255, 204, 0.32);
}

.luxa-wallet-featured-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.luxa-wallet-icon-png {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  display: block;
}

.luxa-wallet-featured-icon,
.luxa-vault-featured-icon {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 255, 204, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.luxa-wallet-featured:hover .luxa-vault-featured-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(0, 255, 204, 0.7));
}

.luxa-wallet-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.luxa-wallet-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.luxa-wallet-desc {
  font-size: 11px;
  color: #94a3b8;
}

/* BADGES */
.luxa-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

.luxa-badge-native {
  background: #00FFCC;
  color: #050a12;
}

.luxa-badge-official {
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid rgba(0, 255, 204, 0.4);
  color: #00FFCC;
}

.luxa-badge-supported {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.luxa-badge-bridge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* WALLET LIST (SUBSEQUENT CARDS) */
.luxa-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.luxa-wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #141b2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.luxa-wallet-item:hover {
  background: #1b243b;
  border-color: rgba(0, 255, 204, 0.35);
  transform: translateY(-1px);
}

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

.luxa-wallet-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.luxa-wallet-item-arrow {
  color: #64748b;
  font-size: 11px;
  transition: transform 0.15s;
}

.luxa-wallet-item:hover .luxa-wallet-item-arrow {
  color: #00FFCC;
  transform: translateX(3px);
}

/* SECTION HEADERS IN WALLET TAB */
.luxa-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* DIRECT ADDRESS BOX */
.luxa-direct-address-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.luxa-email-row {
  display: flex;
  align-items: center;
  background: #151d2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 4px 5px 4px 12px;
  gap: 8px;
  transition: border-color 0.15s;
}

.luxa-email-row:focus-within {
  border-color: #00FFCC;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.luxa-email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12.5px;
}

.luxa-email-input::placeholder {
  color: #64748b;
}

.luxa-btn-send {
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00FFCC, #38bdf8);
  color: #050a12;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.luxa-btn-send:hover {
  opacity: 0.9;
}

.luxa-email-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #64748b;
  margin-top: 5px;
}

/* SOCIAL BUTTONS */
.luxa-social-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.luxa-btn-social {
  width: 100%;
  padding: 11px 16px;
  border-radius: 11px;
  background: #141b2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s;
}

.luxa-btn-social:hover {
  background: #1e2840;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.luxa-btn-social svg,
.luxa-btn-social i {
  width: 16px;
  height: 16px;
}

/* DIVIDER */
.luxa-auth-divider {
  position: relative;
  text-align: center;
  margin: 14px 0;
}

.luxa-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.luxa-auth-divider span {
  position: relative;
  background: #0f1524;
  padding: 0 10px;
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ALERTS */
.luxa-alert {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.luxa-alert.error {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fda4af;
}

.luxa-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.luxa-alert.info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

/* FOOTER */
.luxa-auth-footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 11px;
  color: #64748b;
}

.luxa-auth-footer a {
  color: #94a3b8;
  text-decoration: underline;
}

.luxa-auth-footer a:hover {
  color: #00FFCC;
}

/* ============================================================
   NAVBAR CONNECTED USER DROPDOWN
   ============================================================ */
.luxa-user-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.luxa-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #0d1322;
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 255, 204, 0.15);
  padding: 10px;
  z-index: 99999;
  display: none;
  animation: luxaDropIn 0.18s ease;
}

.luxa-user-dropdown-menu.open {
  display: block;
}

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

.luxa-dropdown-user-header {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.luxa-dropdown-user-tag {
  font-size: 10px;
  font-weight: 700;
  color: #00FFCC;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.luxa-dropdown-user-id {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.luxa-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  box-sizing: border-box;
}

.luxa-dropdown-item:hover {
  background: #192238;
  color: #00FFCC;
}

.luxa-dropdown-item.disconnect {
  color: #f87171;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.luxa-dropdown-item.disconnect:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .luxa-auth-modal {
    flex-direction: column;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    border-radius: 18px;
  }
  .luxa-auth-left {
    display: none;
  }
  .luxa-auth-right {
    width: 100%;
    padding: 22px 18px;
  }
  .luxa-modal-close-btn {
    top: 12px;
    right: 12px;
  }
}

/* ============================================================
   USER ACCOUNT PILL & SOVEREIGN ACCOUNT MODAL
   ============================================================ */
@keyframes luxa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.luxa-nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #141d33;
  border: 1px solid rgba(0, 255, 204, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.12);
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.luxa-nav-user-pill:hover {
  border-color: #00FFCC;
  box-shadow: 0 0 16px rgba(0, 255, 204, 0.25);
  transform: translateY(-1px);
}

.luxa-nav-user-pill:active {
  transform: scale(0.97);
}

.luxa-nav-user-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.luxa-nav-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  flex-shrink: 0;
  animation: luxa-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.luxa-nav-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f1f5f9;
}

/* ACCOUNT MODAL STYLES */
.luxa-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxa-account-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.luxa-account-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: #0d1322;
  border: 1px solid rgba(0, 255, 204, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 204, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  max-height: 90vh;
}

.luxa-account-backdrop.active .luxa-account-card {
  transform: scale(1) translateY(0);
}

.luxa-account-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.luxa-account-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.luxa-account-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.luxa-account-header-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.luxa-account-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.luxa-account-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
}

.luxa-account-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #00FFCC;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.luxa-account-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.luxa-account-field-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.luxa-account-field-label {
  font-size: 12px;
  color: #94a3b8;
}

.luxa-account-field-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.luxa-account-btn-edit {
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #00FFCC;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.luxa-account-btn-edit:hover {
  background: rgba(0, 255, 204, 0.25);
}

.luxa-account-input {
  background: #080c16;
  border: 1px solid rgba(0, 255, 204, 0.4);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}

.luxa-account-apikey-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.luxa-account-apikey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #080c16;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.luxa-account-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.luxa-account-btn-signout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.luxa-account-btn-signout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

