body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #141414;
  color: #f5f5f1;
  background-image: url('Frame_19.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #0f0d0d00;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header h2 {
  margin: 0;
  color: #e50914;
  font-size: 1.5rem;
}
nav {
  position: relative;
}
.menu-toggle {
  display: block !important;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}
nav .links {
  position: absolute;
  top: 100%;
  right: 0;
  background: #141414;
  flex-direction: column;
  width: 200px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  display: flex; /* Bắt buộc để flex-direction hoạt động */
  padding: 0.5rem 0; /* Tạo khoảng cách trên/dưới menu */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Tùy chọn: tạo chiều sâu */
  border-radius: 6px;
  z-index: 999;
}

nav .links.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

nav .links a {
  color: #f5f5f1;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #333;
  display: block; /* Chiếm toàn chiều ngang */
  transition: background 0.3s;
}

nav .links a:last-child {
  border-bottom: none; /* Không có đường gạch cho mục cuối */
}

nav .links a:hover {
  background-color: rgba(229, 9, 20, 0.2);
}

nav a.active,
nav a:hover {
  background-color: rgba(229,9,20,0.2);
}
main {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.container h1 {
  color: #e50914;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-bottom:1px solid #444;
  background-color: #1f1f1f00;
  color: #f5f5f1;
  font-size: 1rem;
}
input::placeholder {
  color: #757575;
}
button {
  background-color: #ce030d3e;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background 0.3s;
}
button:hover {
  background-color: #f6121d;
}
.result, .error {
  padding: 1rem;
  border-radius: 0.3rem;
  margin-top: 1rem;
}
.result {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid #444;
  border-left: 4px solid #e50914;
  color: #f5f5f1;
}
.error {
  background-color: rgba(184,29,36,0.1);
  border: 1px solid #b81d24;
  border-left: 4px solid #b81d24;
  color: #fff;
}
#account-info p {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copy-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #e50914;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
}

main {
  flex: 1;
}

/* Footer đẹp hơn và cố định dưới */
footer {
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

footer h3 {
  margin-bottom: 1rem;
}

footer div {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

footer div img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 5px;
  object-fit: cover;
}

footer div p, footer div a {
  margin: 0;
  font-weight: 500;
  color: #fafafa;
  text-decoration: none;
  display: flex;
  align-items: center;
}

footer div a:hover {
  color: #1c0dc5;
}

/* Nút ❓ ở góc phải dưới */
#help-button {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  background-color: #080202f9;
  color: #fff;
  border-radius: 40px;
  padding: 7px 10px;
  width: fit-content;
  z-index: 1001;
}

#help-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 4, 4, 0.666);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Nội dung popup */
#help-modal .modal-content {
  background: #000000a2;
  padding: 2rem;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  color: #f5f5f1;
  position: relative;
}

/* Nút đóng "×" */
.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
.landing-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
  animation: fadeIn 1s ease;
}

.landing-menu h1 {
  color: #e50914;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.menu-buttons button {
  display: block;
  margin: 1rem auto;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  border-radius: 8px;
  background-color: #ce030d3e;
  color: #fff;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.menu-buttons button:hover {
  background-color: #e50914;
}

/* Fade in effect */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
