/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #f9fafb;
  background: #000000;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  animation: fadeIn 0.8s ease-out;
}

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


/* Generator page styles */
.container {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 2rem;
  background: #000000;
  overflow-y: auto;
}

.container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.9) 100%);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(168, 85, 247, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

label {
  display: block;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

input, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
  color: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

input:hover, select:hover {
  border-color: #4b5563;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

input:focus, select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 4px 15px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(31, 41, 55, 1) 0%, rgba(17, 24, 39, 1) 100%);
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 100%;
}

.primary {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
  border-color: rgba(147, 51, 234, 0.6);
}

.primary:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.secondary {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(31, 41, 55, 0.8) 100%);
  color: #f9fafb;
  border: 1px solid rgba(75, 85, 99, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.secondary:hover {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.8) 0%, rgba(55, 65, 81, 0.8) 100%);
  border-color: rgba(107, 114, 128, 0.7);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.secondary:active {
  transform: translateY(0) scale(1.01);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.result {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 1.5rem;
}

.token-list h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 1.5rem 0 0.5rem 0;
}

.token-list h3:first-child {
  margin-top: 0;
}

.token-list ul {
  list-style: none;
  padding: 0;
}

.token-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #374151;
  color: #d1d5db;
}

.token-list li:last-child {
  border-bottom: none;
}

.token-list code {
  background: #374151;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  color: #a855f7;
}

/* Main container - full screen two column layout */
.payment-container {
  display: flex;
  height: 100vh;
  width: 100%;
  max-width: 100vw;
}

/* Left side - Seller Information (Black theme) */
.seller-side {
  flex: 1;
  background: 
    linear-gradient(135deg, #000000 0%, #111111 25%, #1a1a1a 50%, #111111 75%, #000000 100%),
    radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100vh;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

.seller-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
    linear-gradient(90deg, transparent 98%, rgba(0, 0, 0, 0.05) 100%),
    linear-gradient(0deg, transparent 98%, rgba(0, 0, 0, 0.05) 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.seller-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(88, 166, 255, 0.02) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(88, 166, 255, 0.02) 50%, transparent 70%);
  background-size: 200px 200px, 200px 200px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200px 200px, -200px 200px; }
}


.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a855f7;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.logo svg {
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6)); }
  100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.9)); }
}




.seller-content {
  flex: 1;
  padding: 10px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  justify-content: center;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
  margin-top: -10px;
}

.seller-title {
  font-size: 36px;
  font-weight: 800;
  color: #f3f4f6;
  margin: 0;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #f3f4f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 4s ease-in-out infinite;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-logo {
  width: 120px;
  height: auto;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.title-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(168, 85, 247, 0.4));
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.seller-subtitle {
  color: #8b949e;
  font-size: 14px;
  line-height: 1.4;
  max-width: 400px;
  opacity: 0.9;
  margin: 0;
  flex: 1;
}

