/* Titan Moto M10 Ultra V3 — CSS field của CMS Auto365 */
.m10-page {
  --m10-primary: #591772;
  --m10-accent: #d9008f;
  --m10-accent-soft: #9b57b2;
  --m10-ink: #18131c;
  --m10-muted: #6e6772;
  --m10-line: #e8e3ea;
  --m10-soft: #f7f5f8;
  --m10-deep: #170a21;
  --m10-radius-sm: 10px;
  --m10-radius-md: 14px;
  --m10-shadow: 0 14px 30px rgba(20, 9, 28, 0.12);

  width: 100%;
  margin: 0 auto;
  color: var(--m10-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.m10-page,
.m10-page * {
  box-sizing: border-box;
}

.m10-page section,
.m10-page aside,
.m10-page footer {
  width: 100%;
}

.m10-page section {
  margin: 30px 0;
}

.m10-page h2,
.m10-page h3,
.m10-page strong,
.m10-page b {
  font-weight: 600;
}

.m10-page h2 {
  margin: 30px 0 12px;
  color: #2b1a31;
  font-size: clamp(23px, 2.5vw, 28px);
  line-height: 1.32;
}

.m10-page h3 {
  margin: 20px 0 8px;
  font-size: 21px;
  line-height: 1.4;
}

.m10-page p {
  margin: 0 0 10px;
}

.m10-page ul,
.m10-page ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.m10-page li + li {
  margin-top: 7px;
}

.m10-page a {
  color: var(--m10-primary);
  text-underline-offset: 3px;
}

.m10-page img {
  max-width: 100%;
}

.m10-page .note {
  color: var(--m10-muted);
  font-size: 14px;
}

/* Quick answer */
.m10-page .quick {
  margin-top: 0;
  padding: 18px 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--m10-deep), #351044);
}

.m10-page .quick h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.m10-page .quick p {
  margin: 0;
  color: #fff;
}

.m10-page .quick a {
  color: #fff;
  font-weight: 600;
}

/* YouTube video */
.m10-page .product-teaser-video {
  margin: 0 0 30px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--m10-line);
  border-radius: var(--m10-radius-md);
  background: #fff;
}

.m10-page .product-teaser-video h2 {
  margin: 0 0 6px;
}

.m10-page .product-teaser-video__description {
  margin: 0 0 16px;
  color: var(--m10-muted);
}

.m10-page .product-teaser-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--m10-radius-sm);
  background: var(--m10-deep);
}

/* Specificity cao hơn rule iframe global của CMS. */
.m10-page .product-teaser-video__frame .product-teaser-video__iframe {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  border: 0;
  visibility: visible;
  opacity: 1;
}

/* Survey CTA */
.m10-page .survey-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 24px;
  padding: 16px 18px;
  border: 1px solid #e3d5e7;
  border-radius: 12px;
  background: #fbf8fc;
}

.m10-page .survey-cta strong {
  display: block;
  color: var(--m10-primary);
  font-size: 17px;
}

.m10-page .survey-cta p {
  margin: 3px 0 0;
  color: var(--m10-muted);
  font-size: 14px;
}

.m10-page .survey-cta-actions {
  flex: 0 0 215px;
  display: grid;
  gap: 8px;
}

.m10-page .survey-cta-actions a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #7b2b8f;
  border-radius: 9px;
  color: var(--m10-primary) !important;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.m10-page .survey-cta-actions a:first-child {
  border-color: transparent;
  color: #fff !important;
  background: linear-gradient(135deg, var(--m10-primary), var(--m10-accent));
}

/* Feature cards */
.m10-page .feature-showcase {
  margin: 24px 0;
}

.m10-page .feature-showcase > h2 {
  margin-bottom: 14px;
}

.m10-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.m10-page .feature-card {
  overflow: hidden;
  border-radius: var(--m10-radius-md);
  color: #fff;
  background: #150b1e;
  box-shadow: var(--m10-shadow);
}

.m10-page .feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.m10-page .feature-card > div {
  padding: 12px 14px;
}

.m10-page .feature-card h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 16px;
}

.m10-page .feature-card p {
  margin: 0;
  color: #d8ccdc;
  font-size: 13px;
}

.m10-page .feature-source {
  margin: 10px 0 0;
  color: var(--m10-muted);
  font-size: 12px;
  text-align: center;
}

/* Tables */
.m10-page .table-wrap {
  width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.m10-page table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.m10-page th,
.m10-page td {
  padding: 9px 10px;
  border: 1px solid var(--m10-line);
  text-align: left;
  vertical-align: top;
}

.m10-page th {
  color: #fff;
  background: #24122d;
  font-size: 14px;
}

.m10-page tbody tr:nth-child(even) td {
  background: #fefcff;
}

.m10-page #thong-so table {
  min-width: 560px;
}

