*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0E0E0E;
  --surface: #1A1A1A;
  --surface-raised: #222222;
  --surface-hover: #2A2A2A;
  --ink: #FFFFFF;
  --text: #E8E8E8;
  --text-muted: #999999;
  --text-dim: #666666;
  --border: #333333;
  --border-strong: #444444;
  --red: #FF2D2D;
  --red-hover: #FF4D4D;
  --red-glow: rgba(255, 45, 45, 0.25);
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, 0.12);
  --yellow: #FACC15;
  --yellow-soft: rgba(250, 204, 21, 0.12);
  --radius: 4px;
  --border-w: 2px;
  --shadow-hard: 4px 4px 0px 0px rgba(255, 45, 45, 0.35);
  --shadow-hard-sm: 3px 3px 0px 0px rgba(255, 45, 45, 0.25);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.15s ease;
}

html { background: var(--bg); }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,45,45,0.015) 2px, rgba(255,45,45,0.015) 4px);
  pointer-events: none;
  z-index: 0;
}

/* ── Topbar ── */
.topbar {
  width: 100%;
  background: var(--surface);
  border-bottom: var(--border-w) solid var(--border);
  box-shadow: 0 4px 0 0 rgba(0,0,0,0.4);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: 0.15s ease;
  flex-shrink: 0;
}
.logo:hover { transform: translateY(-1px); }

.logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.15s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 30, 45, 0.35));
}
.logo:hover .logo-icon {
  filter: drop-shadow(0 4px 14px rgba(255, 45, 60, 0.65));
}
.logo-icon svg { width: 100%; height: 100%; display: block; }

.logo-text {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
}
.logo-text span { color: var(--red); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 28px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--surface);
}

.lang-btn {
  padding: 0 9px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition: var(--transition);
  line-height: 1;
}

.lang-btn.active {
  background: var(--red);
  color: var(--ink);
}

.lang-btn:not(.active):hover {
  background: var(--surface-hover);
  color: var(--text);
}

.back-btn,
.back-btn * {
  white-space: nowrap !important;
}

.back-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 10px !important;
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  transition: var(--transition) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.back-btn:hover {
  color: var(--ink) !important;
  border-color: var(--red) !important;
  background: var(--surface-hover) !important;
  box-shadow: 0 0 8px rgba(255, 45, 45, 0.2) !important;
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* ── Main Content ── */
main {
  width: 100%;
  max-width: 860px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-title em { font-style: normal; color: var(--red); }

.page-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Steps Card ── */
.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 2px 2px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ── Step 1: Visibility Selector Cards ── */
.domain-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 18px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
}

.type-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.type-card.active {
  border-color: var(--red);
  background: rgba(255, 45, 45, 0.05);
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.18), var(--shadow-hard-sm);
}

.type-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.type-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  flex-shrink: 0;
  transition: var(--transition);
}

.type-card.active .type-icon {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.type-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.type-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.type-badge-priv {
  background: rgba(255, 45, 45, 0.15);
  border: 1px solid rgba(255, 45, 45, 0.4);
  color: var(--red);
}

.type-badge-pub {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--green);
}

.type-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .domain-type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── Private Domain Features & Dashboard Perks ── */
.private-features-card {
  margin-top: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  animation: fadeIn 0.25s ease;
}

.private-features-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.private-features-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 45, 45, 0.12);
  border: 1px solid rgba(255, 45, 45, 0.3);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.private-features-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.private-features-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(255, 45, 45, 0.4);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 45, 45, 0.08);
  border: 1px solid rgba(255, 45, 45, 0.25);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 3px;
  font-family: var(--font-mono);
}

.feature-text p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.private-features-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.private-features-footer-note {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .private-features-header {
    flex-direction: column;
    gap: 8px;
  }
  .private-features-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .private-features-footer a.btn-verify {
    text-align: center;
    justify-content: center;
  }
}

/* ── DNS Table (Fixed Static, No Scrollbars) ── */
.table-responsive {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.table-responsive::-webkit-scrollbar {
  display: none;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11.5px;
  table-layout: fixed;
}

.dns-table th:nth-child(1) { width: 14%; }
.dns-table th:nth-child(2) { width: 16%; }
.dns-table th:nth-child(3) { width: 43%; }
.dns-table th:nth-child(4) { width: 8%; text-align: center; }
.dns-table th:nth-child(5) { width: 19%; text-align: center; }

.dns-table th {
  background: var(--bg);
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 6px;
  text-align: left;
  border: 1px solid var(--border);
}

.dns-table td {
  padding: 8px 6px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-raised);
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dns-table td:nth-child(4) {
  text-align: center;
}

.dns-table td:nth-child(5) {
  text-align: center;
}

.dns-table td.value {
  color: var(--green);
  font-weight: 700;
}

.dns-val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.txt-val-highlight {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10.5px;
  word-break: break-all;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.host-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: normal;
}

.priority-none {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
}

.badge-status-req {
  background: rgba(255, 45, 45, 0.15);
  border: 1px solid rgba(255, 45, 45, 0.35);
  color: var(--red);
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: 0.4px;
  display: inline-block;
  white-space: nowrap;
}

.badge-status-opt {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--yellow);
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: 0.4px;
  display: inline-block;
  white-space: nowrap;
}

