.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.balance {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.settings-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-half {
  width: 100%;
  padding: 12px 20px;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}

.btn-half::before,
.btn-half::after {
  content: "";
  position: absolute;
  width: 95%;
  height: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.btn-half.pink::before,
.btn-half.pink::after {
  background: #ee44d4;
}

.btn-half.purple::before,
.btn-half.purple::after {
  background: #9b4bc5;
}

.btn-half::before {
  top: -6px;
}

.btn-half::after {
  bottom: -6px;
}

.btn-half:hover {
  opacity: 0.9;
}

.btn-primary-color {
  background: linear-gradient(to bottom, #572e40 50%, #45172b 50%);
  border: 4px solid #45172b !important;
}

.btn-secondary-color {
  background: linear-gradient(to bottom, #3f284a 50%, #2a1136 50%);
  border: 4px solid #2a1136;
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid hsl(var(--primary-foreground));
}

.avatar:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.menu-circle {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  box-shadow: 0px 0px 10px 0px #dc048d;
  background: linear-gradient(180deg, #fda3ff 0%, #ed008e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-items-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
}

.menu-items-container:hover .menu-circle {
  background: linear-gradient(180deg, #ffed51 0%, #9c8e17 100%);
  box-shadow: 0px 0px 10px 0px #ffed51;
}

.menu-items-container:hover {
  border-bottom: 2px solid #ffed51;
}

/* Popover Styles */
.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: black;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid hsl(var(--primary));
}

.popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: black;
  border: 1px solid hsl(var(--primary));
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.avatar-container:hover .popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popover-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.popover-item:hover {
  background-color: #2e2e2e !important;
}

.popover-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.popover-divider {
  height: 0.5px;
  background: hsl(var(--primary-foreground));
  margin: 4px 0;
}

.logout-item {
  color: #dc3545 !important;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.logout-item:hover {
  background-color: #2e2e2e !important;
}

/* Notification badge */
.notification-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.auth-container {
  background: linear-gradient(180deg, #0e0307 0%, #2c0716 100%);
}

.gradient-box {
  position: relative;
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gradient-menu {
  border: 1px solid transparent;
  border-image: linear-gradient(to right, #583e59, #583e59, #0f0307) 1 0;
}

.gradient-menu-1 {
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #0f0307, #583e59, #583e59) 1 0;
}

.gradient-primary {
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #0f0307, #583e59, #0f0307) 1;
}

.gradient-pink {
  border: 2px solid transparent;
  background-image: linear-gradient(to right, #d31e97, #fd5ef9, #d31e97);
}

.gradient-purple {
  border: 2px solid transparent;
  background-image: linear-gradient(to right, #5E3097, #D665F2, #5E3097);
}


.gradient-box.gradient-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #13060d 0%, #45172b 50%, #13060d 100%);
}

.gradient-secondary {
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #200712, #583e59, #200712) 1;
}

.gradient-box.gradient-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #200712 0%, #45172b 50%, #200712 100%);
}

.gradient-box span {
  position: relative;
  z-index: 10;
  color: white;
  font-size: 1.25rem; /* text-xl */
  font-weight: 500; /* font-medium */
  letter-spacing: 0.05em; /* tracking-wide */
}

.gradient-box span.selected {
  text-shadow: 0 5px 10px #fc3cac;
}

.shadow-inset-1 {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.signin-bg-image {
  width: 100%;
  max-height: 203px;
  object-fit: cover;
}

.signin-form {
  padding: 16px 10px;
  width: 100%;
  flex: 1;
}

.signin-title {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  color: #ffffff;
  background-color: #29131b;
  border: 1px solid #3f2931;
  border-radius: 8px;
  font-size: 16px;
}

.form-input-no-form {
  max-width: 160px;
  padding: 8px 16px;
  color: #ffffff;
  background-color: black;
  border-radius: 999px;
  font-size: 16px;
}

.form-input-no-form .error-field {
  border: 1px solid red;
}

.form-input:focus {
  outline: none; /* focus:outline-none */
}

.form-input::placeholder {
  color: #94888d; /* placeholder-[#94888d] */
}
.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
}

.password-toggle:hover {
  color: #374151;
}

.submit-button {
  width: 100%;
  padding: 10px 16px;
  background: hsl(var(--primary));
  color: black;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.submit-button:hover {
  background: hsl(var(--primary), 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

.submit-button.loading .loading-spinner {
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  margin-top: 8px;
  color: #ef4444;
  font-size: 14px;
}

.field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

.form-input.error {
  border-color: #ef4444;
}

.signup-link {
  margin-top: 16px;
}

.signup-text {
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.signup-button {
  font-size: 12px;
  color: hsl(var(--primary));
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-left: 4px;
}

.signup-button:hover {
  text-decoration: underline;
}

/* Success Animation */
.success-message {
  background: #10b981;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin-top: 16px;
  text-align: center;
  display: none;
  animation: slideIn 0.3s ease;
}

.success-message.show {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-gradient {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* space-x-3 */
  color: white; 
  padding: 0.5rem 1.8rem; /* py-2 px-8 */
  border-radius: 9999px; /* rounded-full */
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: all 0.2s ease-in-out;
}

/* Tablet */
@media (max-width: 1360px) {
  .btn-gradient {
    padding: 0.5rem 0.5rem; /* py-2 px-6 */
  }
}

.btn-gradient:hover {
  transform: scale(1.05);
}

/* Color variations */
.bg-gradient-dark {
  background: linear-gradient(to bottom, #434142, #251e23);
}

.bg-gradient-dark:hover {
  background: linear-gradient(180deg, #fda3ff 0%, #ed008e 100%);
}

.bg-gradient-purple {
  background: linear-gradient(180deg, #c38eff 0%, #7135b7 100%);
}

.bg-gradient-pink {
  background: linear-gradient(180deg, #fda3ff 0%, #ed008e 100%);
}

.bg-gradient-yellow {
  background: linear-gradient(180deg, #ffe244 0%, #a25406 100%);
}

.bg-gradient-menu {
  background: linear-gradient(to right, #45172B 0%, #0E0307 100%);
}

.bg-gradient-menu-1 {
  background: linear-gradient(to right, #0E0307 0%, #45172B 100%);
}

.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flex-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.no-scrollbar {
  -ms-overflow-style: none; /* IE và Edge */
  scrollbar-width: none;    /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none;            /* Chrome, Safari, Opera */
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: #25b09b;
  animation: l15 1s infinite linear;
}
.loader::before,
.loader::after {    
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}
.loader::after {
  margin: 8px;
  animation-duration: 3s;
}
@keyframes l15{ 
  100%{transform: rotate(1turn)}
}

.z-max {
  z-index: 99999 !important;
}

.autocomplete-container {
  position: relative;
}


.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #29131b;
    /* border: 1px solid #eee; */
    border-top: none;
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    color: white;
    font-weight: bold;
}

.autocomplete-suggestions li {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-suggestions li:hover,
.autocomplete-suggestions li.active { /* For keyboard navigation */
  background-color: #502635;
}

