/**
 * RegDom.ro – custom overrides for PlayGard dark theme
 */

/* ── Performance: skip theme preloader ─────────────────────────── */
.preloader {
  display: none !important;
}

/* ── Base / overflow ─────────────────────────────────────────────── */
html {
  overflow-x: clip;
}

body.bg-dark {
  overflow-x: clip;
}

.regdom-container {
  max-width: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* ── Text logo ───────────────────────────────────────────────────── */
.regdom-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--ff-heading, inherit);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.2s ease;
}

.regdom-logo:hover,
.regdom-logo:focus {
  color: #fff;
  opacity: 0.85;
}

.regdom-logo__dot {
  color: var(--bs-primary, #fb6a53);
}

.regdom-logo--footer {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.regdom-logo--preloader {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

/* ── Preloader text ────────────────────────────────────────────────── */
.preloader .regdom-logo--preloader {
  color: var(--bs-body-color, #212529);
}

.preloader.bg-light-subtle .regdom-logo--preloader {
  color: #1a1a2e;
}

/* ── Site header (solid dark bar) ───────────────────────────────── */
.navbar-overlay {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #080808;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.navbar-overlay .navbar-1 {
  background: #080808 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbar-overlay .navbar-1 .container {
  background: transparent;
}

.navbar-overlay .navbar-1 .nav-link {
  color: #fff !important;
}

.navbar-overlay .navbar-1 .nav-link:hover,
.navbar-overlay .navbar-1 .nav-link:focus {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Navbar mobile ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-overlay .navbar-1 .navbar-collapse {
    background: #080808;
    border-radius: 0 0 1rem 1rem;
  }

  .navbar-overlay .navbar-1 .nav-link {
    color: #fff !important;
  }

  .navbar-overlay .navbar-1 .nav-link:hover,
  .navbar-overlay .navbar-1 .nav-link:focus {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .navbar-overlay .navbar-1 .nav-link.active {
    color: var(--bs-primary, #fb6a53) !important;
  }

  .navbar-overlay .navbar-1 .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
  }

  .navbar-overlay .navbar-1 .navbar-toggler-icon {
    filter: invert(1);
  }

  .navbar-1 .navbar-collapse {
    padding: 1rem 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.75rem;
  }

  .navbar-1 .navbar-nav {
    gap: 0.25rem !important;
    padding-left: 0 !important;
  }

  .navbar-1 .nav-link {
    padding: 0.6rem 0;
  }

  .navbar-1 .nav_right {
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: center;
  }

  .navbar-1 .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .navbar-1 .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(251, 106, 83, 0.25);
  }
}

.navbar-1 .nav-link.active {
  color: var(--bs-primary, #fb6a53) !important;
}

/* ── Domain search ─────────────────────────────────────────────────── */
.regdom-domain-search .search_form {
  position: relative;
}

.regdom-domain-search .search_form .form-control {
  padding-right: 9rem;
}

.regdom-domain-search .search_form .btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.regdom-domain-results {
  margin-top: 1.5rem;
}

.regdom-domain-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.regdom-domain-result--available {
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.regdom-domain-result--taken {
  border: 1px solid rgba(244, 67, 54, 0.25);
}

.regdom-domain-result--unknown {
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.regdom-domain-result__name {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-all;
}

.regdom-domain-result__status {
  font-size: 0.875rem;
  font-weight: 500;
}

.regdom-domain-result__status--available {
  color: #66bb6a;
}

.regdom-domain-result__status--taken {
  color: #ef5350;
}

.regdom-domain-result__status--unknown {
  color: #ffca28;
}

.regdom-domain-result__price {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.regdom-domain-result__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.regdom-domain-result--premium {
  border-color: rgba(255, 193, 7, 0.45);
}

.regdom-domain-result__premium-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  vertical-align: middle;
}

/* ── Responsive two-column grids ─────────────────────────────────── */
@media (min-width: 576px) {
  .regdom-two-col-sm > [class*='col-']:not([class*='col-sm-']):not([class*='col-md-']):not([class*='col-lg-']):not([class*='col-xl-']) {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (max-width: 575.98px) {
  .regdom-domain-search .search_form .form-control {
    padding-right: 1.25rem;
    padding-bottom: 3.75rem;
  }

  .regdom-domain-search .search_form .btn {
    position: absolute;
    right: 0.5rem;
    left: 0.5rem;
    top: auto;
    bottom: 0.5rem;
    transform: none;
    width: calc(100% - 1rem);
  }

  .regdom-domain-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .regdom-domain-result__actions {
    width: 100%;
  }

  .regdom-domain-result__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.regdom-search-loading,
.regdom-whois-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

.regdom-search-loading.is-active,
.regdom-whois-loading.is-active {
  display: flex;
}

.regdom-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--bs-primary, #fb6a53);
  border-radius: 50%;
  animation: regdom-spin 0.75s linear infinite;
}

@keyframes regdom-spin {
  to {
    transform: rotate(360deg);
  }
}

.regdom-search-error {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ef9a9a;
  margin-top: 1rem;
}

.regdom-search-error.is-visible {
  display: block;
}

/* ── WHOIS results ─────────────────────────────────────────────────── */
.regdom-whois-card .whois-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.regdom-whois-card .whois-field:last-child {
  border-bottom: none;
}

.regdom-whois-card .whois-field__label {
  font-weight: 600;
  min-width: 8rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.regdom-whois-card .whois-field__value {
  flex: 1;
  word-break: break-word;
  font-size: 0.9rem;
}

.regdom-whois-raw {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 20rem;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.75);
}

.regdom-whois-loading .regdom-pulse-dots span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.15rem;
  border-radius: 50%;
  background: var(--bs-primary, #fb6a53);
  animation: regdom-pulse 1.2s ease-in-out infinite;
}

.regdom-whois-loading .regdom-pulse-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.regdom-whois-loading .regdom-pulse-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes regdom-pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.regdom-whois-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.regdom-whois-panel__domain {
  font-size: 1.35rem;
  color: #fff;
}

.regdom-whois-panel__message {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.regdom-whois-panel__source {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.regdom-whois-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.regdom-whois-badge--success {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.regdom-whois-badge--primary {
  background: rgba(251, 106, 83, 0.15);
  color: var(--bs-primary, #fb6a53);
}

.regdom-whois-badge--warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}

.regdom-whois-badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.regdom-whois-panel__section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.regdom-whois-panel__section-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.regdom-whois-panel__field {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.regdom-whois-panel__field:last-child {
  border-bottom: none;
}

.regdom-whois-panel__field-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.regdom-whois-panel__field-value {
  font-size: 0.9rem;
  word-break: break-word;
}

.regdom-whois-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.regdom-whois-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 575.98px) {
  .regdom-whois-panel__field {
    grid-template-columns: 1fr;
  }
}

/* ── Pricing table ─────────────────────────────────────────────────── */
.regdom-pricing-filter {
  flex: 1 1 20rem;
  max-width: 28rem;
  margin: 0;
}

.regdom-pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.regdom-pricing-count {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.regdom-pricing-pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.regdom-pricing-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.regdom-pricing-pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.regdom-pricing-pagination .page-item.is-active .page-link {
  background: var(--bs-primary, #fb6a53);
  border-color: var(--bs-primary, #fb6a53);
  color: #fff;
}

.regdom-pricing-pagination .page-item.is-disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

.regdom-pricing-pagination .page-item:not(.is-disabled):not(.is-active) .page-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.regdom-pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}

.regdom-pricing-table {
  width: 100%;
  min-width: 36rem;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.regdom-pricing-table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.regdom-pricing-table tbody tr {
  transition: background 0.15s ease;
}

.regdom-pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.regdom-pricing-table tbody tr.is-hidden {
  display: none !important;
}

.regdom-pricing-table tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.regdom-pricing-table .tld-name {
  font-weight: 600;
  color: var(--bs-primary, #fb6a53);
}

.regdom-pricing-table .price-value {
  font-variant-numeric: tabular-nums;
}

.regdom-pricing-empty {
  display: none;
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.55);
}

.regdom-pricing-empty.is-visible {
  display: block;
}

@media (max-width: 767.98px) {
  .regdom-pricing-table thead {
    display: none;
  }

  .regdom-pricing-table,
  .regdom-pricing-table tbody,
  .regdom-pricing-table tr,
  .regdom-pricing-table td {
    display: block;
    min-width: 0;
  }

  .regdom-pricing-table tbody tr {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .regdom-pricing-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: none;
  }

  .regdom-pricing-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 1rem;
  }
}

/* ── TLD cards (game_card adapted) ─────────────────────────────────── */
.regdom-tld-card.game_card .tld-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(251, 106, 83, 0.12);
  color: var(--bs-primary, #fb6a53);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.regdom-tld-card .tld-price {
  font-size: 1.5rem;
  font-weight: 700;
}

.regdom-tld-card .tld-price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Reseller levels ───────────────────────────────────────────────── */
.regdom-reseller-level {
  position: relative;
  height: 100%;
}

.regdom-reseller-level--featured {
  border: 1px solid var(--bs-primary, #fb6a53);
}

.regdom-reseller-level__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bs-primary, #fb6a53);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 2rem;
  white-space: nowrap;
}

/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.regdom-breadcrumbs {
  font-size: 0.875rem;
}

.regdom-breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.regdom-breadcrumbs a:hover {
  color: var(--bs-primary, #fb6a53);
}

.regdom-breadcrumbs .separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.regdom-breadcrumbs .current {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Footer extras ─────────────────────────────────────────────────── */
.footer_4 .regdom-footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer_4 .regdom-footer-contact a:hover {
  color: var(--bs-primary, #fb6a53);
}

.footer_4 .sal-logo-link img {
  max-height: 3rem;
  width: auto;
}

.footer_4 .regdom-legal-links {
  font-size: 0.85rem;
}

/* ── Hero stats (no gaming images) ─────────────────────────────────── */
.regdom-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.regdom-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.regdom-hero-stat i {
  color: var(--bs-primary, #fb6a53);
}

.regdom-icon-shape {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 106, 83, 0.1);
  color: var(--bs-primary, #fb6a53);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .regdom-spinner {
    animation: none;
    border-top-color: var(--bs-primary, #fb6a53);
    opacity: 0.7;
  }

  .regdom-whois-loading .regdom-pulse-dots span {
    animation: none;
    opacity: 0.7;
  }
}

body.regdom-reduced-motion [data-animation="true"] {
  /* GSAP animations disabled via JS; this is a CSS fallback */
}

body.regdom-reduced-motion .preloader .loading-bar {
  animation: none !important;
}
