/* ==========================================================================
   SablonPlatform - Modern Domain Search & Pricing Styles
   Anti-slop, clean typography, responsive, accessible.
   ========================================================================== */

.dm-is-hidden { display: none !important; }
.dm-is-visible { display: block !important; }
.dm-is-flex { display: flex !important; }
.dm-text-right { text-align: right; }
.dm-text-center { text-align: center; }
.dm-mt-sm { margin-top: 14px; }
.dm-mt-md { margin-top: 24px; }
.dm-mb-lg { margin-bottom: 32px; }
.dm-muted-color { color: var(--mk-muted, #5b6675); }
.dm-muted-sm { font-size: 1.05rem; font-weight: 600; }
.dm-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dm-header-wrap { text-align: center; max-width: 600px; margin: 0 auto 36px; }
.dm-faq-center { text-align: center; margin-bottom: 32px; }
.dm-curr-wrap { display: flex; align-items: center; gap: 10px; }
.dm-curr-label { font-size: 0.85rem; font-weight: 600; color: var(--mk-muted, #5b6675); }

.dm-hero-wrap {
  padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}

.dm-title {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--mk-ink, #0e1b2a);
  margin: 0 auto 16px;
  max-width: 24ch;
}

.dm-lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--mk-ink-soft, #3b4758);
  margin: 0 auto 32px;
  max-width: 58ch;
}

/* --- Search Bar Container --- */
.dm-search-container {
  max-width: 760px;
  margin: 0 auto;
}

.dm-search-box {
  background: #ffffff;
  border: 2px solid var(--mk-line, #dfe4ec);
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px -2px rgba(11, 31, 68, 0.08), 0 1px 3px rgba(11, 31, 68, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dm-search-box:focus-within {
  border-color: var(--mk-brand, #2459d6);
  box-shadow: 0 0 0 4px rgba(36, 89, 214, 0.15), 0 10px 28px -4px rgba(11, 31, 68, 0.12);
}

.dm-search-icon {
  color: var(--mk-muted, #5b6675);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dm-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mk-ink, #0e1b2a);
  padding: 10px 0;
  min-width: 0;
  font-family: inherit;
}

.dm-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.dm-search-btn {
  background: var(--mk-brand, #2459d6);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
  font-family: inherit;
}

.dm-search-btn:hover {
  background: var(--mk-brand-700, #1a3f9a);
  color: #ffffff;
}

.dm-search-btn:active {
  transform: scale(0.98);
}

.dm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: dm-spin 0.6s linear infinite;
  display: none;
}

@keyframes dm-spin {
  to { transform: rotate(360deg); }
}

.dm-search-btn.is-loading .dm-spinner {
  display: inline-block;
}

.dm-search-btn.is-loading .dm-btn-text {
  opacity: 0.8;
}

/* Quick Chips */
.dm-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.dm-chip-label {
  font-size: 0.85rem;
  color: var(--mk-muted, #5b6675);
  font-weight: 500;
}

.dm-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mk-ink, #0e1b2a);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.dm-chip:hover {
  background: #ffffff;
  border-color: var(--mk-brand, #2459d6);
  color: var(--mk-brand-700, #1a3f9a);
}

.dm-chip strong {
  color: var(--mk-brand, #2459d6);
  margin-left: 2px;
}

/* --- Results Section --- */
.dm-results-wrap {
  max-width: 960px;
  margin: 32px auto 0;
}

/* Primary Match Card */
.dm-hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(11, 31, 68, 0.06);
  border: 2px solid var(--mk-line, #dfe4ec);
  transition: all 0.3s ease;
}

.dm-hero-card--available {
  border-color: #22c55e;
  background: linear-gradient(to right, #f0fdf4, #ffffff);
}

.dm-hero-card--taken {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dm-hero-info {
  flex: 1;
  min-width: 260px;
}

.dm-hero-domain {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  color: var(--mk-ink, #0e1b2a);
  margin: 0 0 6px;
  word-break: break-all;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dm-hero-badge {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dm-hero-badge--ok {
  background: #dcfce7;
  color: #15803d;
}

.dm-hero-badge--bad {
  background: #f1f5f9;
  color: #64748b;
}

.dm-hero-desc {
  font-size: 0.95rem;
  color: var(--mk-muted, #5b6675);
  margin: 0;
}

.dm-hero-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dm-hero-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--mk-ink, #0e1b2a);
  line-height: 1;
}

.dm-hero-price-sub {
  font-size: 0.85rem;
  color: var(--mk-muted, #5b6675);
}

.dm-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dm-btn-buy {
  background: #16a34a;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.dm-btn-buy:hover {
  background: #15803d;
  color: #ffffff;
  transform: translateY(-1px);
}

.dm-btn-connect {
  background: var(--mk-brand-tint, #eaf0ff);
  color: var(--mk-brand-700, #1a3f9a);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dm-btn-connect:hover {
  background: #d8e4fe;
  color: var(--mk-brand-900, #0b1f44);
}

/* Alternative Extensions Grid */
.dm-alt-section {
  background: #ffffff;
  border: 1px solid var(--mk-line, #dfe4ec);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11, 31, 68, 0.04);
  margin-bottom: 32px;
}

.dm-alt-header {
  padding: 16px 20px;
  background: var(--mk-soft, #f4f6fa);
  border-bottom: 1px solid var(--mk-line, #dfe4ec);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dm-alt-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mk-ink, #0e1b2a);
  margin: 0;
}

.dm-filter-tabs {
  display: flex;
  gap: 6px;
}

.dm-filter-tab {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mk-ink-soft, #3b4758);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dm-filter-tab.is-active,
.dm-filter-tab:hover {
  background: var(--mk-brand, #2459d6);
  border-color: var(--mk-brand, #2459d6);
  color: #ffffff;
}

/* Extension Row */
.dm-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  font-size: 0.95rem;
}

.dm-row:last-child {
  border-bottom: none;
}

.dm-row:hover {
  background: #fafbfe;
}

.dm-row-domain {
  font-weight: 700;
  color: var(--mk-ink, #0e1b2a);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--mk-line-strong, #8c98ab);
  border-radius: 6px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.dm-badge--available {
  color: #15803d;
  border-color: #15803d;
}

.dm-badge--taken {
  color: #64748b;
}

.dm-badge--checking {
  color: #92400e;
  border-color: #92400e;
}

.dm-row-price {
  font-weight: 700;
  color: var(--mk-ink, #0e1b2a);
}

.dm-row-price-usd {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mk-muted, #5b6675);
}

.dm-row-action {
  text-align: right;
}

.dm-btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dm-btn-sm-buy {
  background: #16a34a;
  color: #ffffff;
}

.dm-btn-sm-buy:hover {
  background: #15803d;
  color: #ffffff;
}

.dm-btn-sm-taken {
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}

/* Pricing Section */
.dm-pricing-section {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--mk-soft, #f4f6fa);
  border-top: 1px solid var(--mk-line, #dfe4ec);
  margin-top: 48px;
}

.dm-pricing-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.dm-table-card {
  background: #ffffff;
  border: 1px solid var(--mk-line, #dfe4ec);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 31, 68, 0.05);
}

.dm-table-controls {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--mk-line, #dfe4ec);
}

.dm-table-search {
  border: 1px solid var(--mk-line, #dfe4ec);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  width: 200px;
}

.dm-table-search:focus {
  border-color: var(--mk-brand, #2459d6);
}

.dm-curr-toggle {
  display: inline-flex;
  border: 1px solid var(--mk-line, #dfe4ec);
  border-radius: 8px;
  overflow: hidden;
}

.dm-curr-btn {
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: var(--mk-ink-soft, #3b4758);
}

.dm-curr-btn.is-active {
  background: var(--mk-brand, #2459d6);
  color: #ffffff;
}

.dm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dm-table th, .dm-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.dm-table thead th {
  background: var(--mk-soft, #f4f6fa);
  color: var(--mk-ink, #0e1b2a);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dm-table tbody tr:hover {
  background: #fafbfe;
}

.dm-tld-badge {
  font-family: var(--mk-font, monospace);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mk-brand-700, #1a3f9a);
}

/* Steps / Feature Cards */
.dm-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px auto;
}

.dm-step-card {
  background: #ffffff;
  border: 1px solid var(--mk-line, #dfe4ec);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dm-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgba(11, 31, 68, 0.08);
}

.dm-step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mk-brand-tint, #eaf0ff);
  color: var(--mk-brand-700, #1a3f9a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.dm-step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mk-ink, #0e1b2a);
  margin: 0 0 8px;
}

.dm-step-card p {
  font-size: 0.92rem;
  color: var(--mk-ink-soft, #3b4758);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Details */
.dm-faq-item {
  background: #ffffff;
  border: 1px solid var(--mk-line, #dfe4ec);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.dm-faq-summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mk-ink, #0e1b2a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.dm-faq-summary::-webkit-details-marker {
  display: none;
}

.dm-faq-content {
  padding: 0 20px 18px;
  color: var(--mk-ink-soft, #3b4758);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dm-search-box {
    flex-direction: column;
    padding: 12px;
    border-radius: 14px;
    align-items: stretch;
  }
  .dm-search-input {
    padding: 6px 0;
    text-align: center;
  }
  .dm-search-icon {
    display: none;
  }
  .dm-search-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .dm-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .dm-row-action {
    text-align: left;
  }
  .dm-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .dm-hero-pricing {
    align-items: flex-start;
    text-align: left;
  }
}

/* --- Help & WhatsApp Section --- */
.dm-help-wrap {
  margin: 40px 0 20px;
}

.dm-help-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 1px 3px rgba(11, 31, 68, 0.04);
}

.dm-help-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.dm-help-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dm-help-text {
  flex: 1;
}

.dm-help-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mk-ink, #0e1b2a);
  margin: 0 0 6px;
  line-height: 1.3;
}

.dm-help-lead {
  font-size: 0.92rem;
  color: var(--mk-ink-soft, #3b4758);
  margin: 0;
  line-height: 1.5;
}

.dm-help-actions {
  flex-shrink: 0;
}

.dm-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.dm-btn-wa:hover {
  background: #20ba5a;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.dm-btn-wa:active {
  transform: scale(0.98);
}

.dm-btn-help-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #15803d;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.dm-btn-help-sm:hover {
  background: #166534;
}

@media (max-width: 768px) {
  .dm-help-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .dm-help-actions {
    margin-top: 8px;
  }
  .dm-btn-wa {
    justify-content: center;
    width: 100%;
  }
}

.dm-price-usd { font-size: 0.9rem; font-weight: 400; color: #64748b; }
