/* ============================================================
   ui.css — the public site's look (header, mega menu, footer,
   homepage sections), modelled on upweb.ir. Loaded after the older
   theme files on every public page, so its tokens win.
   ============================================================ */

:root {
  --bg: #f4f7fb;
  --text: #0b1b33;
  --text-soft: #24324a;
  --muted: #5b6b82;
  --border: #e2e8f1;
  --primary: #1560ff;
  --primary-h: #0f4ad1;
  --ux-ink: #0b1b33;
  --ux-primary: #1560ff;
  --ux-primary-dark: #0f4ad1;
  --ux-soft: #e8f0ff;
  --ux-hdr: #131b60;
  --ux-footer: #0c0834;
  --ux-radius: 16px;
  --ux-shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 12px 32px -12px rgba(11, 27, 51, .14);
  --ux-hdr-h: 76px;
}

body.ux { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
body.ux h1, body.ux h2, body.ux h3, body.ux h4, body.ux h5 { color: var(--ux-ink); }

/* ---------- Buttons ---------- */
.ux-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.ux-btn:hover { text-decoration: none; }
.ux-btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.ux-btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.ux-btn-primary { background: var(--ux-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 96, 255, .55); }
.ux-btn-primary:hover { background: var(--ux-primary-dark); color: #fff; }
.ux-btn-soft { background: var(--ux-soft); color: var(--ux-primary-dark); }
.ux-btn-soft:hover { background: var(--ux-primary); color: #fff; }
.ux-btn-light { background: #fff; color: var(--ux-hdr); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.ux-btn-light:hover { background: #e3e9ff; color: #101a99; }
.ux-btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.ux-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.ux-btn-outline { border-color: var(--border); color: var(--ux-ink); background: #fff; }
.ux-btn-outline:hover { border-color: var(--ux-primary); color: var(--ux-primary); }

/* ---------- Header ---------- */
.ux-header {
  position: sticky; top: 0; z-index: 1030; color: #fff;
  background: var(--ux-hdr); border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .25s ease;
}
.ux-header.is-scrolled { box-shadow: 0 12px 32px -16px rgba(3, 8, 32, .6); }
.ux-header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--ux-hdr-h); position: relative; }
.ux-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.ux-brand:hover { color: #fff; text-decoration: none; }
.ux-brand b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.ux-brand small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: 3px; }
.ux-nav { flex: 1; display: flex; align-items: center; }
.ux-nav-head, .ux-nav-login { display: none; }
.ux-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.ux-item { position: relative; display: flex; align-items: center; }
.ux-item > a, .ux-parent {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .88); font: inherit; font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.ux-parent .fa-chevron-down { font-size: .65rem; opacity: .7; transition: transform .2s; }
.ux-item > a:hover, .ux-parent:hover, .ux-item.is-active > a, .ux-item.is-active > .ux-parent { color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; }
.ux-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ux-login { background: #fff; color: var(--ux-hdr); }
.ux-login:hover { background: rgba(255, 255, 255, .88); color: var(--ux-hdr); }
.ux-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); text-decoration: none; }
.ux-cart:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.ux-cart b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #22c55e; color: #fff; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.ux-account { color: #fff !important; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.ux-account:hover { background: rgba(255, 255, 255, .16); }
.ux-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; align-items: center; justify-content: center; font-size: 1.1rem; }
.ux-close { background: none; border: 0; padding: 6px 10px; cursor: pointer; color: var(--ux-ink); font-size: 1.2rem; }
.ux-backdrop { position: fixed; inset: 0; background: rgba(11, 27, 51, .45); z-index: 1040; }

/* Mega menu panels */
.ux-mega {
  position: absolute; top: calc(100% + 8px); left: var(--ux-shift, 0px); transform: translateY(8px);
  display: flex; width: max-content; max-width: min(900px, calc(100vw - 32px));
  background: #fff; color: var(--ux-ink); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(11, 27, 51, .28), 0 2px 6px rgba(11, 27, 51, .05);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility 0s linear .18s; z-index: 5;
}
.ux-mega::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.ux-mega-items { list-style: none; margin: 0; padding: 14px; width: 310px; display: grid; gap: 2px; align-content: start; }
.ux-mega.is-wide .ux-mega-items { width: 600px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
.ux-mega-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ux-ink); text-decoration: none; transition: background .15s; }
.ux-mega-item:hover { background: #f3f7ff; color: var(--ux-ink); text-decoration: none; }
.ux-tile { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: var(--ux-primary); background: linear-gradient(145deg, #eef3ff, #dfe8ff); transition: transform .2s; }
.ux-tile.t-green { color: #16a34a; background: linear-gradient(145deg, #ecfdf3, #d7f7e4); }
.ux-tile.t-amber { color: #d97706; background: linear-gradient(145deg, #fff7e8, #ffeccc); }
.ux-tile.t-red { color: #dc2626; background: linear-gradient(145deg, #fff0f0, #ffdede); }
.ux-tile.t-violet { color: #7c3aed; background: linear-gradient(145deg, #f4efff, #e8dcff); }
.ux-tile.t-sky { color: #0284c7; background: linear-gradient(145deg, #eaf7ff, #d4efff); }
.ux-mega-item:hover .ux-tile { transform: translateY(-2px) rotate(-3deg); }
.ux-mega-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ux-mega-text b { font-weight: 700; font-size: .92rem; line-height: 1.4; }
.ux-mega-item:hover .ux-mega-text b { color: var(--ux-primary); }
.ux-mega-text small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.ux-mega-side { display: flex; flex-direction: column; width: 250px; padding: 20px; margin: 8px 8px 8px 0; border-radius: 14px; background: linear-gradient(160deg, #f5f8ff 0%, #eaf1ff 100%); border: 1px solid #e3ebfb; }
.ux-mega-side .ux-scene { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.ux-mega-side b { font-size: 1rem; font-weight: 800; color: var(--ux-ink); }
.ux-mega-side p { margin: 6px 0 14px; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.ux-mega-side .ux-btn { margin-top: auto; }

@media (min-width: 1101px) {
  .ux-item.has-children { position: relative; }
  .ux-item.has-children:hover > .ux-mega, .ux-item.has-children:focus-within > .ux-mega, .ux-item.has-children.is-open > .ux-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .ux-item.has-children:hover > .ux-parent { color: #fff; background: rgba(255, 255, 255, .12); }
  .ux-item.has-children:hover .fa-chevron-down { transform: rotate(180deg); }
  .ux-menu:hover > .has-children:not(:hover) > .ux-mega { opacity: 0; visibility: hidden; }
}
@media (max-width: 1100px) {
  .ux-toggle { display: inline-flex; }
  .ux-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1050; width: min(340px, 88vw);
    flex-direction: column; align-items: stretch; background: #fff; color: var(--ux-ink); padding: 16px; overflow-y: auto;
    transform: translateX(-105%); transition: transform .25s ease, visibility .25s; visibility: hidden;
  }
  .ux-nav.is-open { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(11, 27, 51, .25); }
  .ux-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 1.15rem; }
  .ux-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .ux-item { flex-wrap: wrap; }
  .ux-item > a, .ux-parent { flex: 1; padding: 12px; color: var(--ux-ink); justify-content: space-between; }
  .ux-item > a:hover, .ux-parent:hover { color: var(--ux-primary); background: var(--ux-soft); }
  .ux-mega { position: static; transform: none; width: 100%; max-width: none; display: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-left: 2px solid var(--ux-soft); border-radius: 0; margin: 0 0 8px 12px; transition: none; }
  .ux-item.is-open > .ux-mega { display: block; }
  .ux-item.is-open .fa-chevron-down { transform: rotate(180deg); }
  .ux-mega-items, .ux-mega.is-wide .ux-mega-items { width: auto; grid-template-columns: 1fr; padding: 4px 0; }
  .ux-mega-side { display: none; }
  .ux-tile { width: 38px; height: 38px; font-size: 1rem; }
  .ux-nav-login { display: flex; margin-top: 16px; }
}
@media (max-width: 640px) {
  :root { --ux-hdr-h: 64px; }
  .ux-header-inner { gap: 10px; }
  .ux-brand small { display: none; }
  .ux-actions .ux-login span { display: none; }
  .ux-actions .ux-login { width: 44px; padding: 0; }
}
body.ux-nav-open { overflow: hidden; }

/* ---------- Footer ---------- */
.ux-footer { background: var(--ux-footer); color: rgba(255, 255, 255, .72); font-size: .93rem; }
.ux-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.ux-footer a:hover { color: #fff; }
.ux-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 60px 0 40px; }
.ux-footer .ux-brand { margin-bottom: 14px; }
.ux-footer-text { line-height: 1.8; margin: 0; }
.ux-footer h5 { color: #fff; font-size: 1rem; margin: 0 0 14px; position: relative; padding-bottom: 10px; }
.ux-footer h5::after { content: ""; position: absolute; bottom: 0; left: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--ux-primary); }
.ux-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ux-support { margin-top: 18px; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ux-support strong { color: #fff; }
.ux-support p { margin: 4px 0 12px; font-size: .86rem; }
.ux-support .ux-btn-primary { color: #fff; }
.ux-social { display: flex; gap: 8px; margin-top: 18px; }
.ux-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.ux-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; }
.ux-footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .ux-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .ux-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Homepage sections ---------- */
.ux-section { padding: 76px 0; }
.ux-section.is-white { background: #fff; border-block: 1px solid var(--border); }
.ux-head { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.ux-title { font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.3; font-weight: 800; margin: 0 0 12px; color: var(--ux-ink); letter-spacing: -.02em; text-wrap: balance; }
.ux-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0; }
.ux-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ux-primary); background: rgba(21, 96, 255, .07); border: 1px solid rgba(21, 96, 255, .2); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }

/* Hero */
.ux-hero {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .84);
  background:
    radial-gradient(820px 480px at 88% 0%, rgba(110, 140, 255, .32), transparent 62%),
    radial-gradient(680px 460px at 15% 115%, rgba(94, 200, 255, .16), transparent 62%),
    linear-gradient(160deg, #0b1244 0%, #19237f 50%, #2d43b5 100%);
  padding: 64px 0 120px;
}
.ux-hero-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.ux-hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #dbe4ff; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.ux-hero-badge i { color: #4ade80; font-size: .55rem; }
.ux-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0; color: #fff; text-wrap: balance; }
.ux-hero h1 span { color: #a9c3ff; }
.ux-hero-lead { margin: 20px 0 0; max-width: 34em; font-size: 1.1rem; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.ux-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ux-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.ux-hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.ux-hero-facts i { color: #8fb0ff; }
.ux-hero-art { position: relative; max-width: 520px; margin-left: auto; width: 100%; }
.ux-hero-art::before { content: ""; position: absolute; inset: 14% 10%; z-index: 0; border-radius: 50%; background: rgba(110, 150, 255, .45); filter: blur(70px); }
.ux-hero-art svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(3, 7, 40, .45)); }
@media (max-width: 900px) {
  .ux-hero { padding: 40px 0 110px; }
  .ux-hero-wrap { grid-template-columns: 1fr; gap: 32px; }
  .ux-hero-art { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 520px) { .ux-hero-actions .ux-btn { flex: 1 1 100%; } }

/* Two paths overlapping the hero */
.ux-paths { position: relative; z-index: 2; margin-top: -70px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ux-path { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 20px 44px -24px rgba(11, 27, 51, .35); color: var(--ux-ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.ux-path:hover { transform: translateY(-3px); border-color: rgba(21, 96, 255, .35); color: var(--ux-ink); text-decoration: none; }
.ux-path b { display: block; font-size: 1.05rem; }
.ux-path small { color: var(--muted); font-size: .86rem; }
.ux-path .fa-arrow-right { margin-left: auto; color: var(--ux-primary); }
@media (max-width: 720px) { .ux-paths { grid-template-columns: 1fr; } }

/* Cards */
.ux-grid { display: grid; gap: 20px; }
.ux-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ux-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ux-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ux-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ux-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ux-grid-3, .ux-grid-4, .ux-grid-2 { grid-template-columns: 1fr; } }
.ux-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px 22px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--text); }
.ux-card:hover { transform: translateY(-4px); box-shadow: var(--ux-shadow); border-color: rgba(21, 96, 255, .25); }
.ux-card.is-featured { border: 2px solid var(--ux-primary); box-shadow: 0 18px 40px -20px rgba(21, 96, 255, .45); }
.ux-card-badge { position: absolute; top: 0; left: 22px; transform: translateY(-50%); background: linear-gradient(135deg, var(--ux-primary), var(--ux-primary-dark)); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.ux-card-head { display: flex; align-items: center; gap: 12px; }
.ux-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.ux-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0; }
.ux-checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; flex: 1; }
.ux-checks li { position: relative; padding-left: 26px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.ux-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ux-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231560ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.8 2.6L12 5.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ux-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .84rem; }
.ux-price strong { font-size: 1.5rem; font-weight: 900; color: var(--ux-ink); }
.ux-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ux-card-foot .ux-link { font-weight: 700; font-size: .88rem; text-decoration: none; }

/* Compact tiles (domains, maintenance…) */
.ux-mini { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; color: var(--ux-ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.ux-mini:hover { transform: translateY(-3px); border-color: rgba(21, 96, 255, .3); color: var(--ux-ink); text-decoration: none; }
.ux-mini b { display: block; font-size: .95rem; }
.ux-mini small { color: var(--muted); font-size: .8rem; }

/* Steps */
.ux-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.ux-step { position: relative; padding: 26px 20px 20px; border-radius: 18px; background: linear-gradient(180deg, #f2f7ff, #fff); border: 1px solid #e3ebfb; }
.ux-step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--ux-hdr); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.ux-step b { display: block; margin: 6px 0 4px; color: var(--ux-ink); }
.ux-step span { color: var(--muted); font-size: .88rem; line-height: 1.6; }
@media (max-width: 900px) { .ux-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .ux-steps { grid-template-columns: 1fr; } }

/* Feature tiles (why us) */
.ux-feature { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.ux-feature b { display: block; color: var(--ux-ink); margin-bottom: 2px; }
.ux-feature span { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* Which hosting is right */
.ux-pick { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; color: var(--text-soft); font-size: .93rem; text-decoration: none; }
.ux-pick:hover { border-color: rgba(21, 96, 255, .35); text-decoration: none; color: var(--text-soft); }
.ux-pick b { color: var(--ux-primary); white-space: nowrap; font-size: .9rem; }

/* Articles */
.ux-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--ux-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ux-post:hover { transform: translateY(-4px); box-shadow: var(--ux-shadow); color: var(--ux-ink); text-decoration: none; }
.ux-post-img { aspect-ratio: 1200 / 630; background: #e9eef8; overflow: hidden; }
.ux-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ux-post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.ux-post-body b { font-size: 1rem; line-height: 1.45; }
.ux-post-body small { color: var(--muted); font-size: .82rem; }
.ux-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ux-head-row .ux-title { margin: 0; }

/* FAQ */
.ux-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.ux-faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.ux-faq summary { list-style: none; cursor: pointer; padding: 17px 0; font-weight: 700; color: var(--ux-ink); display: flex; justify-content: space-between; gap: 12px; }
.ux-faq summary::-webkit-details-marker { display: none; }
.ux-faq summary::after { content: "+"; color: var(--ux-primary); font-size: 1.3rem; line-height: 1; }
.ux-faq details[open] summary::after { content: "−"; }
.ux-faq details p { color: var(--muted); margin: 0 0 18px; line-height: 1.7; }

/* Closing call to action */
.ux-cta { border-radius: 24px; padding: 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 90% 0%, rgba(110, 140, 255, .35), transparent 60%), linear-gradient(135deg, #0b1244, #2d43b5); }
.ux-cta h2 { color: #fff !important; margin: 0 0 6px; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ux-cta p { margin: 0; color: rgba(255, 255, 255, .8); }

/* Repair request form wrapper (the wizard keeps its own markup) */
.ux-form-wrap { max-width: 860px; margin: 0 auto; }

/* Older theme rules that would otherwise win */
body.ux .ux-hero h1 { color: #fff; }
body.ux .ux-footer h5 { color: #fff; }
body.ux #services .ux-grid#pricing { background: none; padding: 0; margin: 0; border: 0; }
body.ux section.ux-section { padding: 76px 0; }
body.ux section#contact.ux-section { padding-top: 0; }

/* ---------- Inner page header (lib/ui.php drxPageHero) ---------- */
.ux-phero {
  color: rgba(255, 255, 255, .84); padding: 44px 0 56px;
  background:
    radial-gradient(700px 380px at 88% 0%, rgba(110, 140, 255, .3), transparent 62%),
    linear-gradient(160deg, #0b1244 0%, #19237f 55%, #2d43b5 100%);
}
.ux-phero-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.ux-phero.has-side .ux-phero-wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); }
.ux-phero.is-center { text-align: center; }
.ux-phero.is-center .ux-phero-main { max-width: 820px; margin: 0 auto; }
.ux-phero.is-center .ux-hero-actions, .ux-phero.is-center .ux-hero-facts, .ux-phero.is-center .ux-crumbs { justify-content: center; }
body.ux .ux-phero h1 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.ux-phero-lead { margin: 16px 0 0; font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 44em; }
.ux-phero.is-center .ux-phero-lead { margin-left: auto; margin-right: auto; }
.ux-phero-lead code { color: #c7d6ff; background: rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 5px; }
.ux-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 18px; color: rgba(255, 255, 255, .6); }
.ux-crumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ux-crumbs a:hover { color: #fff; }
.ux-crumbs i { font-size: .55rem; opacity: .5; }
.ux-phero .ux-hero-actions { margin-top: 26px; }
.ux-phero .ux-hero-facts { margin-top: 22px; }
.ux-phero-card { background: #fff; color: var(--muted); border-radius: 20px; padding: 24px; box-shadow: 0 30px 70px -30px rgba(3, 7, 40, .7); }
.ux-phero-card .ux-price { border: 0; padding: 0; margin: 0 0 6px; }
.ux-phero-card .ux-price strong { font-size: 2.3rem; }
.ux-phero-card .ux-checks { margin: 12px 0 18px; }
.ux-phero-card .ux-btn { width: 100%; }
.ux-phero-card small { display: block; text-align: center; margin-top: 10px; font-size: .78rem; }
.ux-phero-card b.ux-phero-card-title { display: block; color: var(--ux-ink); font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 900px) { .ux-phero.has-side .ux-phero-wrap { grid-template-columns: 1fr; gap: 26px; } .ux-phero { padding: 32px 0 40px; } }
/* Old heroes replaced by the page header: their old wrappers sit flush under it. */
body.ux .ux-phero + section { padding-top: 48px; }

/* Legal pages: readable text on the light background */
body.ux .legal-wrap p, body.ux .legal-wrap li { color: var(--text-soft); }
body.ux .legal-wrap h2 { color: var(--ux-ink); }
/* Domain search page: its search hero in the navy style */
body.ux .ord-domain-hero { color: rgba(255, 255, 255, .84); padding: 52px 0 56px; background: radial-gradient(700px 380px at 88% 0%, rgba(110, 140, 255, .3), transparent 62%), linear-gradient(160deg, #0b1244 0%, #19237f 55%, #2d43b5 100%); }
body.ux .ord-domain-hero .section-title { color: #fff; }
body.ux .ord-domain-hero .section-sub { color: rgba(255, 255, 255, .82); }
body.ux .ord-domain-hero .section-sub b { color: #fff; }
body.ux .ord-domain-hero .section-chip { background: rgba(255, 255, 255, .1); color: #dbe4ff; border-color: rgba(255, 255, 255, .25); }
/* Blog post: the category/title now live in the page header */
body.ux .blog-post-cat { display: none; }
body.ux .ord-page:has(> .ord-domain-hero:first-child) { padding-top: 0; }
body.ux .ord-domain-hero + * { margin-top: 28px; }
body.ux .ord-domain-hero .ord-search .btn { white-space: nowrap; flex-direction: row; }
