body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Màu nền tối mờ */
}

/* Modal nội dung với hiệu ứng phóng to */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 450px;
    position: relative;
    text-align: center;
    transform: scale(0); /* Bắt đầu với kích thước nhỏ */
    transition: transform 0.3s ease-in-out; /* Tạo hiệu ứng phóng to */
}

.modal.show .modal-content {
    transform: scale(1); /* Phóng to đến kích thước thực */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.time-qrcode {
	background-color: #e0e0e0; /* Màu nền */
	color: #000; /* Màu chữ */
	font-weight: bold; /* Chữ đậm */
	font-size: 14px; /* Kích thước chữ */
	padding: 5px 10px; /* Khoảng cách bên trong */
	border-radius: 15px; /* Bo góc để tạo badge */
	border: 1px solid #e0e0e0; /* Viền nhẹ */
	text-align: center; /* Căn giữa nội dung */
	min-width: 80px; /* Đảm bảo độ rộng tối thiểu */
	transition: background-color 0.2s ease-in-out;
}
/* CSS cho modal thanh toán */
#paymentModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Màn hình phủ màu xám */
    justify-content: center;
    align-items: center;
}

#paymentModal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%; /* Chiếm 90% chiều rộng màn hình */
    max-width: 700px; /* Modal rộng tối đa 800px */
    position: relative;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    text-align: left;
}

#paymentModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    cursor: pointer;
}

#paymentModal h1 {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
}
#qrModal h1 {
    font-size: 28px;
    font-weight: bold;
}

#paymentModal .secure-info {
    font-size: 14px;
    color: #4caf50;
    margin-bottom: 20px;
}

#paymentModal hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

#paymentModal .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#paymentModal .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

#paymentModal .username {
    font-size: 16px;
    font-weight: bold;
}

#paymentModal .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Căn giữa theo chiều dọc */
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid #ddd;
}

#paymentModal .order-total .total-label {
    font-size: 20px; /* Kích thước chữ lớn cho "Tổng" */
    font-weight: bold;
    text-align: left;
}

#paymentModal .order-total .total-values {
    text-align: right; /* Căn chữ sang phải */
}

#paymentModal .order-total .total-values .price {
    font-size: 20px; /* Kích thước chữ lớn cho giá */
    font-weight: bold;
    color: #000;
}

#paymentModal .order-total .total-values .xu {
    font-size: 15px; /* Kích thước chữ nhỏ cho số xu */
    margin-top: 5px;
}

#paymentModal .terms {
    font-size: 15px;
    color: rgba(22, 24, 35, 0.5);
    margin-top: 20px;
}

#paymentModal .terms a {
    color: #000;
    text-decoration: underline;
}

#paymentModal .pay-button {
    width: 100%;
    padding: 15px;
    background-color: #ccc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    margin-top: 20px;
    font-size: 16px;
}

#paymentModal .pay-button.active {
    background-color: #fe2c55;
	font-weight: bold;
    cursor: pointer;
}

#paymentModal .pay-button:disabled {
    background-color: #ccc;
	font-weight: bold;
    cursor: not-allowed;
}

/* CSS cho phương thức thanh toán */
.custom-payment-methods {
    margin-top: 20px;
}

.custom-payment-methods .payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    height: 35px; 
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.custom-payment-methods .payment-option:hover {
    border-color: #aaa;
}

.custom-payment-methods .payment-option input[type="radio"] {
    margin-right: 10px;
}

.custom-payment-methods .payment-option-text {
    flex-grow: 1;
    font-size: 15px;
	font-weight: bold;
    text-align: left; /* Căn văn bản về phía bên trái */
}

.custom-payment-methods .payment-option img {
    width: 35px;
    height: auto;
    margin-left: 10px;
    vertical-align: middle;
}


h1 {
    margin-bottom: 20px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.qr-code {
    display: inline-block;
    padding: 20px 60px;
    border: 1px solid #e2e2e2; /* Khung viền màu xám nhạt */
    border-radius: 10px; /* Bo góc khung viền */
    background-color: #ffffff; /* Màu nền cho khung viền */
}

.qr-code img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto; /* Căn giữa hình ảnh bên trong khung */
}

.suggestions {
    position: absolute;
    top: 100%;
    width: 100%;
	max-width: 300px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
	margin-top: 4px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: #f3f3f3;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
	margin-bottom: 5px;
}