/* Content blocks */
.m10-page .callout,
.m10-page .source,
.m10-page .contact {
  border-radius: var(--m10-radius-md);
}

.m10-page .callout {
  padding: 18px 20px;
  border-left: 4px solid #7b2b8f;
  background: #faf8fb;
}

.m10-page .callout h2 {
  margin-top: 0;
}

.m10-page .cta {
  padding: 18px 22px;
  border-radius: var(--m10-radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--m10-deep), var(--m10-primary) 68%, #9f196f);
}

.m10-page .cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 25px;
}

.m10-page .cta p {
  margin-bottom: 10px;
}

.m10-page .button,
.m10-page .button-outline {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.m10-page .button {
  margin-top: 6px;
  border: 0;
  color: #fff !important;
  background: linear-gradient(135deg, var(--m10-primary), var(--m10-accent));
  box-shadow: 0 10px 24px rgba(89, 23, 114, 0.18);
}

.m10-page .button-outline {
  margin: 6px 0 0 8px;
  border: 1px solid var(--m10-accent-soft);
  color: var(--m10-primary) !important;
  background: #fff;
}

/* Vehicle application */
.m10-page .vehicle-journeys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.m10-page .vehicle-journey {
  padding: 14px;
  border: 1px solid var(--m10-line);
  border-radius: 12px;
  background: #fefcff;
  scroll-margin-top: 62px;
}

.m10-page .vehicle-journey strong {
  display: block;
  color: var(--m10-primary);
}

.m10-page .vehicle-journey p {
  margin: 4px 0 0;
  font-size: 14px;
}

.m10-page .vehicle-tabs {
  display: none;
}

.m10-page .vehicle-panel[hidden] {
  display: none !important;
}

/* Figures */
.m10-page figure {
  max-width: 760px;
  margin: 22px auto;
}

.m10-page figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--m10-radius-md);
}

.m10-page figcaption {
  margin-top: 7px;
  color: var(--m10-muted);
  font-size: 13px;
  text-align: center;
}

.m10-page .application-visual {
  width: 100%;
}

.m10-page .visual-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px auto;
}

.m10-page .visual-pair figure {
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: var(--m10-radius-md);
  background: #12091d;
}

.m10-page .visual-pair img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  object-fit: cover;
}

.m10-page .visual-pair figcaption {
  margin: 0;
  padding: 10px 12px;
  color: #f5edf7;
  background: #12091d;
  text-align: left;
}

/* Technical details */
.m10-page #ky-thuat {
  padding: 24px 26px;
  border: 1px solid var(--m10-line);
  border-radius: var(--m10-radius-md);
  background: #fff;
}

.m10-page #ky-thuat > h2 {
  margin-top: 0;
}

.m10-page #ky-thuat details {
  margin: 10px 0;
  padding: 0;
  border: 1px solid var(--m10-line);
  border-radius: 11px;
  background: #fff;
}

.m10-page #ky-thuat summary {
  padding: 14px 16px;
  color: var(--m10-ink);
  cursor: pointer;
  font-weight: 600;
}

.m10-page #ky-thuat details[open] summary {
  border-bottom: 1px solid var(--m10-line);
  color: var(--m10-primary);
}

.m10-page #ky-thuat .detail-body {
  padding: 16px 18px 4px;
}

.m10-page #ky-thuat .detail-body p {
  margin-bottom: 10px;
}

.m10-page #ky-thuat figure {
  margin: 16px auto;
}

/* Process */
.m10-page .process {
  margin: 34px 0;
  padding: 26px;
  border: 1px solid var(--m10-line);
  border-radius: var(--m10-radius-md);
  background: #fff;
}

.m10-page .process > h2 {
  margin-top: 0;
}

.m10-page .steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.m10-page .step {
  position: relative;
  font-size: 13px;
  text-align: center;
}

.m10-page .step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: 0 auto 9px;
  border-radius: 50%;
  color: #fff;
  background: #691d7d;
  font-style: normal;
  font-weight: 800;
}

.m10-page .step b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.m10-page .step span {
  display: block;
  margin-top: 5px;
  color: var(--m10-muted);
  font-size: 12px;
  line-height: 1.4;
}

.m10-page .check-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid #e3d5e7;
  border-radius: var(--m10-radius-md);
  background: #fbf8fc;
}

.m10-page .check-cta p {
  margin: 0;
}

.m10-page .check-cta strong {
  display: block;
  color: var(--m10-primary);
}

/* FAQ */
.m10-page #faq details {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e5e2e6;
}

.m10-page #faq summary {
  padding: 11px 0;
  color: #171318;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.m10-page #faq details p {
  margin: 0 0 12px;
  padding: 0;
  color: #373139;
}

/* Contact and source */
.m10-page .contact {
  padding: 20px;
  border: 1px solid var(--m10-line);
  background: var(--m10-soft);
}

