/* NamVietMedia – TenTen domain search. Màu lấy từ biến của theme nếu có. */
.nvm-ds, .nvm-dr, .nvm-pt {
	--ds-primary: var(--nvm-primary, #0569c2);
	--ds-red: var(--nvm-red, #e20702);
	--ds-green: #1a8a2e;
	--ds-text: #222;
	font-family: var(--nvm-font, "Poppins", system-ui, sans-serif);
}
.nvm-ds .screen-reader-text, .nvm-dr .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- search form ---------- */
.nvm-ds-form { display: flex; align-items: stretch; width: 100%; }
.nvm-ds-input {
	flex: 1; min-width: 0; height: 60px; padding: 0 20px; border: 0; outline: 0; background: #fff;
	font: inherit; font-size: 14px; color: #000; border-radius: 0;
}
.nvm-ds-input::placeholder { color: #6b6b6b; }
.nvm-ds-submit {
	flex: 0 0 auto; padding: 0 32px; border: 0; background: var(--ds-red); color: #fff; cursor: pointer;
	font: inherit; font-size: 16px; line-height: 32px; transition: filter .2s;
}
.nvm-ds-submit:hover, .nvm-dr-submit:hover { filter: brightness(1.1); }
.nvm-ds-msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: #fff3f2; color: #b3170f; font-size: 14px; }

/* hero (trang chủ): khung vuông, bóng nhẹ */
.nvm-ds--hero .nvm-ds-form { box-shadow: 0 4px 20px rgba(3, 106, 194, .12); border-radius: 4px; overflow: hidden; }
.nvm-ds--hero .nvm-ds-submit { width: 134px; border-radius: 0 4px 4px 0; }

/* page (trang kiểm tra tên miền): bo tròn, viền đỏ */
.nvm-ds--page .nvm-ds-form { max-width: 1004px; margin: 0 auto; border: 1px solid var(--ds-red); border-radius: 9999px; overflow: hidden; background: #fff; }
.nvm-ds--page .nvm-ds-input { height: 52px; background: transparent; }
.nvm-ds--page .nvm-ds-submit { width: 134px; font-size: 16px; }
.nvm-ds--page .nvm-ds-msg { max-width: 1004px; margin-left: auto; margin-right: auto; }

/* ---------- chips đuôi tên miền ---------- */
.nvm-ds-chips { display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.nvm-ds-chips__nav { flex: 0 0 26px; height: 26px; border: 0; padding: 0; background: none; color: var(--ds-red); cursor: pointer; display: grid; place-items: center; }
.nvm-ds-chips__track { flex: 1; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px; }
.nvm-ds-chips__track::-webkit-scrollbar { display: none; }
.nvm-ds-chip {
	flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 14px;
	background: #fff; border-radius: 9999px; box-shadow: 0 2px 8px rgba(3, 106, 194, .08); color: #444; text-decoration: none; font-size: 14px; white-space: nowrap;
	transition: transform .2s, box-shadow .2s;
}
.nvm-ds-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(3, 106, 194, .16); }
.nvm-ds-chip__tld { font-weight: 300; }
.nvm-ds-chip__price { font-weight: 700; color: #000; margin-left: 2px; }
.nvm-ds-chip__gift { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ds-red); margin-left: 4px; }
.nvm-ds--page .nvm-ds-chips { max-width: 1004px; margin: 24px auto 0; }
.nvm-ds--page .nvm-ds-chip { flex-basis: calc((100% - 30px) / 4); justify-content: center; height: 40px; font-size: 15px; }
.nvm-ds--page .nvm-ds-chip__price { font-size: 16px; }

/* ---------- kết quả ---------- */
.nvm-dr { max-width: 1132px; margin: 0 auto; }
.nvm-dr-bar { display: flex; gap: 8px; align-items: center; }
.nvm-dr-form { flex: 1; display: flex; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); border-radius: 4px; overflow: hidden; }
.nvm-dr-form .nvm-ds-input { height: 52px; }
.nvm-dr-submit { border: 0; background: var(--ds-red); color: #fff; font: inherit; font-size: 16px; padding: 0 32px; cursor: pointer; }
.nvm-dr-cart {
	position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: 4px;
	background: var(--ds-primary); color: #fff; text-decoration: none; font-size: 16px; white-space: nowrap;
}
.nvm-dr-cart:hover { filter: brightness(1.08); color: #fff; }
.nvm-dr-count {
	position: absolute; top: -10px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; border: 2px solid var(--ds-primary);
	background: #fff; color: var(--ds-primary); font-style: normal; font-size: 13px; line-height: 18px; text-align: center;
}
.nvm-dr-notice { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid #f4a100; background: #fff8e6; font-size: 14px; }
.nvm-dr-notice--mock { border-color: #9b59b6; background: #f6effa; }
.nvm-dr-primary { margin-top: 58px; }
.nvm-dr-layout { display: grid; grid-template-columns: 252px 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.nvm-dr-side { background: #fff; padding: 22px 10px 22px 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.nvm-dr-side__title { margin: 6px 0 20px; padding-bottom: 14px; border-bottom: 1px solid #eee; font-size: 20px; font-weight: 400; color: #222; }
.nvm-dr-side__title:not(:first-child) { margin-top: 26px; }
.nvm-dr-side__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.nvm-dr-check { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.nvm-dr-check input { width: 16px; height: 16px; accent-color: var(--ds-primary); margin: 0; }
.nvm-dr-list { display: grid; gap: 26px; }
.nvm-dr-empty { margin: 0; padding: 26px; background: #fff; color: #555; font-size: 15px; }
.nvm-dr-empty code { background: #eef4fc; padding: 1px 6px; border-radius: 4px; }

.nvm-dr-card {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 16px 16px 16px 14px;
	background: #fff; border-left: 3px solid transparent; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.nvm-dr-card--primary { padding-top: 20px; padding-bottom: 20px; margin-bottom: 26px; }
.nvm-dr-card__name { font-size: 18px; color: #333; word-break: break-all; }
.nvm-dr-card__tld { color: var(--ds-primary); }
.nvm-dr-card__status { margin-top: 6px; font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nvm-dr-card.is-loading .nvm-dr-card__status { display: none; }
.nvm-dr-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; font-weight: 700; line-height: 1; }
.nvm-dr-mock { margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: #9b59b6; color: #fff; font-size: 11px; font-style: normal; }
.nvm-dr-price { margin-top: 10px; font-size: 17px; color: var(--ds-primary); }
.nvm-dr-price b { font-weight: 400; color: #e8335a; }
.nvm-dr-price small { display: block; margin-top: 2px; font-size: 12px; color: #777; }
.nvm-dr-card__act { flex: 0 0 auto; }
.nvm-dr-dots { display: inline-flex; gap: 10px; padding: 0 12px; }
.nvm-dr-dots i { width: 7px; height: 7px; border-radius: 50%; background: #222; animation: nvmDot 1s infinite ease-in-out; }
.nvm-dr-dots i:nth-child(2) { animation-delay: .15s; }
.nvm-dr-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nvmDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.nvm-dr-pick, .nvm-dr-retry {
	display: inline-block; border: 0; border-radius: 4px; padding: 10px 16px; font: inherit; font-size: 15px; cursor: pointer; text-decoration: none;
	background: var(--ds-green); color: #fff; transition: filter .2s;
}
.nvm-dr-pick:hover, .nvm-dr-retry:hover { filter: brightness(1.12); color: #fff; }
.nvm-dr-pick.is-on { background: #fff; color: var(--ds-green); box-shadow: inset 0 0 0 2px var(--ds-green); }
.nvm-dr-retry { background: #f2f4f7; color: #333; }
.nvm-dr-retry:hover { color: #333; }
.nvm-dr-tag { display: inline-block; padding: 9px 16px; border-radius: 4px; background: #f6f6f6; color: #333; font-size: 15px; }

.nvm-dr-card.is-available { border-left-color: var(--ds-green); }
.nvm-dr-card.is-available .nvm-dr-card__status { color: var(--ds-green); }
.nvm-dr-card.is-taken { border-left-color: var(--ds-red); }
.nvm-dr-card.is-taken .nvm-dr-card__status { color: var(--ds-red); }
.nvm-dr-card.is-invalid, .nvm-dr-card.is-unsupported, .nvm-dr-card.is-rate_limited { border-left-color: #f4a100; }
.nvm-dr-card.is-invalid .nvm-dr-card__status, .nvm-dr-card.is-unsupported .nvm-dr-card__status, .nvm-dr-card.is-rate_limited .nvm-dr-card__status { color: #b86e00; }
.nvm-dr-card.is-api_error, .nvm-dr-card.is-auth_error, .nvm-dr-card.is-unknown, .nvm-dr-card.is-disabled { border-left-color: #9aa5b1; }
.nvm-dr-card.is-api_error .nvm-dr-card__status, .nvm-dr-card.is-auth_error .nvm-dr-card__status, .nvm-dr-card.is-unknown .nvm-dr-card__status, .nvm-dr-card.is-disabled .nvm-dr-card__status { color: #556270; }

/* ---------- bảng giá ---------- */
.nvm-pt { background: #bfd8fb; padding: 15px; }
.nvm-pt-head, .nvm-pt-row, .nvm-pt-foot { display: grid; grid-template-columns: 1fr 218px 218px 218px; gap: 0 10px; }
.nvm-pt-head .nvm-pt-name { display: flex; align-items: center; gap: 14px; padding: 0 0 0 4px; }
.nvm-pt-head h3 { margin: 0; font-size: 20px; font-weight: 400; color: var(--ds-primary); text-transform: uppercase; }
.nvm-pt-badge { font-weight: 700; font-size: 34px; letter-spacing: -1px; color: var(--ds-primary); line-height: 1; }
.nvm-pt--intl .nvm-pt-badge { font-size: 22px; }
.nvm-pt-head .nvm-pt-col { background: var(--ds-primary); color: #fff; text-align: center; padding: 12px 6px; }
.nvm-pt-head .nvm-pt-col b { display: block; font-weight: 400; font-size: 14px; text-transform: uppercase; }
.nvm-pt-head .nvm-pt-col i { font-size: 11px; }
.nvm-pt-row > div, .nvm-pt-foot > div { background: #fff; min-height: 50px; display: flex; align-items: center; font-size: 14px; color: #111; }
.nvm-pt-row:nth-child(odd) > div { background: #e1ecff; }
.nvm-pt-row .nvm-pt-name { padding-left: 15px; }
.nvm-pt-row .nvm-pt-col, .nvm-pt-foot .nvm-pt-col { justify-content: center; }
.nvm-pt-foot > div { min-height: 82px; }
.nvm-pt-btn { display: inline-flex; align-items: center; justify-content: center; width: calc(100% - 30px); height: 52px; background: var(--ds-primary); color: #fff; border-radius: 4px; text-decoration: none; font-size: 14px; text-transform: uppercase; }
.nvm-pt-btn:hover { filter: brightness(1.1); color: #fff; }
.nvm-pt-empty { background: #fff; margin: 0; padding: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
	.nvm-pt-head, .nvm-pt-row, .nvm-pt-foot { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); }
	.nvm-pt-head .nvm-pt-name { flex-wrap: wrap; gap: 6px; }
	.nvm-pt-head h3 { font-size: 16px; }
	.nvm-dr-layout { grid-template-columns: 1fr; }
	.nvm-dr-side { order: 2; }
	.nvm-dr-side__grid { grid-template-columns: repeat(4, 1fr); }
	.nvm-ds--page .nvm-ds-chip { flex-basis: calc((100% - 10px) / 2); }
}
@media (max-width: 767px) {
	.nvm-ds-input { height: 56px; padding: 0 14px; }
	.nvm-ds--hero .nvm-ds-submit, .nvm-ds--page .nvm-ds-submit { width: auto; padding: 0 16px; }
	.nvm-ds--page .nvm-ds-input { height: 50px; }
	.nvm-dr-bar { flex-direction: column; align-items: stretch; }
	.nvm-dr-cart { justify-content: center; }
	.nvm-dr-submit { padding: 0 16px; }
	.nvm-dr-primary { margin-top: 30px; }
	.nvm-dr-card { flex-direction: column; align-items: flex-start; }
	.nvm-dr-card__act { align-self: stretch; }
	.nvm-dr-pick, .nvm-dr-retry { width: 100%; text-align: center; }
	.nvm-dr-side__grid { grid-template-columns: 1fr 1fr 1fr; }
	.nvm-pt { padding: 8px; overflow-x: auto; }
	.nvm-pt-head, .nvm-pt-row, .nvm-pt-foot { grid-template-columns: 90px repeat(3, minmax(84px, 1fr)); gap: 0 4px; min-width: 360px; }
	.nvm-pt-head .nvm-pt-col b { font-size: 11px; }
	.nvm-pt-head h3 { font-size: 14px; }
	.nvm-pt-badge { display: none; }
	.nvm-pt-btn { width: calc(100% - 10px); }
}
