.mhc-wrapper {
  max-width: 950px;
  margin: 40px auto;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
}

/* Header & Form */
.mhc-search-header {
  background: #f0f7ff;
  padding: 48px 28px;
  text-align: center;
}

.mhc-search-form {
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mhc-search-form input[type="text"] {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 16px;
  outline: none;
}

.mhc-search-form input[type="text"]:focus {
  border: none !important;
}

.mhc-search-form button {
  background: #f26720;
  color: #fff;
  border: none;
  padding: 0 35px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.mhc-search-form button:hover {
  background: #e67a00;
}

/* Main Results */
.mhc-main-result {
  padding: 30px;
  background: #fdfdfd;
  border: 1px solid #eee;
  text-align: center;
  margin-bottom: 30px;
}

.mhc-success {
  color: #28a745;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}
.mhc-error {
  color: #dc3545;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}
.mhc-main-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.mhc-main-price {
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

/* Global "Per Year" Small Font */
.mhc-per-year {
  font-size: 13px;
  color: #777;
  font-weight: 400;
  margin-left: 2px;
}

/* Featured Cards - Smaller Elements */
.mhc-featured-tlds {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.mhc-featured-card {
  background: #fff;
  border: 1px solid #ddd;
  border-top: 4px solid #0d0e42;
  border-radius: 4px;
  padding: 20px 15px;
  flex: 1;
  text-align: center;
}

.mhc-tld {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}

.mhc-price {
  color: #444;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 600;
}

/* Suggestions - Smaller Elements */
.mhc-suggestions-container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.mhc-suggestions-container h4 {
  background: #f8f9fa;
  padding: 12px 20px;
  margin: 0;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}

.mhc-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 100px; /* Space for the loader */
}

.mhc-suggestions-list li {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
}

.mhc-sug-domain {
  flex: 1;
  font-size: 15px;
  color: #555;
}
.mhc-sug-domain strong {
  color: #111;
}
.mhc-sug-price {
  margin-right: 25px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Buttons - Reduced Sizes */
.mhc-btn {
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  border: none;
  transition:
    background 0.2s,
    transform 0.1s;
}

.mhc-btn:active {
  transform: translateY(1px);
}

.mhc-btn-primary {
  background: #ff8800;
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
}

.mhc-btn-primary:hover {
  background: #ff8800;
}

.mhc-btn-secondary {
  background: #0044cc;
  color: #fff;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}

.mhc-btn-secondary:hover {
  background: #003399;
}

.mhc-btn-outline {
  background: transparent;
  color: #0044cc;
  border: 1px solid #0044cc;
  padding: 5px 12px;
  font-size: 13px;
}

.mhc-btn-outline:hover {
  background: #0044cc;
  color: #fff;
}

.mhc-btn-unavailable {
  background: #eee;
  color: #999;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  cursor: not-allowed;
  font-size: 14px;
}

/* Container for the Main Result Loader */
.mhc-loading {
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontal Center */
  justify-content: center; /* Vertical Center */
  min-height: 150px; /* Gives it space to be centered in */
  width: 100%;
  text-align: center;
}

/* Container for the Suggestions Loader */
#mhc-loader {
  display: flex;
  justify-content: center; /* Horizontal Center */
  align-items: center; /* Vertical Center */
  padding: 50px 0; /* Vertical padding to breathe */
  width: 100%;
}

/* The Spinner itself */
.mhc-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0044cc;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: block; /* Ensures it behaves as a block element for flex */
}

.mhc-disclaimer {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #fafafa; /* Subtle background to separate it from the list */
  font-style: italic;
  line-height: 1.4;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .mhc-featured-tlds {
    flex-direction: column;
  }
  .mhc-suggestions-list li {
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
  .mhc-sug-price {
    margin-right: auto;
  }
  .mhc-sug-domain {
    width: 100%;
  }
}

/* --- Custom .NP Domain Styles --- */
.mhc-free-badge {
    background: #28a745;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.mhc-np-disclaimer {
    background-color: #e9ecef;
    color: #495057;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 4px;
    margin: -5px auto 15px auto;
    max-width: fit-content;
    border: 1px solid #dee2e6;
}

/* =========================================================
   SIMPLE WHOIS CARD UI (Standalone Page)
   ========================================================= */

.mhc-simple-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mhc-simple-hero h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.mhc-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mhc-badge-green { background: #dcfce7; color: #166534; }
.mhc-badge-orange { background: #fef3c7; color: #92400e; }
.mhc-badge-gray { background: #f1f5f9; color: #475569; }

.mhc-simple-grid {
    display: grid;
    /* This forces exactly 2 equal-width columns */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Add this right underneath to ensure it doesn't look squished on mobile phones */
@media (max-width: 768px) {
    .mhc-simple-grid {
        grid-template-columns: 1fr; /* Stacks to 1 card per row on small screens */
    }
}

.mhc-simple-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mhc-simple-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.mhc-card-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
}

.mhc-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mhc-card-row span {
    color: #64748b;
    font-weight: 500;
}

.mhc-card-row strong {
    color: #0f172a;
    text-align: right;
    word-break: break-word;
    max-width: 65%;
}

.mhc-raw-toggle-wrap #mhc-raw-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#mhc-standalone-whois-data {
    margin-top: 15px;
    background: #0f172a;
    color: #10b981;
    padding: 20px;
    border-radius: 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 600px;
    overflow-y: auto;
}
