/* ==========================================================================
   iNET Domain & Site Inspector — khối giới thiệu Chrome extension
   Dùng ở: top bar (mọi trang), card trang kết quả WHOIS, và trang giới
   thiệu /extension.
   Palette lấy theo icon extension: #49c98d -> #2e7d32.
   ========================================================================== */

/* --- Top bar dismissible ------------------------------------------------ */
.iext-topbar {
  position: relative;
  background: linear-gradient(135deg, #2e7d32 0%, #49c98d 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.iext-topbar[hidden] {
  display: none;
}

.iext-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 44px 9px 16px;
  text-align: center;
}

.iext-topbar-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.iext-topbar-text strong {
  font-weight: 700;
}

.iext-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: #fff;
  color: #1b5e20;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}

.iext-topbar-cta:hover,
.iext-topbar-cta:focus {
  color: #1b5e20;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.iext-topbar-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  line-height: 26px;
  cursor: pointer;
}

.iext-topbar-close:hover {
  background: rgba(255, 255, 255, .32);
}

@media (max-width: 767px) {
  .iext-topbar-inner {
    font-size: 13px;
    padding: 8px 40px 8px 12px;
  }
}

/* --- Nút CTA dùng chung cho card / landing ----------------------------- */
.iext-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.iext-btn-primary {
  background: #fff;
  color: #1b5e20;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.iext-btn-primary:hover,
.iext-btn-primary:focus {
  color: #1b5e20;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

.iext-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
}

.iext-btn-ghost:hover,
.iext-btn-ghost:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
}

.iext-btn-green {
  background: linear-gradient(135deg, #2e7d32 0%, #49c98d 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 125, 50, .3);
}

.iext-btn-green:hover,
.iext-btn-green:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, .4);
}

/* --- Card gọn ở trang kết quả WHOIS ------------------------------------- */
.iext-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #d6ecdd;
  border-left: 4px solid #2e7d32;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3fbf6 0%, #eaf7ef 100%);
}

.iext-card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.iext-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.iext-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #17421f;
}

.iext-card-desc {
  margin: 0;
  font-size: 13.5px;
  color: #4a6b53;
}

.iext-card-actions {
  flex: 0 0 auto;
}

.iext-card .iext-btn {
  padding: 9px 18px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .iext-card {
    flex-wrap: wrap;
  }

  .iext-card-actions {
    flex: 1 1 100%;
  }

  .iext-card-actions .iext-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Trang giới thiệu /extension ---------------------------------------- */
.iext-hero {
  padding: 46px 0 40px;
  background: linear-gradient(135deg, #10361c 0%, #1e5b34 45%, #2e7d32 100%);
  color: #fff;
}

.iext-hero-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.iext-hero-main {
  flex: 1 1 auto;
  min-width: 0;
}

.iext-hero-visual {
  flex: 0 0 46%;
  max-width: 46%;
}

.iext-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.iext-hero-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.iext-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.iext-hero-lead {
  margin: 0 0 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
}

.iext-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.iext-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

.iext-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.iext-section {
  padding: 42px 0;
}

.iext-section-alt {
  background: #f5f8f6;
}

.iext-section-title {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  color: #17421f;
}

.iext-section-sub {
  margin: 0 auto 28px;
  max-width: 680px;
  text-align: center;
  color: #62766a;
}

.iext-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.iext-feature {
  padding: 22px;
  border: 1px solid #e4ebe6;
  border-radius: 12px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.iext-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23, 66, 31, .1);
}

.iext-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2e7d32 0%, #49c98d 100%);
  color: #fff;
  font-size: 18px;
}

.iext-feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #17421f;
}

.iext-feature p {
  margin: 0;
  font-size: 14px;
  color: #5d7166;
}

.iext-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.iext-shot {
  border: 1px solid #e4ebe6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.iext-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.iext-shot figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: #5d7166;
  border-top: 1px solid #eef2ef;
}

.iext-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: iextstep;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iext-steps li {
  position: relative;
  padding: 20px 20px 20px 62px;
  border: 1px solid #e4ebe6;
  border-radius: 12px;
  background: #fff;
}

.iext-steps li::before {
  counter-increment: iextstep;
  content: counter(iextstep);
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32 0%, #49c98d 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.iext-steps h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #17421f;
}

.iext-steps p {
  margin: 0;
  font-size: 13.5px;
  color: #5d7166;
}

.iext-faq {
  max-width: 820px;
  margin: 0 auto;
}

.iext-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid #e4ebe6;
}

.iext-faq-item:last-child {
  border-bottom: 0;
}

.iext-faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #17421f;
}

.iext-faq-item p {
  margin: 0;
  font-size: 14.5px;
  color: #5d7166;
}

.iext-cta-band {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(135deg, #10361c 0%, #2e7d32 100%);
  color: #fff;
}

.iext-cta-band h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.iext-cta-band p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 991px) {
  .iext-hero-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .iext-hero-visual {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .iext-hero h1 {
    font-size: 25px;
  }

  .iext-hero-actions .iext-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
