.sdg-st {
        display: inline-block;
        font-size: 13px;
        padding: 2px 10px;
        border-radius: 12px;
        white-space: nowrap;
    }
    .sdg-st.free {
        background: #e7f7ee;
        color: #177a46;
    }
    .sdg-st.held {
        background: #fdecec;
        color: #b42318;
    }
    .sdg-hold {
        min-width: 80px;
        border: 0;
        border-radius: 2px;
        color: #fff;
        padding: 6px 14px;
        background: linear-gradient(90deg, #2a959b, #0a8ebe);
        font-size: 12px !important;
    }
    .sdg-hold:hover {
        color: #fff;
        filter: brightness(1.08);
    }
    .sdg-hold[disabled] {
        background: #c9ced6;
        color: #fff;
        opacity: 1;
        font-size: 12px;
        color: #000;
        padding: 6px 12px;
        height: auto;
        border: 1px solid #c9ced6;
    }
    .sdg-topic-wrapper {
        max-height: 330px;
        overflow-y: auto;
    }
    .sdg-check-section {
        background: linear-gradient(90deg, #0b8fa8, #16a6b9 50%, #1b8fc4);
        color: #fff;
        padding: 42px 0 46px;
        margin-top: 30px;
    }
    .sdg-check-section h3 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 6px;
        color: #fff;
    }
    .sdg-check-box {
        display: flex;
        gap: 8px;
        max-width: 620px;
        margin: 18px auto 0;
        background: #fff;
        padding: 6px;
        border-radius: 6px;
    }
    .sdg-check-box .form-select {
        width: auto;
    }
    .sdg-check-result {
        max-width: 620px;
        margin: 14px auto 0;
        background: #fff;
        color: #222;
        border-radius: 6px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
    }
    .sdg-check-result.d-none {
        display: none !important;
    }
    @media (max-width: 576px) {
        .sdg-check-box {
            flex-wrap: wrap;
        }
        .sdg-check-box .form-control {
            flex-basis: 100%;
        }
        .sdg-check-section h3 {
            font-size: 24px;
        }
    }
.demo-bar { background:#fff8e1; border-bottom:1px solid #f0d58c; padding:8px 16px; font-size:13px; text-align:center }
.demo-bar label { margin-left:14px; cursor:pointer; font-weight:600 }
.demo-head { height:72px; border-bottom:1px solid #eee; display:flex; align-items:center; padding:0 24px; color:#17a2b7; font-weight:700; font-size:20px }
.demo-hero { background:#f4f7ff; text-align:center; padding:44px 0 92px }
.demo-hero h1 { color:#49bab8; font-size:56px; font-weight:700; margin:0 0 8px }
.demo-hero .badges { display:inline-flex; gap:8px; margin-top:12px; flex-wrap:wrap; justify-content:center }
.demo-hero .badges span { background:#fff; border:1px solid #d6e7ef; border-radius:20px; padding:3px 12px; font-size:13px }
.demo-hero .badges b { color:#048abd }
.section-list-domain-bottom { margin-top:-70px; background:transparent !important }

.top-search-domain { display:flex; gap:20px; position:relative }
#btn_toggle_filter { background:#fff; border:1px solid #d9d9d9; color:#17a2b7; padding:0 22px; height:46px; white-space:nowrap }
#btn_toggle_filter:hover { background:#fff; color:#17a2b7 }
#filter_domain_name { background:#e4e8f4; border:0; height:46px; padding:0 18px }
#filter_domain_name:focus { box-shadow:0 0 0 2px rgba(23,162,183,.35) }
.btn-info { background:#17a2b7 !important; border-color:#17a2b7 !important }
.btn_search { height:46px; padding:0 30px !important }
.filter-dropdown { position:absolute; top:60px; left:0; right:0; z-index:20; background:#fff; border-radius:6px;
  box-shadow:0 6px 24px rgba(0,0,0,.14); padding:22px 20px 16px }
.filter-dropdown label { margin-bottom:8px; cursor:pointer; font-size:14.5px }
.filter-dropdown input[type=checkbox], .filter-dropdown input[type=radio] { margin-right:6px; accent-color:#1976d2 }
.ext-wrapper { background:#f9f9f9; border-radius:8px; padding:12px 14px }
.btn_filter { background:#048abd !important; border-color:#048abd !important }
#filter_status { margin-top:12px !important }
.free-domain-table .datatable-wrapper { margin-top:24px; border:1px solid #e5e7eb; border-radius:4px; padding:14px 0 0; position:relative; background:#fff }
.domain_price_loader { position:absolute; inset:0; background:rgba(255,255,255,.7); z-index:5; display:flex; flex-direction:column;
  align-items:center; justify-content:center }
.domain_price_loader .spinner { width:32px; height:32px; border:3px solid #cde; border-top-color:#17a2b7; border-radius:50%; animation:sp 1s linear infinite }
@keyframes sp { to { transform:rotate(360deg) } }
table.dataTable thead th { font-weight:700; white-space:nowrap }
table.dataTable tbody td { padding:14px 10px; vertical-align:middle }
div.dt-container .dt-layout-row { padding:0 14px }
div.dt-container .dt-paging .dt-paging-button.current, div.dt-container .dt-paging .dt-paging-button.current:hover {
  background:#17a2b7 !important; color:#fff !important; border-color:#17a2b7 !important }
div.dt-container .dt-processing { display:none !important }
.demo-toast { position:fixed; right:20px; top:90px; z-index:9999; background:#fff; border-left:4px solid #17a2b7;
  box-shadow:0 6px 24px rgba(0,0,0,.18); border-radius:4px; padding:12px 16px; max-width:340px; font-size:14.5px }
.demo-toast.err { border-color:#e53935 }
.demo-foot { background:#1f2937; color:#cbd5e1; text-align:center; padding:26px; margin-top:0; font-size:13px }

/* Tab Đã đặt trước */
    #sdg_pane_da-dat .sdg-mine-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap }
    #sdg_pane_da-dat .sdg-mine-head b { font-size: 15px }
    #sdg_pane_da-dat .sdg-mine-table { width: 100%; border: 1px solid #e5e7eb; border-collapse: collapse }
    #sdg_pane_da-dat .sdg-mine-table th, #sdg_pane_da-dat .sdg-mine-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle }
    #sdg_pane_da-dat .sdg-mine-table th { background: #f7f8fa; font-weight: 700; white-space: nowrap }
    #sdg_pane_da-dat .sdg-mine-table td.r, #sdg_pane_da-dat .sdg-mine-table th.r { text-align: right; white-space: nowrap }
    #sdg_pane_da-dat .sdg-mine-domain { font-weight: 600; word-break: break-all }
    #sdg_pane_da-dat .sdg-mine-empty { border: 1px dashed #cfd6e0; border-radius: 6px; padding: 30px 16px; text-align: center; color: #555 }
    #sdg_pane_da-dat .sdg-mine-empty p { margin: 0 0 12px }
    #sdg_pane_da-dat .sdg-mine-empty .btn { margin: 0 4px }
    #sdg_pane_da-dat .sdg-mine-note { margin: 10px 0 0; font-size: 13px; color: #6b7280 }

    
@media (max-width:767px) { .demo-hero h1 { font-size:32px } .top-search-domain { flex-wrap:wrap; gap:8px }

  #filter_domain_name { order:-1; flex-basis:100% } #btn_toggle_filter, .btn_search { flex:1 } .filter-dropdown { top:110px; max-height:70vh; overflow-y:auto } }
  .free-domain-table{
    margin-top: 30px;
  }


    /* Thanh tìm kiếm */
    #btn_search, #btn_toggle_filter { white-space: nowrap }

    /* Bảng lọc: site đang cho .ext-wrapper chia 3 cột (dành cho 17 đuôi .vn) → đặt lại cho trang này */
    #advanced_filter .sdg-col { margin-bottom: 14px }
    #advanced_filter > .row label { display: block; position: relative; padding-left: 23px; margin: 0 0 9px; line-height: 1.4; cursor: pointer }
    #advanced_filter > .row label input[type=checkbox],
    #advanced_filter > .row label input[type=radio] { position: absolute; left: 0; top: 3px; margin: 0 }
    #advanced_filter .sdg-topic-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px;
        max-height: none; overflow: visible }
    #advanced_filter .sdg-ext-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px }
    #advanced_filter .sdg-count { white-space: nowrap; margin-left: 2px }
    #advanced_filter .flex-item .form-control { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px }
    .sdg-cart-link { margin-left: 6px; padding: 6px 12px; border: 1px solid #17a2b7; border-radius: 2px; color: #17a2b7;
        background: #fff; white-space: nowrap; text-decoration: none;font-size: 12px; }
    .sdg-cart-link:hover, .sdg-cart-link:focus { background: #17a2b7; color: #fff }
    .sdg-cart-link i { margin-right: 4px }    
    /* Bảng danh sách */
    #domain_free_list th, #domain_free_list td { vertical-align: middle }
    #domain_free_list .sdg-c { text-align: center }
    #domain_free_list .sdg-r { text-align: right }
    #domain_free_list .sdg-nw { white-space: nowrap }
    .sdg-st { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 12px; white-space: nowrap }
    .sdg-st.free { background: #e7f7ee; color: #177a46 }
    .sdg-st.held { background: #fdecec; color: #b42318 }
    .sdg-hold { min-width: 80px; border: 0; border-radius: 2px; color: #fff; padding: 6px 14px; background: linear-gradient(90deg, #2a959b, #0a8ebe);font-size: 12px; }
    .sdg-hold:hover, .sdg-hold:focus { color: #fff; filter: brightness(1.08);  }
    .sdg-hold[disabled] { background: #c9ced6; color: #fff; opacity: 1 }

    /* Ghi chú quy định đặt trước */
    .sdg-note { background: #fff8e6; border: 1px solid #f3dfa6; border-radius: 6px; padding: 16px 20px; margin-top: 26px;
        color: #5c4a1a; font-size: 14px; line-height: 1.65; text-align: left }
    .sdg-note-title { font-size: 17px; font-weight: 700; color: #4a3b12; margin-bottom: 6px }
    .sdg-note-title i { color: #d39b10; margin-right: 6px }
    .sdg-note p { margin: 0 0 6px }
    .sdg-note p:last-child { margin-bottom: 0 }
    .sdg-note b { color: #3f3210 }
    .sdg-note a { color: #0b7f93; font-weight: 600 }
    @media (max-width: 576px) { .sdg-note { padding: 14px 14px; font-size: 13.5px; margin-top: 0; } .sdg-note-title { font-size: 16px } }

    /* Tab */
    .sdg-tabs { display: flex; gap: 6px; border-bottom: 2px solid #e5e7eb; margin: 26px 0 22px }
    .sdg-tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 22px;
        font: inherit; font-weight: 600; color: #6b7280; cursor: pointer; white-space: nowrap }
    .sdg-tab:hover { color: #17a2b7 }
    .sdg-tab.active { color: #17a2b7; border-bottom-color: #17a2b7 }
    .sdg-tab i { margin-right: 6px }

    /* Tìm tên miền — mọi selector gắn #sdg_pane_tim để thắng CSS cũ của dải Kiểm tra (nếu còn sót trên site) */
    #sdg_pane_tim { text-align: left }
    #sdg_pane_tim .sdg-check-box { display: flex; align-items: stretch; gap: 10px; max-width: none; margin: 0; padding: 0;
        background: none; border-radius: 0 }
    #sdg_pane_tim .sdg-check-box .form-control,
    #sdg_pane_tim .sdg-check-box .form-select,
    #sdg_pane_tim .sdg-check-box .btn { height: 40px; margin: 0; border-radius: 4px; font-size: 16px; line-height: normal }
    #sdg_pane_tim .sdg-check-box .form-control { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 16px; background: #e4e8f4; border: 0 }
    #sdg_pane_tim .sdg-check-box .form-control:focus { box-shadow: 0 0 0 2px rgba(23, 162, 183, .35); outline: 0 }
    #sdg_pane_tim .sdg-check-box .form-select { flex: none; width: 160px; padding: 0 10px; font-size: 15px }
    #sdg_pane_tim .sdg-check-box .btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        padding: 0 30px; white-space: nowrap }
    #sdg_pane_tim .sdg-check-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #555 }
    #sdg_pane_tim .sdg-check-hint a { color: #0b7f93; font-weight: 600; text-decoration: underline }

    /* Kết quả kiểm tra: mỗi đuôi một dòng */
    #sdg_pane_tim .sdg-check-result { display: block; max-width: none; margin: 18px 0 0; padding: 0; background: #fff;
        border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; text-align: left; gap: 0 }
    #sdg_pane_tim .sdg-check-result.d-none { display: none !important }
    #sdg_pane_tim .sdg-res-row { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid #eee }
    #sdg_pane_tim .sdg-res-row:first-child { border-top: 0 }
    #sdg_pane_tim .sdg-res-row:nth-child(even) { background: #f7f8fa }
    #sdg_pane_tim .sdg-res-domain { flex: 0 0 240px; min-width: 0; font-weight: 600; word-break: break-all }
    #sdg_pane_tim .sdg-res-msg { flex: 1 1 auto; min-width: 0; font-size: 14px }
    #sdg_pane_tim .sdg-res-msg.ok { color: #177a46 }
    #sdg_pane_tim .sdg-res-msg.no { color: #b42318 }
    #sdg_pane_tim .sdg-res-price { flex: none; white-space: nowrap; color: #333 }
    #sdg_pane_tim .sdg-res-act { flex: none; min-width: 110px; text-align: right }
    #sdg_pane_tim .sdg-res-more { padding: 12px 18px; background: #f0fafb; border-top: 1px solid #e5e7eb; font-size: 14px }
    #sdg_pane_tim .sdg-res-more a { color: #0b7f93; font-weight: 600; cursor: pointer }

    /* Tablet: bảng lọc 2 cột */
    @media (max-width: 991px) {
        #advanced_filter { max-height: 75vh; overflow-y: auto }
    }

    /* Mobile */
    @media (max-width: 767px) {
        /* Bảng chỉ giữ Tên miền | Phí | Đặt (nút đã thể hiện trạng thái) → không phải kéo ngang */
        #domain_free_list .sdg-hide-sm { display: none }
        #domain_free_list td, #domain_free_list th { padding-left: 8px; padding-right: 8px }
        .sdg-hold { min-width: 0; padding: 6px 12px }
        .sdg-hold[disabled] { font-size: 12px; padding: 6px 8px }
        /* Phân trang gọn 1 dòng */
        #domain_free_list_wrapper .dt-paging .first,
        #domain_free_list_wrapper .dt-paging .last { display: none }
        #domain_free_list_wrapper .dt-paging .ellipsis { padding: 0 2px }
        #domain_free_list_wrapper .dt-info, #domain_free_list_wrapper .dt-paging { text-align: center; width: 100% }
        .free-domain-table {
            padding: 0;
        }
        .bg-custom-x{
            padding: 15px;
        }
        .sdg-cart-link { display: block; margin: 6px 0 0; padding: 5px 8px; font-size: 12px; text-align: center; }
    }
    @media (max-width: 576px) {
        .sdg-tabs { margin-top: 18px }
        .sdg-tab { flex: 1 1 0; padding: 12px 6px; font-size: 14px }
        #sdg_pane_tim .sdg-check-box { flex-wrap: wrap }
        #sdg_pane_tim .sdg-check-box .form-control { flex-basis: 100% }
        #sdg_pane_tim .sdg-check-box .form-select { flex: 1 1 0; width: auto }
        #sdg_pane_tim .sdg-check-box .btn { flex: 1 1 0; padding: 0 12px }
        #sdg_pane_tim .sdg-res-row { flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px }
        #sdg_pane_tim .sdg-res-domain { flex-basis: 100% }
        #sdg_pane_tim .sdg-res-msg { flex: 1 1 100%; order: 3 }
        #sdg_pane_tim .sdg-res-act { margin-left: auto; min-width: 0 }
    }
    @media (max-width: 420px) {
        #advanced_filter .sdg-topic-wrapper { grid-template-columns: 1fr }
    }
    