/* AI domain generator — CSS-only art, no PNG */
.ai-page {
  --ai-blue: #3b6dff;
  --ai-blue-dark: #2b58e0;
  --ai-ink: #0f172a;
  --ai-muted: #64748b;
  position: relative;
  padding: 8px 0 48px;
  overflow: visible;
  background: transparent;
}
.ai-page:before { display: none; }
.ai-page .container.inner { position: relative; z-index: 1; }
.ai-page .ovh-domain-hero { margin-bottom: 18px; }
.ai-page .ovh-domain-hero-copy { max-width: none; }
.ai-page .ai-hero {
  max-width: none;
  margin: 0;
  text-align: start;
}
.ai-page .ai-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 750;
  letter-spacing: -.03em;
  color: var(--brand-secondary, #386870);
  line-height: 1.15;
}
.ai-page .ai-hero > p {
  margin: 0 0 22px;
  max-width: 520px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}
.ai-orbs { display: none; }
.ai-bar-wrap { display: block; justify-content: stretch; }
.ai-bar {
  width: 100%;
  max-width: none;
}
.ai-spark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 12px;
}
.ai-spark-mark .ai-spark-icon { width: 42px; height: 42px; }
.ai-spark-icon { display: inline-block; overflow: visible; object-fit: contain; background: transparent; }
.ai-bar-wrap {
  display: block;
}
.ai-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
  border: 1px solid #e6edf0;
}
[dir="rtl"] .ai-bar { padding: 8px 22px 8px 8px; }
.ai-bar input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  height: 48px;
  font-size: 15px;
  background: transparent !important;
  color: var(--ai-ink);
}
.ai-bar input::placeholder { color: #94a3b8; }
.ai-adv, .ai-go {
  appearance: none;
  border: 0;
  border-radius: 14px;
  height: 46px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.ai-adv {
  background: #eef2f7;
  color: #334155;
}
.ai-adv:hover { background: #e2e8f0; }
.ai-go {
  background: var(--ai-blue);
  color: #fff;
  min-width: 118px;
  box-shadow: 0 10px 22px rgba(59,109,255,.28);
}
.ai-go:hover { background: var(--ai-blue-dark); }
.ai-go[disabled] { opacity: .65; cursor: wait; }
.ai-transfer-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none !important;
}
.ai-transfer-hint span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ai-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.ai-results {
  max-width: 880px;
  margin: 28px auto 0;
}
.ai-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.ai-results-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ai-ink); }
.ai-results-head p { margin: 0; color: var(--ai-muted); font-size: 13px; }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ai-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: start;
}
.ai-card strong { display: block; font-size: 15px; color: var(--ai-ink); }
.ai-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
  color: #4d7c0f;
  background: #eef6e4;
  border-radius: 999px;
  padding: 2px 8px;
}
.ai-card.is-taken em { color: #b42318; background: #fde8e8; }
.ai-card button {
  appearance: none;
  border: 0;
  background: var(--ai-blue);
  color: #fff;
  border-radius: 10px;
  height: 36px;
  padding: 0 14px;
  font-weight: 750;
  cursor: pointer;
}
.ai-card button[disabled] { background: #cbd5e1; cursor: not-allowed; }
.ai-card.is-extra { display: none; }
.ai-results.is-expanded .ai-card.is-extra { display: flex; }
.ai-more-wrap {
  text-align: center;
  margin-top: 14px;
}
.ai-more {
  appearance: none;
  border: 1px solid #d7dee6;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  height: 40px;
  padding: 0 20px;
  font-weight: 750;
  cursor: pointer;
}
.ai-more:hover { border-color: #3b6dff; color: #3b6dff; }
.ai-empty, .ai-status {
  text-align: center;
  color: var(--ai-muted);
  padding: 18px;
}
.ai-status:empty { display: none; padding: 0; }
.ai-loader {
  display: none;
  text-align: center;
  padding: 28px 16px 8px;
}
.ai-loader.is-on,
.ai-loader:not([hidden]) {
  display: block;
}
.ai-loader[hidden] { display: none !important; }
.ai-loader-orbit {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}
.ai-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(var(--brand-primary-rgb, 10, 134, 228), .16);
  border-top-color: var(--brand-primary, #0A86E4);
  animation: ai-spin .8s linear infinite;
}
.ai-loader-dot {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--brand-primary, #0A86E4);
  box-shadow: 0 0 0 6px rgba(var(--brand-primary-rgb, 10, 134, 228), .12);
  animation: ai-pulse 1.1s ease-in-out infinite;
}
.ai-loader-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-secondary, var(--ai-ink));
}
.ai-loader-sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ai-muted);
}
.ai-skel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
.ai-skel span {
  display: block;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 45%, #eef2f6 100%);
  background-size: 200% 100%;
  animation: ai-shimmer 1.2s ease-in-out infinite;
  border: 1px solid #e6edf0;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
@keyframes ai-pulse {
  0%, 100% { transform: scale(.72); opacity: .55; }
  50% { transform: scale(1); opacity: 1; }
}
@keyframes ai-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
[dir="rtl"] .ai-skel span { animation-name: ai-shimmer-rtl; }
@keyframes ai-shimmer-rtl {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}
@media (max-width: 640px) {
  .ai-skel { grid-template-columns: 1fr; }
}
.ai-modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ai-modal-back.is-open { display: flex; }
.ai-modal {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px 20px;
  box-shadow: 0 30px 70px rgba(15,23,42,.22);
  text-align: start;
}
.ai-modal h3 { margin: 0 0 18px; font-size: 26px; font-weight: 800; color: var(--ai-ink); }
.ai-field { margin-bottom: 16px; }
.ai-field label { display: block; font-weight: 750; margin-bottom: 8px; color: var(--ai-ink); }
.ai-field input[type="text"],
.ai-field input[type="number"] {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}
.ai-help { margin: 6px 0 0; color: #94a3b8; font-size: 12.5px; }
.ai-len { display: flex; gap: 10px; max-width: 220px; }
.ai-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}
.ai-tlds label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  color: #111827;
  cursor: pointer;
}
.ai-tlds input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #3b6dff;
  border-radius: 4px;
  flex: 0 0 16px;
}
.ai-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.ai-cancel {
  appearance: none; border: 0; background: transparent;
  color: var(--ai-blue); font-weight: 750; height: 42px; padding: 0 12px; cursor: pointer;
}
.ai-continue {
  appearance: none; border: 0; background: var(--ai-blue); color: #fff;
  border-radius: 10px; height: 42px; padding: 0 18px; font-weight: 750; cursor: pointer;
}
.ai-gen-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e3a5f !important;
  font-weight: 750;
  text-decoration: none !important;
  font-size: 14px;
  margin-top: 12px;
}
.ai-gen-link svg,
.ai-gen-link .ai-spark-icon,
.ovh-domain-tab .ai-spark-icon,
.ovh-nav-tabs .ai-spark-icon,
.ovh-kicker .ai-spark-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
@media (max-width: 720px) {
  .ai-bar { flex-wrap: wrap; border-radius: 18px; padding: 12px; }
  .ai-bar input[type="text"] { width: 100%; flex: 1 1 100%; height: 44px; }
  .ai-adv, .ai-go { flex: 1; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-tlds { gap: 10px 18px; }
}