.badge-status-subdomain {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60A5FA;
  font-weight: 700;
  padding: 2.5px 5px;
  border-radius: var(--radius-sm);
  font-size: 9.5px;
  letter-spacing: 0.2px;
  display: inline-block;
  white-space: nowrap;
}

.btn-copy-inline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 3px;
  flex-shrink: 0;
}
.btn-copy-inline:hover {
  color: var(--ink);
  border-color: var(--red);
  background: rgba(255, 45, 45, 0.15);
}

/* ── Generator Token Card ── */
.token-gen-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}

.token-gen-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.token-gen-title svg { color: var(--red); }

.token-gen-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.generator-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.gen-field {
  display: flex;
  flex-direction: column;
}

.gen-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.gen-input-field {
  width: 100%;
  height: 40px;
  font-size: 13px;
}

.generator-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  user-select: none;
  flex: 1;
  min-width: 240px;
}

.checkbox-container input[type="checkbox"] {
  accent-color: var(--red);
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label-text {
  display: inline;
}

.checkbox-hint {
  display: inline-block;
  color: var(--text-muted);
  font-size: 12px;
}

.btn-generate-token {
  padding: 10px 18px;
  font-size: 12px;
  white-space: nowrap;
}

/* ── Token Result Box (Sleek Modern Card) ── */
.token-result-card {
  margin-top: 16px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 45, 45, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 4px 18px rgba(255, 45, 45, 0.12);
  animation: paneFadeIn 0.25s ease-out;
}

.token-result-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.token-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
}

.token-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-wrap: wrap;
}

.token-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.token-meta-tag .lbl { color: var(--text-dim); font-size: 11px; }
.token-meta-tag .val-txt { color: var(--red); font-weight: 700; }
.token-meta-tag .val-host { color: var(--ink); font-weight: 700; }

.token-value-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.token-value-row .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.token-code-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.token-code-container code {
  color: var(--yellow);
  word-break: break-all;
  line-height: 1.4;
  flex: 1;
  font-weight: 700;
}

.btn-copy-token {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: var(--ink);
  border: none;
  border-radius: 3px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-hard-sm);
}
.btn-copy-token:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}
.btn-copy-token:active {
  transform: translateY(1px);
}

.token-result-footer {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.token-result-footer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

/* ── Verify Section ── */
.verify-section {
  margin-top: 16px;
}

.verify-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.verify-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.verify-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.verify-input::placeholder { color: var(--text-dim); }

.btn-verify {
  padding: 12px 20px;
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(255, 45, 61, 0.28);
  white-space: nowrap;
}

.btn-verify:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 0 16px var(--red-glow);
  transform: translateY(-1px);
}

.btn-verify:active {
  transform: translateY(0);
  box-shadow: none;
}

.verify-result {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: var(--border-w) solid transparent;
}

.verify-result.visible { display: flex; align-items: center; gap: 8px; }

.verify-result.success {
  background: var(--green-soft);
  border-color: rgba(34,197,94,0.3);
  color: var(--green);
}

.verify-result.error {
  background: rgba(255,45,45,0.1);
  border-color: rgba(255,45,45,0.3);
  color: var(--red);
}

.verify-result.loading {
  background: var(--yellow-soft);
  border-color: rgba(250,204,21,0.3);
  color: var(--yellow);
}

/* ── Info Box ── */
.info-box {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 12px;
}

.info-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-box strong {
  color: var(--ink);
}

/* ── Step 3 Guidelines ── */
.step3-guidelines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.step3-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition);
}

.step3-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.step3-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 1px;
}