/* Amount Display */
.amount-display { 
  background: 
    linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(33, 38, 45, 0.7) 50%, rgba(22, 27, 34, 0.9) 100%),
    radial-gradient(circle at center, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
  border: 2px solid rgba(88, 166, 255, 0.3);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center; 
  backdrop-filter: blur(25px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(88, 166, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(88, 166, 255, 0.1);
  position: relative;
  overflow: visible;
  max-width: 420px;
  margin: 0 auto;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.amount-display:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 6px 20px rgba(88, 166, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(88, 166, 255, 0.15);
}

.amount-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.amount-display h2 { 
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #7c3aed; 
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.amount-value { 
  font-size: 56px;
  font-weight: 900;
  color: #a855f7;
  margin: 8px 0;
  text-shadow: 
    0 0 20px rgba(168, 85, 247, 0.6),
    0 0 40px rgba(168, 85, 247, 0.4),
    0 0 60px rgba(168, 85, 247, 0.2);
  letter-spacing: -1px;
  background: linear-gradient(135deg, #a855f7 0%, #ffffff 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: amountPulse 2s ease-in-out infinite;
  line-height: 1.2;
}

.amount-details {
  display: none;
}

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

.amount-details { 
  color: #8b949e;
  font-size: 16px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  opacity: 0.8;
}

/* Merchant Info */
.merchant-info {
  background: 
    linear-gradient(135deg, rgba(22, 27, 34, 0.7) 0%, rgba(33, 38, 45, 0.5) 50%, rgba(22, 27, 34, 0.7) 100%),
    radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.05) 0%, transparent 50%);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(88, 166, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(88, 166, 255, 0.05);
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
  max-width: 450px;
  margin: 0 auto;
}

.merchant-info:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(88, 166, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(88, 166, 255, 0.08);
}

.merchant-info h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.info-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #58a6ff 0%, transparent 100%);
  border-radius: 2px;
  opacity: 0.6;
}

.info-item label {
  font-size: 10px;
  color: #7c3aed;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.display-name {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(17, 17, 17, 0.6) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #f3f4f6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  word-break: break-all;
  min-height: 40px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.display-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
  transition: left 0.5s ease;
}

.display-name:hover::before {
  left: 100%;
}

.display-name:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* Right side - Payment Options (Black theme) */
.payment-side {
  flex: 1;
  background: 
    linear-gradient(135deg, #000000 0%, #111111 25%, #1a1a1a 50%, #111111 75%, #000000 100%),
    radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  height: 100vh;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.3);
}

.payment-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
    linear-gradient(90deg, transparent 98%, rgba(0, 0, 0, 0.05) 100%),
    linear-gradient(0deg, transparent 98%, rgba(0, 0, 0, 0.05) 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.payment-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.02) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(0, 0, 0, 0.02) 50%, transparent 70%);
  background-size: 200px 200px, 200px 200px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200px 200px, -200px 200px; }
}

.payment-header {
  padding: 32px 40px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

.payment-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-header .logo img {
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
  animation: logoGlowRight 3s ease-in-out infinite alternate;
  border-radius: 4px;
  object-fit: contain;
}

@keyframes logoGlowRight {
  0% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)); }
  100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)); }
}

/* Floating particles for right side */
.particles-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle-right {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: floatRight 10s infinite linear;
}

