#node-579 {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
    border-color: #0d0d0d0d;
    font-size: max(1.5rem, min(.56338vw + 1.36796rem, 1.875rem));
    font-weight: 500;
    line-height: clamp(1.98rem, calc(1.98rem + .495*((100vw - 23.4375rem)/66.5625)), 2.475rem);
    padding-block: calc(.25rem*20);
    text-align: center;
    letter-spacing: -.01em;
}

#node-579::selection {
    background-color: lab(62.1954% -3.77733 -58.6453/.35);
    text-shadow: none;
}

#node-578 {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
    border-color: #0d0d0d0d;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: 100%;
    max-width: 72rem;
    flex-direction: column;
    gap: calc(.25rem*6);
    padding-inline: calc(.25rem*6);
    padding-block: calc(.25rem*5);
}

#node-578::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
    border-color: #0d0d0d0d;
}

#node-578::selection {
    background-color: lab(62.1954% -3.77733 -58.6453/.35);
    text-shadow: none;
}

#node-579 {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
    border-color: #0d0d0d0d;
    font-size: max(1.5rem, min(.56338vw + 1.36796rem, 1.875rem));
    font-weight: 500;
    line-height: clamp(1.98rem, calc(1.98rem + .495*((100vw - 23.4375rem)/66.5625)), 2.475rem);
    padding-block: calc(.25rem*20);
    text-align: center;
    letter-spacing: -.01em;
}

#node-579::selection {
    background-color: lab(62.1954% -3.77733 -58.6453/.35);
    text-shadow: none;
}

.custom-select {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 8px 40px 8px 16px; /* Gộp padding-inline và padding-block */
  border: 1px solid #0d0d0d1a;
  border-radius: 9999px;
  color: #0d0d0d;
  font-size: 0.875rem;
  line-height: 1.435rem;
  background-color: transparent;
  
  /* Xử lý mũi tên dropdown custom */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239B9B9B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  
  outline: none;
  transition: border-color 0.15s ease;
}

.custom-select:focus {
  border-color: #004f99;
}

/* Style chung cho tất cả các option bên trong */
.custom-select option {
  background-color: #ffffff;
  color: #0d0d0d;
  padding: 8px;
}

