/* Layout overrides — preserve original clone appearance inside WordPress */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  overflow-x: hidden;
}

body.u888-desktop {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}

body.u888-mobile {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  background: #202020;
  color: #fff;
}

.u888-clone-root {
  width: 100%;
  min-height: 100vh;
}

a.u888-link-disabled {
  cursor: default;
  pointer-events: auto;
}

/* Hide WordPress admin bar spacing on front */
body.admin-bar.u888-desktop { margin-top: 0 !important; }
body.admin-bar.u888-mobile { margin-top: 0 !important; }

/* Desktop: center content like original 1920 layout */
body.u888-desktop .u888-clone-root {
  max-width: 1920px;
  margin: 0 auto;
}

/* Mobile: full width */
body.u888-mobile .u888-clone-root {
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Suppress WP block library on clone pages */
body.u888-desktop .wp-block-group,
body.u888-mobile .wp-block-group { display: none; }

/* Marquee animation from original */
@keyframes marqueeAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.js-marquee-wrapper .js-marquee {
  animation: marqueeAnimation 60s linear infinite;
}

@keyframes movement-smooth {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Desktop slide banner — show first slide by default */
body.u888-desktop ._21-XRC5Q5hM4cmZRcMIELf > a:first-child {
  display: block !important;
}

body.u888-desktop ._21-XRC5Q5hM4cmZRcMIELf > a {
  display: none;
}

body.u888-desktop ._21-XRC5Q5hM4cmZRcMIELf > a.is-active {
  display: block !important;
}

/* WP content pages fallback */
.u888-wp-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Homepage intro + FAQ (WordPress editor content) */
.u888-home-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #141414;
  color: #e8e8e8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

body.u888-desktop #u888-clone-desktop .u888-home-content {
  max-width: 100%;
  margin: 0;
}

body.u888-desktop .u888-home-content {
  padding-bottom: 0;
}

body.u888-mobile .u888-home-content {
  margin-bottom: 0;
  padding-bottom: 12px;
}

.u888-home-content__inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.u888-intro {
  margin-bottom: 40px;
}

.u888-intro__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffb347;
  background: rgba(254, 58, 0, 0.12);
  border: 1px solid rgba(254, 58, 0, 0.35);
  border-radius: 999px;
}

.u888-intro__title,
.u888-faq__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.u888-intro__lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #c9c9c9;
  max-width: 820px;
}

.u888-intro__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.u888-intro__features li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(145deg, #1f1f1f 0%, #171717 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.u888-intro__icon {
  font-size: 22px;
  line-height: 1;
}

.u888-intro__features strong {
  font-size: 15px;
  color: #fff;
}

.u888-intro__features li > span:last-child {
  font-size: 13px;
  line-height: 1.5;
  color: #a8a8a8;
}

.u888-intro__note {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: #bdbdbd;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #fe3a00;
  border-radius: 0 8px 8px 0;
}

.u888-faq__subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #9a9a9a;
}

.u888-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.u888-faq__item {
  overflow: hidden;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.u888-faq__item[open] {
  border-color: rgba(254, 58, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(254, 58, 0, 0.12);
}

.u888-faq__item summary {
  position: relative;
  padding: 16px 44px 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.u888-faq__item summary::-webkit-details-marker {
  display: none;
}

.u888-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  color: #fe3a00;
  background: rgba(254, 58, 0, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.u888-faq__item[open] summary::after {
  content: "−";
}

.u888-faq__answer {
  padding: 0 18px 16px;
}

.u888-faq__answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #b5b5b5;
}

@media (max-width: 640px) {
  .u888-home-content__inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .u888-intro__features {
    grid-template-columns: 1fr;
  }
}

/* Footer menu from theme options / WP menus */
.u888-footer-menu {
  margin: 16px 0;
}

.u888-footer-menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.u888-footer-menu__list a {
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.u888-footer-menu__list a:hover {
  color: var(--u888-primary, #f40000);
}

body.u888-desktop .u888-footer-menu {
  padding: 0 24px;
}

/* WordPress header menu inherits clone nav styles via Walker classes */
body.u888-desktop ._4GFFQME3VxQOLaxRzBxeQ > ul > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body.u888-desktop ._4GFFQME3VxQOLaxRzBxeQ > ul > li > a:hover {
  text-decoration: none;
}

body.u888-mobile .footer .u888-wp-mobile-footer a {
  color: inherit;
  text-decoration: none;
}

/* SEO guide — visible text for text/HTML ratio */
.u888-seo-guide {
  margin: 0 0 36px;
}

.u888-seo-guide__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.u888-seo-guide__lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #c5c5c5;
  max-width: 900px;
}

.u888-seo-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.u888-seo-guide__card {
  padding: 18px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.u888-seo-guide__heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffb347;
  line-height: 1.35;
}

.u888-seo-guide__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #b0b0b0;
}

.u888-seo-guide__list {
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 1.75;
}

.u888-seo-guide__list li {
  margin-bottom: 8px;
}

.u888-seo-guide__list strong {
  color: #e8e8e8;
}

.u888-seo-guide__footer {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #a8a8a8;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #fe3a00;
  border-radius: 0 8px 8px 0;
}

.u888-seo-guide__footer a {
  color: #ffb347;
  text-decoration: underline;
}

.u888-seo-guide__footer a:hover {
  color: #fe3a00;
}
