body {
  background-color: #f2f3f5;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 20px;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

h2 {
  text-align: center;
  color: #333;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  margin-top: 10px;
  box-sizing: border-box;
}



.token-card {
  margin-top: 20px;
  border-radius: 14px;
  background-color: #f9f9fb;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.token span {
  font-size: 16px;
  color: #333;
}

.token-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.token-name {
  display: flex;
  align-items: center;
}
@media screen and (max-width: 480px) {
  body {
    padding: 1px;
  }
  .container {
    max-width: 100%;
    padding: 15px 10px;
    border-radius: 0;
    box-shadow: none;
  }
}
ul {
  list-style: none; 
  padding-left: 0;
}

.tx-item {
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 10px;
}

.tx-in {
  background-color: #34c759;
}

.tx-out {
  background-color: #ff3b30;
}


.button-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

#query-chatrx-btn {
  background-color: #7f4845; 
      padding: 5px;
    font-size: 16px;
    border-radius: 12px;
    color: #ffffff
}

#query-chausdt-btn {
background-color: #498959;
    padding: 5px;
    font-size: 16px;
    border-radius: 12px;
    color: #ffffff;
}


#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      background-color: #fff;
      padding: 0px;
      border-radius: 8px;
      max-width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }
    .close-btn {
      position: absolute;
      top: 30px;
      right: 5px;
      background: #ff4d4d;
      color: white;
      border: none;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      cursor: pointer;
      font-size: 16px;
      line-height: 24px;
      text-align: center;
	  padding: 0;
    }
    .wallet-btn {
      display: inline-block;
      background-color: #efe6b9;
      color: #0c7473;
      padding: 6px 12px;
      border-radius: 999px;
      cursor: pointer;
      text-align: center;
    }
    .modal-content pre {
      white-space: pre-wrap;
      font-size: 14px;
      line-height: 1.5;
	  padding: 10px;
    }
	
	.user-btn {
display: inline-block;
    background-color: #a474af;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
        }
        .user-btn:hover {
            background-color: #0056b3;
        }
        .user-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .user-modal-content {
            background-color: white;
            padding: 20px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            position: relative;
        }
        .user-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }
        .user-close-btn:hover {
            color: #000;
        }
        .user-form-group {
			margin-top: 10px;
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }
        input[type="text"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            box-sizing: border-box;
        }
        .user-btn-base {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
            box-sizing: border-box;
        }
        .user-submit-btn {
            width: 100%;
            background-color: #28a745;
            color: white;
        }
        .user-submit-btn:hover {
            background-color: #218838;
        }
        .user-add-btn {
		   width: 100%;
            background-color: #28a745;
            color: white;
        }
        .user-add-btn:hover {
            background-color: #218838;
        }
        .user-delete-btn {
            background-color: #9e0110;
            color: white;
        }
        .user-delete-btn:hover {
            background-color: #c82333;
        }
        .user-logout-btn {
            background-color: #6c757d;
            color: white;
        }
        .user-logout-btn:hover {
            background-color: #5a6268;
        }
        .user-other-btn {
            background-color: #79ac01;
            color: white;
        }
        .user-other-btn:hover {
            background-color: #809c3d;
        }
        .user-address-list {
            margin-top: 20px;
            max-height: 300px;
            overflow-y: auto;
        }
        .user-address-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        .user-address-item img {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
        }
        .user-address-item .user-address-text {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .user-error {
            color: #dc3545;
            font-weight: 500;
        }
        .user-success {
            color: #28a745;
            font-weight: 500;
        }
        .user-header {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        @media (max-width: 480px) {
            .user-modal-content { padding: 15px; }
            .user-btn-base { font-size: 14px; padding: 8px 12px; }
            .user-btn { font-size: 14px; padding: 10px 20px; }
            input[type="text"] { font-size: 14px; }
            .user-address-item .user-address-text { width: 150px; }
            .user-address-item .user-btn-base { padding: 8px 12px; font-size: 14px; }
        }
	        .checkBalance {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  font-size: 16px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
        }
		
		
#query-chabtc-btn {
    width: 100%;
    background-color: #b5b608;
    padding: 5px;
    font-size: 16px;
    border-radius: 12px;
    color: #ffffff;
	text-decoration: none; 
    text-align: center;  
    font-weight: bold;   
}


		
#query-chaeth-btn {
    width: 100%;
    background-color: #4e9693;
    padding: 5px;
    font-size: 16px;
    border-radius: 12px;
    color: #ffffff;
	text-decoration: none; 
    text-align: center;  
    font-weight: bold;   
}


.camera-icon { 
font-size: 35px; 
            fill: #626262;
			 margin-top: -10px;
        }
   #video { 
            position: fixed; 
            top: 10%; 
            left: 50%;
            transform: translateX(-50%); 
            width: 300px; 
            height: 300px; 
            border: 1px solid black; 
            display: none; 
            object-fit: cover; 
            z-index: 1000; 
            cursor: pointer;
            border-radius: 50%;
        }
        #canvas { 
            display: none;
        }
  .camera-sao { 
       font-size: 35px;
    margin-left: 50px;
    margin-top: -12px;
    display: inline-block;
        }
		
		.yuming {
    font-weight: bold;
    font-size: 20px;
    animation: yuming 3s infinite;
    transform: translateY(-6px);
    text-align: center;
}

@keyframes yuming {
    0% { color: #ff0000; }
    20% { color: #00ff00; }
    40% { color: #0000ff; }
    60% { color: #ff00ff; }
    80% { color: #00ffff; }
    100% { color: #ff0000; }
}