.particle-right:nth-child(1) {
  left: 15%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle-right:nth-child(2) {
  left: 35%;
  animation-delay: 3s;
  animation-duration: 14s;
}

.particle-right:nth-child(3) {
  left: 65%;
  animation-delay: 6s;
  animation-duration: 11s;
}

.particle-right:nth-child(4) {
  left: 85%;
  animation-delay: 9s;
  animation-duration: 13s;
}

@keyframes floatRight {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.payment-content {
  flex: 1;
  padding: 16px 40px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.payment-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #f9fafb;
  text-align: center;
  background: linear-gradient(135deg, #f9fafb 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.payment-options {
  margin-bottom: 32px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.payment-options:hover {
  transform: none;
  box-shadow: none;
}

.option-group {
  margin-bottom: 20px;
  position: relative;
}

.option-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-group select {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: #f9fafb;
  transition: all 0.3s ease;
  box-shadow: none;
  backdrop-filter: none;
}

.option-group select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
  transform: none;
}

.wallet-section {
  margin-bottom: 24px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.wallet-section:hover {
  transform: none;
  box-shadow: none;
}

.wallet-btn {
  width: 100%;
  background: 
    linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #9333ea 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.4),
    0 2px 8px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wallet-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.wallet-btn:hover::before {
  left: 100%;
}

.wallet-btn:hover {
  background: 
    linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #7c3aed 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(147, 51, 234, 0.5),
    0 4px 12px rgba(147, 51, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wallet-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.wallet-btn.secondary {
  background: 
    linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #6b7280 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  margin-bottom: 8px;
}

.wallet-btn.secondary:hover {
  background: 
    linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #a855f7 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(168, 85, 247, 0.4),
    0 4px 12px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wallet-info {
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.action-buttons:hover {
  transform: none;
  box-shadow: none;
}

.action-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn.primary {
  background: 
    linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #a855f7 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  color: #ffffff;
  box-shadow: 
    0 6px 20px rgba(168, 85, 247, 0.4),
    0 2px 8px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.action-btn.primary:hover {
  background: 
    linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #9333ea 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(168, 85, 247, 0.5),
    0 4px 12px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.action-btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.action-btn.secondary {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: #f9fafb;
  border: 2px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn.secondary:hover {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  border-color: #a855f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.action-btn.secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* Responsive design */
@media (max-width: 1024px) {
  .payment-container {
    flex-direction: column;
  }
  
  .seller-side {
    min-height: 50vh;
  }
  
  .payment-content {
    padding: 32px 24px;
    max-width: none;
  }
  
  .seller-content {
    padding: 24px;
  }
  
  .seller-title {
    font-size: 28px;
  }
  
  .title-logo {
    width: 96px;
    height: auto;
  }
  
  .amount-value {
    font-size: 40px;
  }
}




/* Generator page styles */
.generator-container {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #000000;
  overflow-y: auto;
  position: relative;
}

.generator-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.generator-title {
  font-size: 36px;
  font-weight: 800;
  color: #f3f4f6;
  margin: 0 0 16px 0;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #f3f4f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 4s ease-in-out infinite;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Generator page title section */
.title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

/* Dynamic dashboard link styles */
.dashboard-link {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-text-fill-color: #ffffff !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.dashboard-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.dashboard-link:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
  -webkit-text-fill-color: #ffffff !important;
}

.dashboard-link:hover::before {
  left: 100%;
}

.dashboard-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.generator-subtitle {
  color: #9ca3af;
  font-size: 16px;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

/* Generator card styles */
.generator-container .card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.generator-container .card h2 {
  color: #f3f4f6;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.generator-container .card h3 {
  color: #d1d5db;
  font-size: 16px;
  font-weight: 500;
  margin: 16px 0 8px 0;
}

.generator-container label {
  color: #d1d5db;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.generator-container input,
.generator-container select {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f3f4f6;
  font-size: 14px;
  width: 100%;
  transition: all 0.2s ease;
}

.generator-container input:focus,
.generator-container select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.generator-container .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.generator-container .grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.generator-container .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.generator-container .primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
}

.generator-container .primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(124, 58, 237, 0.4);
}

.generator-container .secondary {
  background: rgba(31, 41, 55, 0.8);
  color: #d1d5db;
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.generator-container .secondary:hover {
  background: rgba(55, 65, 81, 0.8);
  border-color: #a855f7;
}

.generator-container .result {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.generator-container .result input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(75, 85, 99, 0.4);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  word-break: break-all;
}

.generator-container .token-list {
  background: rgba(17, 24, 39, 0.4);
  border-radius: 8px;
  padding: 16px;
}

.generator-container .token-list ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.generator-container .token-list li {
  color: #9ca3af;
  margin: 4px 0;
  font-size: 14px;
}

.generator-container .token-list code {
  background: rgba(0, 0, 0, 0.3);
  color: #a855f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.generator-container .error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
}

/* QR section styles for generator */
.generator-container .qr-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.generator-container .qr-section h3 {
  color: #f3f4f6;
  margin: 0 0 16px 0;
  font-size: 18px;
}

.generator-container .qr-container {
  text-align: center;
  margin-bottom: 16px;
  background: transparent;
}

.generator-container .qr-placeholder {
  background: transparent;
  border: 2px dashed rgba(75, 85, 99, 0.5);
  border-radius: 12px;
  padding: 40px 20px;
  color: #9ca3af;
}

.generator-container .qr-actions {
  text-align: center;
}

/* Responsive design for generator */
@media (max-width: 768px) {
  .generator-container .grid-2x2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Dashboard link mobile styles for generator */
  .dashboard-link {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 16px;
  }
}

/* Payment Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.success-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(17, 24, 39, 0.9) 100%);
  border-radius: 24px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}


.success-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(168, 85, 247, 0.03) 49%, rgba(168, 85, 247, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(6, 182, 212, 0.03) 49%, rgba(6, 182, 212, 0.03) 51%, transparent 52%);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.success-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7 0%, #06b6d4 50%, #7c3aed 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: bounceIn 0.6s ease-out;
}

.success-header h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.success-details {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 
    inset 0 1px 0 rgba(168, 85, 247, 0.1),
    0 0 20px rgba(168, 85, 247, 0.1);
  position: relative;
  z-index: 2;
}

.detail-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item label {
  font-size: 14px;
  font-weight: 600;
  color: #a855f7;
  margin-bottom: 4px;
}

.tx-hash-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-hash, .tx-time, .tx-block {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  word-break: break-all;
  box-shadow: 
    inset 0 1px 0 rgba(168, 85, 247, 0.1),
    0 0 10px rgba(168, 85, 247, 0.1);
  flex: 1;
}

.copy-btn {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.tx-hash {
  color: #ffffff;
  font-weight: 600;
}

.tx-time {
  color: #ffffff;
  font-weight: 600;
}

.thank-you-message {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 
    inset 0 1px 0 rgba(168, 85, 247, 0.1),
    0 0 20px rgba(168, 85, 247, 0.1);
  position: relative;
  z-index: 2;
}

.thank-you-message h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.thank-you-message p {
  color: #d1d5db;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.success-actions .action-btn {
  flex: 1;
  max-width: 150px;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Mobile responsive */
@media (max-width: 768px) {
  .success-content {
    padding: 24px;
    margin: 20px;
    max-width: none;
    width: calc(100% - 40px);
  }
  
  .success-header h2 {
    font-size: 24px;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .success-actions .action-btn {
    max-width: none;
  }
}

/* Hidden elements */
#log {
  display: none !important;
}

/* 完全隐藏移动端按钮 - 网页端永远不显示 */
.confirm-section,
.back-section,
.mobile-only {
  display: none !important;
}

.confirm-btn {
  width: 100%;
  background: 
    linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #a855f7 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 6px 20px rgba(168, 85, 247, 0.4),
    0 2px 8px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.confirm-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.confirm-btn:hover::before {
  left: 100%;
}

.confirm-btn:hover {
  background: 
    linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #9333ea 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(168, 85, 247, 0.5),
    0 4px 12px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.confirm-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

/* 移除重复的back-section定义，已在上面统一定义 */

.back-btn {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}

/* Mobile responsive design - simplified and clean */
@media (max-width: 768px) {
  .payment-container {
    height: auto !important;
    min-height: 100vh;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
  }
  
  .seller-side, .payment-side {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    width: 100%;
    position: relative;
  }
  
  .payment-content, .seller-content {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 40px; /* 确保底部内容不被遮挡 */
  }
  
  /* 移除可能导致溢出的固定高度 */
  .amount-display, .merchant-info {
    min-height: auto !important;
  }
  
  /* 手机端页面切换效果 - 使用简单的显示/隐藏 */
  .payment-container.mobile-flow {
    display: flex;
    flex-direction: column;
  }
  
}

/* 手机端特殊处理 */
@media (max-width: 768px) {
  /* 手机端显示移动端按钮 */
  .mobile-only {
    display: block !important;
  }
  
  .mobile-only.confirm-section {
    margin-top: 24px;
    text-align: center;
  }
  
  .mobile-only.back-section {
    margin-bottom: 20px;
    text-align: left;
  }
  
  /* 手机端初始状态：只显示订单页面，隐藏支付页面 */
  .payment-container.mobile-flow .payment-side {
    display: none;
  }
  
  /* 手机端确认后：显示支付页面，隐藏订单页面 */
  .payment-container.mobile-flow.show-payment .seller-side {
    display: none;
  }
  
  .payment-container.mobile-flow.show-payment .payment-side {
    display: flex;
  }
}


/* Animation for smooth transitions */
.option-group select,
.wallet-btn,
.action-btn {
  transition: all 0.2s ease;
}

/* Focus states for accessibility */
.option-group select:focus,
.wallet-btn:focus,
.action-btn:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success/Error states */
.success {
  color: #1a7f37;
}

.error {
  color: #d1242f;
}

/* QR Code Styles */
.qr-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e4e8;
}

.qr-section h3 {
  margin-bottom: 1rem;
  color: #24292f;
  font-size: 1.1rem;
  font-weight: 600;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 220px;
  background: #f6f8fa;
  border: 2px dashed #d0d7de;
  border-radius: 8px;
  padding: 1rem;
}

.qr-placeholder {
  text-align: center;
  color: #656d76;
  font-style: italic;
}

.qr-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

#qrCode {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 8px;
}

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

.qr-actions .secondary {
  background: #f6f8fa;
  color: #24292f;
  border: 1px solid #d0d7de;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-actions .secondary:hover {
  background: #f3f4f6;
  border-color: #8c959f;
}

.qr-actions .secondary:active {
  background: #e1e4e8;
}