.usernamesearch {
    font-size: 16px;
    font-weight: bold;
	margin: 0;
}

.fullnamesearch {
    font-size: 14px;
    color: #888;
	margin: 0;
}
.add-tiktok-account-container {
    display: flex;
    margin-bottom: 20px; /* Khoảng cách dưới */
}
.add-tiktok-account {
	text-decoration: none; /* Xóa gạch chân */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.add-tiktok-account:hover {
    background-color: #f0f0f0;
}

.add-tiktok-account img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.add-tiktok-account span {
	font-weight: bold;
    font-size: 16px;
    color: #555;
}
header {
    background-color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: center; /* Căn giữa các phần tử trong header */
    align-items: center;
    border-bottom: 1px solid #e2e2e2;
    position: relative;
}

header .logo {
    position: absolute;
    left: 20px; /* Đặt logo ở bên trái */
    display: flex;
    align-items: center;
	text-decoration: none !important;
}

header .search-bar {
    display: flex;
    align-items: center;
    background-color: #f3f3f3;
    border-radius: 20px;
    padding: 4px 10px;
    width: 100%;
    max-width: 300px;
    margin: 0; /* Xóa khoảng cách để phần tìm kiếm nằm ở giữa */
}

header .logo img {
    height: 36px;
    margin-right: 10px;
    border-radius: 50%;  /* Làm tròn viền logo */
    box-shadow: 0 2px 8px rgba(37,244,238,0.12); /* Hiệu ứng đổ bóng nhẹ */
}

header .logo-text {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}
header .logo-text .giaren {
    color: #FE2C55;           /* Màu đỏ */
    font-size: 12px;          /* Chữ nhỏ */
    font-weight: bold;
    margin-bottom: 0px;
    margin-left: 2px;         /* Đẩy sát về bên phải cho cân đối */
	vertical-align: super; /* Chính là cái bạn cần */
    letter-spacing: 0.5px;
}

header .logo-text .napxu {
    color: #222;              /* Màu đen/xám */
    font-size: 24px;          /* Chữ to */
    font-weight: bold;
    letter-spacing: normal;
	margin-left: 0; 
}
header .search-bar input {
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: #666666;
    flex: 1;
    padding: 10px;
    border-radius: 20px;
}

header .separator {
    width: 1px;
    height: 24px;
    background-color: #cccccc;
    margin: 0 10px;
}

header .search-button {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}

header .search-button img {
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
}


main {
    width: 60%;
    min-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coin-section h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
}

.user-info img {
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info .username {
    font-weight: bold;
    font-size: 17px;
    margin-right: 10px;
}

.user-info .coin-balance {
    margin-top: 4px;
    color: #999999;
    display: flex;
    align-items: center;
}

.user-info .coin-balance::before {
    content: '';
    display: inline-block;
    background-image: url('/image/coins.png'); /* Đường dẫn đến icon coin */
    background-size: contain;
    background-repeat: no-repeat;
    width: 23px; /* Điều chỉnh chiều rộng của icon */
    height: 23px; /* Điều chỉnh chiều cao của icon */
    margin-right: 5px;
}

.user-info .login-link {
    display: inline-block; /* Để button có thể nhận kích thước và padding */
    color: #ffffff; /* Màu chữ của button */
    background-color: #373233; /* Màu nền của button */
    font-size: 14px; /* Kích thước font */
    text-decoration: none; /* Xóa gạch chân của liên kết */
    padding: 10px 20px; /* Khoảng cách bên trong button */
    border-radius: 5px; /* Bo góc cho button */
    border: none; /* Không có đường viền */
    cursor: pointer; /* Con trỏ chuột thay đổi khi di chuột qua button */
    transition: background-color 0.3s ease; /* Hiệu ứng chuyển đổi màu nền */
    text-align: center; /* Căn giữa chữ trong button */
	margin-left: auto;
}

.user-info .login-link:hover {
    background-color: #000000; /* Màu nền khi di chuột qua */
}

.user-info .login-link:active {
    background-color: #251518; /* Màu nền khi nhấn */
}

.save-info {
    color: #fe2c55;
    font-weight: bold;
    margin-bottom: 20px;
}

.save-info .highlight {
    color: #000000; 
}
.qr-refresh-btn {
    display: inline-block; /* Hiển thị như một khối nội dòng */
    color: #ffffff; /* Màu chữ */
    background-color: #fe2c55; /* Màu nền */
    font-size: 18px; /* Kích thước chữ */
    font-weight: bold; /* Chữ đậm */
    text-decoration: none; /* Bỏ gạch chân */
    padding: 10px 20px; /* Khoảng cách bên trong */
    border-radius: 5px; /* Bo góc */
    border: none; /* Bỏ viền */
    cursor: pointer; /* Con trỏ chuột */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hiệu ứng chuyển màu và nhấn */
    text-align: center; /* Căn giữa nội dung */
    margin: 10px auto; /* Khoảng cách và căn giữa */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Đổ bóng */
}

.qr-refresh-btn:hover {
    background-color: #e02a4f; /* Màu khi hover */
    transform: translateY(-2px); /* Hiệu ứng nổi lên khi hover */
}

.qr-refresh-btn:active {
    background-color: #d0213d; /* Màu khi click */
    transform: translateY(0); /* Hiệu ứng nhấn xuống */
}
.qr-refresh-btn i {
    margin-right: 2px;
}
.coin-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.coin-option {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coin-option .coin-amount {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.coin-option .coin-amount img {
    height: 30px;
    margin-right: 5px;
}

.coin-option .coin-price {
    color: #666666;
}

.coin-option.selected {
    border-color: #fe2c55;
    background-color: #ffffff;
}

.coin-option.custom input {
    border: none;
    background: none;
    font-size: 18px;
    text-align: center;
    color: #000000;
    outline: none;
    border-bottom: 1px solid black;
    width: 70%;
    display: none;
}

.coin-option.custom #custom-label {
    display: inline-block;
}

.coin-option.custom.selected #custom-label {
    display: none;
}

.coin-option.custom.selected #custom-coin {
    display: inline-block;
}

#custom-price {
    font-size: 16px;
    color: #666666;
    margin-top: 5px;
}