/* Màu khi bôi đen văn bản */
.custom-select::selection,
.custom-select option::selection {
  background-color: rgba(0, 79, 153, 0.2);
  text-shadow: none;
}
    #node-582 {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: 0;
      border-color: #0d0d0d0d;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: calc(.25rem*3);
    }

    #node-582::backdrop {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: 0;
      border-color: #0d0d0d0d;
    }

    #node-582::selection {
      background-color: lab(62.1954% -3.77733 -58.6453/.35);
      text-shadow: none;
    }
     /* CSS cho thẻ Select chính */
  .custom-select {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    padding: 8px 40px 8px 16px;
    font-size: 0.875rem;
    line-height: 1.435rem;
    color: #0d0d0d;
    background-color: transparent;
    border: 1px solid #0d0d0d1a;
    border-radius: 9999px; /* Thay cho số lớn vô tận */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239B9B9B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    outline: none;
    transition: border-color 0.2s;
  }

  .custom-select:focus {
    border-color: #004f99;
  }

  /* CSS chung cho tất cả Option */
  .custom-select option {
    background-color: #fff;
    color: #0d0d0d;
    padding: 4px;
  }

  /* Hiệu ứng chọn văn bản (Selection) */
  .custom-select::selection, 
  .custom-select option::selection {
    background-color: rgba(0, 79, 153, 0.35); /* Đã đơn giản hóa từ lab() */
  }
    #node-729 {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: calc(.25rem*2);
      border-color: #0d0d0d1a;
      font: inherit;
      font-feature-settings: inherit;
      font-variation-settings: inherit;
      letter-spacing: inherit;
      color: inherit;
      opacity: 1;
      background-color: #0000;
      border-radius: 3.40282e38px;
      -webkit-appearance: button;
      appearance: button;
      transition-property: color, background-color, border-color, outline-color, -webkit-text-decoration-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
      transition-timing-function: cubic-bezier(.4, 0, .2, 1);
      transition-duration: .5s;
    }

    #node-729:hover {
      background-color: #f3f3f3;
    }

    #node-729:disabled {
      cursor: not-allowed;
      opacity: .6;
    }

    #node-729::selection {
      background-color: lab(62.1954% -3.77733 -58.6453/.35);
      text-shadow: none;
    }
      #node-730 {
        width: 20;
        height: 20;
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
        padding: 0;
        border-color: #0d0d0d0d;
        vertical-align: middle;
        display: block;
      }

      #node-730::selection {
        background-color: lab(62.1954% -3.77733 -58.6453/.35);
        text-shadow: none;
      }
      #node-731 {
        fill: currentcolor;
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
        padding: 0;
        border-color: #0d0d0d0d;
      }

      #node-731::selection {
        background-color: lab(62.1954% -3.77733 -58.6453/.35);
        text-shadow: none;
      }

  #node-584 {
    width: 100%;
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: .5rem .75rem;
    border-color: #0d0d0d1a;
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: -.01em;
    color: inherit;
    opacity: 1;
    background-color: #0d0d0d00;
    border-radius: 1.5rem;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
    border-width: 1px;
    font-size: 1.0625rem;
    line-height: 1.5;
    margin-top: calc(.25rem*1);
    min-height: 180px;
    padding-block: calc(.25rem*3);
    padding-bottom: calc(.25rem * 16);
    font-weight: 400;
  }

  #node-584:focus {
    border-color: #004f99;
    outline: 2px solid #0000;
    outline-offset: 2px;
    outline-style: none;
  }
  #node-584::selection {
    background-color: lab(62.1954% -3.77733 -58.6453/.35);
    text-shadow: none;
  }

     #node-587 {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: 0;
      border-color: #0d0d0d0d;
      position: relative;
    }

    #node-587::backdrop {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: 0;
      border-color: #0d0d0d0d;
    }

    #node-587::selection {
      background-color: lab(62.1954% -3.77733 -58.6453/.35);
      text-shadow: none;
    }

       #node-588 {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: .5rem .75rem;
      border-color: #9b9b9b;
      font: inherit;
      font-feature-settings: inherit;
      font-variation-settings: inherit;
      letter-spacing: -.01em;
      color: inherit;
      opacity: 1;
      background-color: #f3f3f3;
      border-radius: 1.5rem;
      resize: none;
      -webkit-appearance: none;
      appearance: none;
      border-width: 1px;
      font-size: 1.0625rem;
      line-height: 1.74994rem;
      margin-top: calc(.25rem*1);
      min-height: 180px;
      width: 100%;
      border-style: none;
      padding-block: calc(.25rem*3);
      padding-bottom: calc(.25rem*16);
      font-weight: 400;
    }

    #node-588:focus {
      border-color: #004f99;
      outline: 2px solid #0000;
      outline-offset: 2px;
      outline-style: none;
    }
    #node-588::selection {
      background-color: lab(62.1954% -3.77733 -58.6453/.35);
      text-shadow: none;
    }
     #node_590_paste {
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
        padding: 0;
        border-color: #0d0d0d0d;
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
    color: #000000;
        opacity: .6;
        background-color: #f3f3f3;
        border-radius: 3.40282e38px;
        -webkit-appearance: button;
        appearance: button;
        position: absolute;
        bottom: calc(.25rem*4);
        display: flex;
        height: 40px;
        width: 60px;
        align-items: center;
        justify-content: center;
        transition-property: color, background-color, border-color, outline-color, -webkit-text-decoration-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
        transition-timing-function: cubic-bezier(.4, 0, .2, 1);
        transition-duration: .5s;
        left: calc(.25rem*4);
      }
     #node-590 {
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
        padding: 0;
        border-color: #0d0d0d0d;
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
        color: inherit;
        opacity: .6;
        background-color: #f3f3f3;
        border-radius: 3.40282e38px;
        -webkit-appearance: button;
        appearance: button;
        position: absolute;
        bottom: calc(.25rem*4);
        display: flex;
        height: calc(.25rem*10);
        width: calc(.25rem*10);
        cursor: not-allowed;
        align-items: center;
        justify-content: center;
        transition-property: color, background-color, border-color, outline-color, -webkit-text-decoration-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
        transition-timing-function: cubic-bezier(.4, 0, .2, 1);
        transition-duration: .5s;
        left: calc(.25rem*4);
      }

      #node-590::selection {
        background-color: lab(62.1954% -3.77733 -58.6453/.35);
        text-shadow: none;
      }
        #node-590_bnt {
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
        padding: 0;
        border-color: #0d0d0d0d;
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
        color: inherit;
        opacity: .6;
        background-color: #f3f3f3;
        border-radius: 3.40282e38px;
        -webkit-appearance: button;
        appearance: button;
        position: absolute;
        bottom: calc(.25rem*4);
        display: flex;
        height: calc(.25rem*10);
        width: calc(.25rem*10);
        cursor: not-allowed;
        align-items: center;
        justify-content: center;
        transition-property: color, background-color, border-color, outline-color, -webkit-text-decoration-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
        transition-timing-function: cubic-bezier(.4, 0, .2, 1);
        transition-duration: .5s;
        left: calc(.25rem*4);
      }

      #node-590_bnt::selection {
        background-color: lab(62.1954% -3.77733 -58.6453/.35);
        text-shadow: none;
      }
        #node-591 {
          width: 20;
          height: 20;
          box-sizing: border-box;
          border: 0 solid;
          margin: 0;
          padding: 0;
          border-color: #0d0d0d0d;
          vertical-align: middle;
          display: block;
        }

        #node-591::selection {
          background-color: lab(62.1954% -3.77733 -58.6453/.35);
          text-shadow: none;
        }
          #node-591 {
          width: 20;
          height: 20;
          box-sizing: border-box;
          border: 0 solid;
          margin: 0;
          padding: 0;
          border-color: #0d0d0d0d;
          vertical-align: middle;
          display: block;
        }

        #node-591::selection {
          background-color: lab(62.1954% -3.77733 -58.6453/.35);
          text-shadow: none;
        }
        #node-592 {
          fill: currentcolor;
          box-sizing: border-box;
          border: 0 solid;
          margin: 0;
          padding: 0;
          border-color: #0d0d0d0d;
        }

        #node-592::selection {
          background-color: lab(62.1954% -3.77733 -58.6453/.35);
          text-shadow: none;
        }
        #loading-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    padding: 20px;
    background: #9b9b9b00;
    align-items: self-start;
    justify-content: flex-start;
    pointer-events: none;
    border-radius: 24px;
    opacity: 0.5;
}