.m10-page .contact h2 {
  margin-top: 0;
}

.m10-page .contact p {
  margin: 4px 0;
}

.m10-page .source {
  margin: 28px 0 18px;
  padding: 14px 18px;
  color: var(--m10-muted);
  background: var(--m10-soft);
  font-size: 14px;
}

.m10-page .source + .source {
  margin-top: 14px;
}

.m10-page .source a {
  color: var(--m10-primary);
  font-weight: 600;
}

.m10-page .mobile-quick-cta {
  display: none;
}

/* Progressive reveal: nội dung vẫn hiện khi JS bị tắt. */
.m10-page.is-enhanced .m10-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.m10-page.is-enhanced .m10-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.m10-page .feature-card,
.m10-page .product-teaser-video,
.m10-page .application-visual {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .m10-page .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px rgba(20, 9, 28, 0.2);
  }

  .m10-page .product-teaser-video:hover,
  .m10-page .application-visual:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(34, 12, 46, 0.14);
  }
}

@media (max-width: 767px) {
  .m10-page {
    padding: 0 14px 72px;
    font-size: 15px;
    line-height: 1.6;
  }

  .m10-page section {
    margin: 22px 0;
  }

  .m10-page h2 {
    margin: 24px 0 10px;
    font-size: 23px;
    line-height: 1.35;
  }

  .m10-page .quick,
  .m10-page .callout,
  .m10-page .cta,
  .m10-page #ky-thuat,
  .m10-page .process {
    padding: 16px;
  }

  .m10-page .product-teaser-video {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 12px;
  }

  .m10-page .product-teaser-video h2 {
    font-size: 21px;
  }

  .m10-page .product-teaser-video__description {
    font-size: 14px;
  }

  .m10-page .survey-cta {
    display: block;
    padding: 15px;
  }

  .m10-page .survey-cta-actions {
    width: 100%;
    margin-top: 12px;
  }

  .m10-page .feature-grid,
  .m10-page .visual-pair,
  .m10-page .steps {
    display: flex;
    gap: 12px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 3px 14px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .m10-page .feature-grid .feature-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .m10-page .visual-pair figure {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .m10-page .steps .step {
    flex: 0 0 82%;
    min-height: 156px;
    padding: 16px;
    border: 1px solid var(--m10-line);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    scroll-snap-align: start;
  }

  .m10-page .steps .step-number {
    margin: 0 0 10px;
  }

  .m10-page .vehicle-journeys {
    grid-template-columns: 1fr;
  }

  .m10-page #ung-dung .table-wrap,
  .m10-page #ung-dung .application-legal-note {
    display: none;
  }

  .m10-page .vehicle-tabs {
    display: block;
    margin: 14px 0 4px;
  }

  .m10-page .vehicle-tab-list {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }

  .m10-page .vehicle-tab {
    flex: 1;
    min-height: 42px;
    padding: 10px;
    border: 1px solid var(--m10-line);
    border-radius: 9px;
    color: #3d3143;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .m10-page .vehicle-tab[aria-selected="true"] {
    border-color: var(--m10-primary);
    color: #fff;
    background: var(--m10-primary);
  }

  .m10-page .vehicle-tab:focus-visible {
    outline: 3px solid rgba(89, 23, 114, 0.25);
    outline-offset: 2px;
  }

  .m10-page .vehicle-panel {
    padding: 15px;
    border: 1px solid var(--m10-line);
    border-radius: 12px;
    background: #fff;
  }

  .m10-page .vehicle-panel p {
    margin: 0 0 8px;
  }

  .m10-page .vehicle-panel p:last-child {
    margin-bottom: 0;
  }

  .m10-page .table-wrap {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px;
  }

  .m10-page table,
  .m10-page #thong-so table {
    min-width: 580px;
  }

  .m10-page th,
  .m10-page td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .m10-page .application-visual {
    margin: 20px 0;
    overflow: hidden;
  }

  .m10-page .application-visual figcaption {
    padding: 0;
    font-size: 12px;
    text-align: left;
  }

  .m10-page .check-cta {
    display: block;
  }

  .m10-page .button-outline {
    margin-left: 0;
  }

  .m10-page .source {
    margin: 26px 0 18px;
    padding: 14px 16px;
    font-size: 13px;
  }

  .m10-page .mobile-quick-cta {
    position: fixed;
    z-index: 25;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff !important;
    background: var(--m10-primary);
    box-shadow: 0 8px 24px rgba(20, 8, 30, 0.25);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m10-page,
  .m10-page * {
    scroll-behavior: auto !important;
  }

  .m10-page.is-enhanced .m10-reveal,
  .m10-page .feature-card,
  .m10-page .product-teaser-video,
  .m10-page .application-visual {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