#customOption.selected #custom-price {
    color: #666666;
}

.payment-info {
    text-align: left; 
    margin-top: 20px;
}
.payment-methods {
    display: flex;
    align-items: center;
}

.payment-methods p {
    margin-right: 10px;
    font-size: 16px;
}

.payment-info .payment-methods img {
    height: 20px;
    margin: 0 5px;
}

.payment-info .total-price {
    font-size: 18px;
    margin-top: 5px;
}

.payment-info p {
    margin-top: 10px; /* Loại bỏ khoảng cách trên */
    margin-bottom: 10px; /* Loại bỏ khoảng cách dưới */
}

.payment-info .pay-button {
    padding: 14px 60px; /* Làm cho nút lớn hơn */
    background-color: #ccc; /* Màu xám khi nút bị disabled */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 18px; /* Tăng kích thước chữ */
    font-weight: bold; /* Làm chữ in đậm */
    cursor: not-allowed; /* Con trỏ không cho phép nhấn */
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease; /* Hiệu ứng mượt khi đổi màu */
}

/* Khi nút được kích hoạt (bỏ disabled), đổi thành màu đỏ */
.payment-info .pay-button.active {
    background-color: #fe2c55; /* Màu đỏ khi nút có thể nhấn */
    cursor: pointer; /* Con trỏ chuyển thành có thể nhấn */
}

.payment-info .total-price p span {
    font-weight: bold;
}

.user-info p {
    margin-top: 3px;
    margin-bottom: 0px;
}

/* Dropdown bên cạnh username */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-dropdown .username {
    font-weight: bold;
    font-size: 18px;
    margin-right: 0px;
    display: inline-block;
}

.user-dropdown .arrow {
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease; /* Hiệu ứng xoay mũi tên */
}
/* Dropdown tiêu đề */
.dropdown-title {
    font-size: 20px;
    font-weight: bold;
    padding: 2px 0;
    text-align: center; /* Căn giữa tiêu đề */
    color: #333;
}