.step3-icon-pub {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.step3-icon-priv {
  color: var(--red);
  border-color: rgba(255, 45, 45, 0.25);
  background: rgba(255, 45, 45, 0.08);
}

.step3-content {
  flex: 1;
}

.step3-title {
  font-size: 13.5px;
  margin-bottom: 3px;
}

.step3-title-pub strong {
  color: var(--green);
}

.step3-title-priv strong {
  color: var(--red);
}

.step3-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

/* ── Footer ── */
.site-footer {
  margin-top: 48px;
  text-align: center;
  padding: 28px 16px 36px;
  border-top: var(--border-w, 2px) solid var(--border);
  width: 100%;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.footer-links .dot {
  color: var(--text-dim);
  font-size: 8px;
  user-select: none;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── Responsive Rules ── */
@media (max-width: 640px) {
  .topbar {
    padding: 0 10px;
    height: 56px;
  }
  .topbar-inner {
    gap: 6px;
  }
  .logo {
    gap: 8px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  .logo-text {
    font-size: 17px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .back-btn {
    padding: 0 8px !important;
    height: 26px !important;
    line-height: 26px !important;
    font-size: 10px !important;
    letter-spacing: 0.2px !important;
    box-shadow: none !important;
  }
  .lang-group {
    height: 26px !important;
  }
  .lang-btn {
    padding: 0 6px;
    font-size: 9.5px;
  }

  main {
    padding: 24px 14px 40px;
  }
  .page-title {
    font-size: 24px;
  }
  .page-sub {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .card {
    padding: 20px 16px;
    margin-bottom: 16px;
  }
  .card::after {
    left: 16px;
    right: 16px;
  }
  .step-title {
    font-size: 18px;
  }

  /* DNS Record Mobile Card Transformation */
  .dns-table, .dns-table thead, .dns-table tbody, .dns-table th, .dns-table td, .dns-table tr {
    display: block;
  }
  .dns-table thead {
    display: none;
  }
  .dns-table tr {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  }
  .dns-table tr.dns-row-mx {
    border-left: 4px solid var(--red);
  }
  .dns-table tr.dns-row-txt {
    border-left: 4px solid var(--yellow);
  }
  .dns-table td {
    border: none;
    background: transparent;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .dns-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .dns-table td[data-label="Tipe"] {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }
  .dns-table td[data-label="Tipe"] strong {
    font-size: 16px;
    color: var(--ink);
  }
  .dns-table td[data-label="Status"] {
    margin-top: 4px;
  }
  .dns-table td.value {
    width: 100%;
    margin: 4px 0 6px;
  }
  .dns-val-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
    font-size: 12px;
  }

  /* Generator Grid */
  .generator-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .generator-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .checkbox-container {
    min-width: unset;
    width: 100%;
  }
  .btn-generate-token {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    text-align: center;
  }

  /* Verification step row */
  .verify-input-row {
    flex-direction: column;
  }
  .btn-verify {
    width: 100%;
    text-align: center;
  }

  /* Responsive Footer */
  .site-footer {
    padding: 24px 12px 30px;
    margin-top: 36px;
  }
  .footer-links {
    gap: 6px 8px;
    margin-bottom: 10px;
  }
  .footer-links a {
    font-size: 10.5px;
  }
  .footer-copy {
    font-size: 10.5px;
  }
}

@media (max-width: 440px) {
  .topbar { padding: 0 8px; }
  .topbar-actions { gap: 4px; }
  .back-btn { padding: 0 6px !important; height: 25px !important; line-height: 25px !important; font-size: 9.5px !important; white-space: nowrap !important; box-shadow: none !important; }
  .lang-group { height: 25px !important; }
  .lang-btn { padding: 0 5px; font-size: 9px; white-space: nowrap !important; }
}

@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 0.8s linear infinite; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Wildcard Subdomain Tutorial Card ── */
.wildcard-tutorial-card {
  background: var(--surface-raised);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.wildcard-tutorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #60A5FA, #22C55E);
}

.wildcard-tutorial-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.wildcard-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.wildcard-status-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.wildcard-tutorial-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.wildcard-tutorial-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.wildcard-tutorial-desc code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  color: #93C5FD;
  font-size: 12px;
}

/* Alert Box */
.wildcard-alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 3px solid #EF4444;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.wildcard-alert-icon {
  color: #EF4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.wildcard-alert-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: #FCA5A5;
}

.wildcard-alert-text strong {
  display: block;
  font-size: 13px;
  color: #FEE2E2;
  margin-bottom: 4px;
}

.wildcard-alert-text p {
  color: #F87171;
  margin: 0;
}

.wildcard-alert-text code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: #FECACA;
}

/* Steps container */
.wildcard-steps-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wildcard-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.wildcard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3B82F6;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.wildcard-step-body {
  flex: 1;
  min-width: 0;
}

.wildcard-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.wildcard-step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.wildcard-step-desc a {
  color: #60A5FA;
  font-weight: 600;
  text-decoration: underline;
}

/* Records Grid */
.wildcard-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.wildcard-record-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.w-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.w-rec-type {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-type-mx {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-type-a {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.w-rec-badge-req {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.w-rec-badge-opt {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(250, 204, 21, 0.12);
  color: #FDE047;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.w-rec-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.w-rec-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
}

.w-rec-lbl {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.w-rec-val-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w-rec-val-box code, .w-rec-field code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 11.5px;
}

.proxy-tag-grey {
  font-size: 10.5px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Mini mode explanation */
.wildcard-modes-expl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.w-mode-mini {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.w-mode-name {
  color: var(--ink);
  margin-right: 4px;
}

.bullet-green { color: #22C55E; margin-right: 2px; }
.bullet-blue { color: #3B82F6; margin-right: 2px; }