/* Hiệu ứng 3 dấu chấm */
.dot-loader span {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #000000; /* Màu xanh hiện đại */
  border-radius: 50%;
  display: inline-block;
  animation: dots 1.4s infinite ease-in-out both;
}

.dot-loader span:nth-child(1) { animation-delay: -0.32s; }
.dot-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}
@media (max-width: 800px) {
    #node-579 {
    padding-block: 0px;
}
}

textarea {
    overflow: hidden;
    display: block;
    line-height: 1.5; /* Giúp tính toán chiều cao chuẩn hơn */
}

:root {
  --primary-color: #1a73e8; /* Màu xanh Google */
  --bg-tertiary: #f8f9fa;
  --border-color: #dadce0;
  --text-main: #3c4043;
}
.custom-dropdown {
    position: relative;
    width: 320px;
    font-family: sans-serif;
}

#search-input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid #dadce0;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

/* Khi đang nhập thì làm đậm viền */
#search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 1px 6px rgba(32,33,36,0.2);
}

.arrow-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    fill: #5f6368;
    pointer-events: none;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-menu.active { display: block; }

#options-list { list-style: none; margin: 0; padding: 8px 0; }

#options-list li {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

#options-list li:hover { background-color: #f1f3f4; }
#options-list li.hidden { display: none; }

.custom-dropdown {
  position: relative;
  width: 100%; /* Hoặc chiều rộng cố định bạn muốn */
  font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Ô Input chính */
.input-wrapper {
  position: relative;
  transition: all 0.2s ease;
}

#search-input, #detector-search {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px; /* Bo tròn cực đại */
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  background-color: white;
  transition: all 0.2s ease;
}

/* Hiệu ứng khi focus hoặc hover */
#search-input:focus, #detector-search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

.input-wrapper:hover #search-input {
  border-color: #bdc1c6;
}

/* Icon mũi tên */
.arrow-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  fill: #70757a;
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* Menu Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 999;
  max-height: 0; /* Để làm hiệu ứng trượt */
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.dropdown-menu.active {
  max-height: 350px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  padding: 8px 0;
}

/* Từng dòng trong danh sách */
.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-menu li:hover {
  background-color: #f1f3f4;
  color: var(--primary-color);
}

/* Tùy chỉnh thanh cuộn xịn */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 10px;
  border: 2px solid white;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Hiệu ứng xoay mũi tên khi mở */
.custom-dropdown:has(.active) .arrow-icon {
  transform: translateY(-50%) rotate(180deg);
  fill: var(--primary-color);
}
/* Container bọc input */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Nút xóa X */
.clear-btn {
    position: absolute;
    right: 40px; /* Nằm trước icon mũi tên */
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: none; /* Mặc định ẩn */
    user-select: none;
    padding: 5px;
    line-height: 1;
}

.clear-btn:hover {
    color: #333;
}

/* Hiển thị nút X khi input có giá trị */
.input-wrapper:has(input:not(:placeholder-shown)) .clear-btn {
    display: block;
}

/* Điều chỉnh padding-right của input để chữ không đè lên nút X */
#search-input {
    padding-right: 65px !important; 
}
.clear-btn {
    position: absolute;
    right: 35px; /* Nằm trước mũi tên */
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    display: none; /* Mặc định ẩn, JS sẽ điều khiển */
    user-select: none;
}

.clear-btn:hover {
    color: #333;
}

/* Đảm bảo mũi tên không bị lệch */
.arrow-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


           #node-588 {
  padding-bottom: 50px; 
  padding-right: 40px;
  box-sizing: border-box;
}