/* Đường phân cách */
.dropdown-divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 4px 0;
}
/* Nội dung của dropdown */
.user-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1;
    width: auto; /* Tự điều chỉnh chiều rộng theo nội dung */
    max-width: 400px; /* Giới hạn chiều rộng tối đa trên màn hình lớn */
    min-width: 250px; /* Chiều rộng tối thiểu để tránh quá nhỏ */
    border-radius: 5px;
    text-align: left;
    top: 110%; /* Hiển thị dropdown bên dưới */
    left: 90%; /* Đặt vị trí ở giữa */
    transform: translateX(-50%); /* Căn giữa theo trục ngang */
    white-space: nowrap; /* Không cho nội dung bị xuống dòng */
    overflow: hidden; /* Ẩn nội dung nếu bị tràn */
    text-overflow: ellipsis; /* Thêm dấu ba chấm khi nội dung quá dài */
}

/* Hiển thị dropdown khi nhấn vào */
.user-dropdown.active .dropdown-content {
    display: block;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Mỗi tài khoản trong dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Xoay mũi tên khi dropdown mở */
.user-dropdown.active .arrow {
    transform: rotate(180deg);
}

/* Thông tin tài khoản */
.dropdown-info {
    display: flex;
    flex-direction: column;
}

/* Tên tài khoản (in đậm) */
.dropdown-info .account-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
	color: rgba(56,56,56,.95);
}

/* Username (chữ nhỏ và nhạt hơn) */
.dropdown-info .account-username {
    font-size: 15px;
    color: #888;
    margin: 0;
}
/* Modal cơ bản */
#successModal, #errorModal, #refundModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Màn hình mờ */
    justify-content: center;
    align-items: center;
	opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease; /* Hiệu ứng mờ dần */
}

/* Khi modal hiển thị */
#successModal.show, #errorModal.show , #refundModal.show {
    opacity: 1;
    visibility: visible; /* Hiển thị modal */
}


/* Nội dung của modal */
.success-content, .error-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px; /* Kích thước tối đa 700px */
    min-height: 400px; /* Chiều cao tối thiểu của modal */
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: space-between; /* Đặt nút ở dưới cùng */
    position: relative;
	transform: scale(0.8); /* Thu nhỏ ban đầu */
    transition: transform 0.2s ease; /* Hiệu ứng phóng to nội dung */
}


#successModal.show .success-content, #errorModal.show .error-content , #refundModal.show .error-content {
    transform: scale(1); /* Phóng to đến kích thước thực */
}

/* Nút đóng modal */
.success-content .close, .error-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    cursor: pointer;
}

/* Biểu tượng success và error */
.success-content .success-icon svg, .error-content .error-icon svg {
    width: 80px; /* Kích thước biểu tượng */
    height: 80px; /* Kích thước biểu tượng */
    margin-top: 80px;
    margin-bottom: 1px;
}

/* Tiêu đề modal */
.success-content h2, .error-content h2 {
    font-size: 20px; /* Kích thước chữ */
    font-weight: bold; /* In đậm */
    margin-bottom: 10px;
    color: #333;
}

/* Tin nhắn */
.success-content p, .error-content p {
    font-size: 16px; /* Kích thước chữ */
    color: #666;
	margin-top: -45px;
    padding: 50px;
}

/* Dấu gạch ngang ngay trên nút */
.success-content .divider, .error-content .divider {
    border-top: 1px solid #ddd;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Nút "Quay lại" và "Liên hệ hỗ trợ" */
.success-content .button-container, .error-content .button-container {
    text-align: right; /* Đặt nút ở góc phải */
}

.success-content .success-return-button, .error-content .error-return-button {
    padding: 10px 20px;
    background-color: #fe2c55; /* Nút success */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-content .error-return-button {
    background-color: #ccc; /* Nút error màu xám */
}

.success-content .success-return-button:hover {
    background-color: #d82e45; /* Hover nút success */
}

.error-content .error-return-button:hover {
    background-color: #aaa; /* Hover nút error */
}

/* Modal User Login */
.user-login {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.login-btn {
    background-color: #fe2c55;
	font-weight: bold;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
	text-decoration: none; 
    display: inline-block; 
    text-align: center; 
}

.login-btn:hover {
    background-color: #e02a4f;
}

.login-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-balance {
    font-size: 15px;
    color: #555;
}
.total_balance {
    font-weight: bold;
	color: #333030;	
    font-size: 18px;
	text-decoration: none;
}

.login-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #007bff;
}

/* Dropdown menu */
.login-dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 240px;
    z-index: 1000;
    overflow: hidden;
}
.login-dropdown-title {
    font-size: 16px;
    font-weight: bold;
    color: #333; 
    padding: 15px 20px; 
    border-bottom: 1px solid #e0e0e0; 
    background-color: #f9f9f9; 
    text-align: left; 
}
/* Hiển thị menu khi có class active */
.login-avatar-dropdown.active .login-dropdown-menu {
    display: block;
}
.login-divider {
    border: 0;
    border-top: 1px solid #e2e2e2;
    margin: 8px 0; /* Khoảng cách trên dưới */
}
/* Các mục trong menu */
.login-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
	font-weight: bold;
    transition: background-color 0.2s;
	margin-top: 5px;
}

