[hidden]{display:none!important}

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background: #0a0a0a;
      background-image:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(192, 192, 192, 0.04) 0%, transparent 60%);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      color: #e8e8e8;
    }

    .container {
      background: linear-gradient(145deg, #141414, #1c1c1c, #111111);
      border: 1px solid rgba(212, 175, 55, 0.25);
      border-radius: 20px;
      padding: 44px 36px;
      width: 100%;
      max-width: 480px;
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 25px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      position: relative;
      overflow: hidden;
    }

    .container::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 60%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06), transparent);
      transform: skewX(-20deg);
      animation: shine 6s infinite;
      pointer-events: none;
    }

    @keyframes shine {
      0% { left: -100%; }
      50%, 100% { left: 150%; }
    }

    h1 {
      font-size: 24px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 10px;
      letter-spacing: 1px;
      background: linear-gradient(180deg, #F9E79F 0%, #D4AF37 40%, #B38728 70%, #F9E79F 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    }

    .subtitle {
      text-align: center;
      font-size: 13px;
      color: rgba(192, 192, 192, 0.7);
      margin-bottom: 28px;
      letter-spacing: 0.5px;
    }

    .address-panel { display: block; }
    .address-panel.hidden { display: none; }

    .address-label {
      font-size: 13px;
      color: rgba(192, 192, 192, 0.8);
      margin-bottom: 10px;
      letter-spacing: 0.5px;
    }

    .address-input {
      width: 100%;
      padding: 15px 18px;
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 55, 0.2);
      background: rgba(0, 0, 0, 0.5);
      color: #F9E79F;
      font-family: 'Courier New', monospace;
      font-size: 13px;
      outline: none;
      transition: all 0.3s;
      margin-bottom: 18px;
      letter-spacing: 0.5px;
    }

    .address-input:focus {
      border-color: rgba(212, 175, 55, 0.6);
      box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), inset 0 0 20px rgba(212, 175, 55, 0.03);
    }

    .address-input::placeholder {
      color: rgba(192, 192, 192, 0.3);
      letter-spacing: normal;
    }

    .wallet-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 24px;
    }

    .wallet-grid.hidden { display: none; }

    .wallet-btn {
      background: linear-gradient(145deg, #1a1a1a, #222222);
      border: 1px solid rgba(212, 175, 55, 0.15);
      border-radius: 14px;
      padding: 18px 8px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 12px;
      color: rgba(232, 232, 232, 0.85);
      position: relative;
      overflow: hidden;
    }

    .wallet-btn::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .wallet-btn:hover {
      background: linear-gradient(145deg, #222222, #2a2a2a);
      border-color: rgba(212, 175, 55, 0.5);
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.08);
    }

    .wallet-btn:hover::after { opacity: 1; }

    .wallet-btn .icon {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 38px;
      margin-bottom: 8px;
    }

    .wallet-btn .icon img {
      width: 38px;
      height: 38px;
      object-fit: contain;
      display: block;
      border-radius: 9px;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    }

    .auth-panel { display: none; }
    .auth-panel.show { display: block; }

    .info-panel {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(212, 175, 55, 0.1);
      border-radius: 14px;
      padding: 20px;
      margin-bottom: 20px;
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      padding: 11px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      font-size: 13px;
    }

    .info-row:last-child { border-bottom: none; }
    .info-label { color: rgba(192, 192, 192, 0.6); }

    .info-value {
      font-family: 'Courier New', monospace;
      color: #D4AF37;
      font-size: 12px;
      letter-spacing: 0.3px;
    }

    .action-btn {
      width: 100%;
      padding: 17px;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s;
      background: linear-gradient(135deg, #B38728, #D4AF37, #F9E79F, #D4AF37, #B38728);
      background-size: 200% 100%;
      color: #0a0a0a;
      letter-spacing: 1.5px;
      box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
      position: relative;
      overflow: hidden;
    }

    .action-btn:hover:not(:disabled) {
      background-position: 100% 0;
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
    }

    .action-btn:active:not(:disabled) { transform: translateY(0); }

    .action-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      box-shadow: none;
    }

    .status {
      text-align: center;
      margin-top: 16px;
      font-size: 13px;
      min-height: 20px;
      color: rgba(192, 192, 192, 0.6);
      letter-spacing: 0.3px;
    }

    .status.error { color: #ff6b6b; }
    .status.success { color: #51cf66; }
    .status.info { color: #D4AF37; }

    .loading {
      display: inline-block;
      width: 14px;
      height: 14px;
      border: 2px solid rgba(212, 175, 55, 0.2);
      border-top-color: #D4AF37;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
      margin-right: 6px;
      vertical-align: middle;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 40px;
      transform: translateX(-50%) translateY(20px);
      background: linear-gradient(145deg, #1a1a1a, #222);
      color: #e8e8e8;
      padding: 14px 26px;
      border-radius: 30px;
      font-size: 13px;
      line-height: 1.5;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.15);
      opacity: 0;
      transition: all 0.3s ease;
      pointer-events: none;
      z-index: 9999;
      max-width: 88%;
      text-align: center;
    }

    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(4px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9998;
      padding: 20px;
    }

    .modal-overlay.show { display: flex; }

    .modal-box {
      background: linear-gradient(145deg, #141414, #1c1c1c);
      border: 1px solid rgba(212, 175, 55, 0.2);
      border-radius: 18px;
      padding: 28px 24px;
      width: 100%;
      max-width: 380px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }

    .modal-box h3 {
      font-size: 16px;
      margin-bottom: 14px;
      color: #D4AF37;
      text-align: center;
      letter-spacing: 0.5px;
    }

    .modal-box p {
      font-size: 13px;
      color: rgba(192, 192, 192, 0.7);
      margin-bottom: 14px;
      line-height: 1.7;
    }

    .modal-box .step {
      color: rgba(232, 232, 232, 0.9);
      margin-bottom: 8px;
      font-size: 13px;
    }

    .modal-box .link-text {
      background: rgba(0, 0, 0, 0.5);
      padding: 12px;
      border-radius: 10px;
      font-family: 'Courier New', monospace;
      font-size: 11px;
      color: #51cf66;
      margin: 14px 0;
      word-break: break-all;
      text-align: center;
      border: 1px solid rgba(81, 207, 102, 0.15);
      line-height: 1.6;
    }

    .modal-box button {
      width: 100%;
      padding: 13px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, #B38728, #D4AF37);
      color: #0a0a0a;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 8px;
      letter-spacing: 0.5px;
    }

    .modal-box button:active { opacity: 0.85; }

    .modal-box button.open-wallet {
      background: linear-gradient(135deg, #1677ff, #4096ff);
      color: #fff;
    }

    .footer-note {
      text-align: center;
      font-size: 11px;
      color: rgba(192, 192, 192, 0.35);
      margin-top: 20px;
      line-height: 1.7;
      letter-spacing: 0.3px;
    }
  