.login-dropdown-item i {
    margin-right: 10px; /* Khoảng cách giữa icon và text */
    font-size: 15px;
}

/* Hover hiệu ứng */
.login-dropdown-item:hover {
    background-color: #f5f5f5;
}


/* Responsive Design */
@media (max-width: 1200px) {
    main {
        width: 80%; /* Chiều rộng 80% trên màn hình vừa */
        min-width: 600px; /* Đảm bảo không nhỏ hơn 600px */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center; /* Căn giữa tất cả các phần tử */
        padding: 10px; /* Giảm padding cho nhỏ hơn */
    }

    header .logo {
        position: static; /* Đặt logo về vị trí mặc định */
        margin-bottom: 10px; /* Khoảng cách giữa logo và thanh tìm kiếm */
        width: 100%; /* Đảm bảo logo chiếm toàn bộ chiều rộng */
        text-align: left; /* Căn logo về bên trái */
        padding-left: 20px; /* Khoảng cách từ bên trái */
    }

    header .search-bar {
        display: none;
    }
	
    .suggestions {
        max-width: 85%;
    }
	
	main {
		width: 95%; /* Chiều rộng 100% trên màn hình nhỏ */
        min-width: 0; /* Loại bỏ min-width khi ở màn hình nhỏ */
        margin: 20px auto;
        padding: 15px;
		box-sizing: border-box;
    }
	.save-info {
        font-size: 14px;
    }
	.save-info .highlight {
        display: none;
    }
    .coin-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
	#paymentModal .modal-content {
        width: 90%; /* Chiếm 90% chiều rộng màn hình trên mobile */
        max-width: none; /* Loại bỏ max-width để modal co giãn toàn bộ */
        padding: 15px;
    }

    #paymentModal h1 {
        font-size: 18px; /* Điều chỉnh font-size nhỏ hơn cho mobile */
    }

    #paymentModal .pay-button {
        font-size: 14px; /* Điều chỉnh kích thước chữ của nút */
		font-weight: bold;
        padding: 12px;
    }
	.success-content, .error-content {
		margin: 40% auto;
        padding: 32px 17px; /* Giảm padding */
        max-width: 85%; /* Giảm chiều rộng tối đa */
        min-height: 300px; /* Giảm chiều cao tối thiểu */
    }

    .success-content .close, .error-content .close {
        font-size: 30px; /* Giảm kích thước nút đóng */
    }

    .success-content .success-icon svg, .error-content .error-icon svg {
        width: 60px; /* Giảm kích thước biểu tượng cho mobile */
        height: 60px; /* Giảm kích thước biểu tượng cho mobile */
    }

    .success-content h2, .error-content h2 {
        font-size: 18px; /* Giảm kích thước chữ tiêu đề */
    }

    .success-content p, .error-content p {
        font-size: 14px; /* Giảm kích thước chữ văn bản */
    }

    .success-content .success-return-button, .error-content .error-return-button {
        padding: 8px 15px; /* Giảm padding nút */
        font-size: 14px; /* Giảm kích thước chữ nút */
    }
	.user-dropdown .dropdown-content {
        width: 95%; /* Đảm bảo dropdown chiếm 95% chiều rộng màn hình */
        left: -50%; /* Đảm bảo căn đều hai bên, cách mép màn hình 2.5% */
		width: auto; /* Tự điều chỉnh chiều rộng theo nội dung */
		max-width: 300px;
		min-width: 260px;
        transform: none; /* Không cần căn giữa bằng transform */
        white-space: normal; /* Cho phép xuống dòng trên điện thoại */
        overflow: visible; /* Cho phép hiển thị đầy đủ nội dung */
        padding: 15px;
    }
}