/* ========================================
   SUNWIN Home Layout Enhance
   Palette LOCKED: gold on dark burgundy
   ======================================== */

:root {
  --sw-gold: #ffd56f;
  --sw-gold-soft: #ffe5b7;
  --sw-gold-bright: #ffdf79;
  --sw-border: rgba(255, 213, 111, 0.35);
  --sw-border-soft: rgba(255, 213, 111, 0.22);
  --sw-panel: linear-gradient(180deg, rgba(36, 9, 8, 0.95) 0%, rgba(20, 5, 4, 0.96) 100%);
  --sw-panel-solid: rgba(32, 4, 3, 0.88);
  --sw-bg: #150100;
  --sw-max: 1100px;
}

.cta-complete {
  position: relative;
  margin: 28px auto 24px;
  max-width: var(--sw-max);
  padding: 0 16px;
}

/* Prevent viewport locking that can clip homepage sections on some devices. */
body.home-page {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 213, 111, 0.08), transparent 55%),
    #0a0202;
}

body.home-page .main,
body.home-page .main-inner {
  min-height: auto !important;
}

html,
body,
button,
input,
textarea,
select,
a,
.title01,
.title02,
.footer-title,
.footer-list a,
.partner-name,
.phishing-title,
.cta-complete-card,
.cta-complete-card h3,
.cta-complete-card p,
.access-text,
.btn-signup button,
.contact-footer button,
.customer-service,
.customer-service p,
.customer-service h2,
.sw-site-nav,
.sw-article-card,
.sw-section-head {
  font-family: "SF Pro Display", sans-serif;
}

.footer-title,
.title01,
.title02,
.cta-complete-card h3,
.phishing-title {
  letter-spacing: 0;
}

.scan-title,
.platform-icon,
.platform-icon img,
.install-btn,
.install-btn button,
.install-btn .app-name,
.install-btn .app-name p,
.install-btn .install-text,
#noApp,
#noApp p,
#noApp .install-text,
.custom-pc .btn-web,
.register-btn button {
  font-family: "SF Pro Display", sans-serif;
}

.install-btn .app-name,
#noApp,
#noApp p,
#noApp .install-text {
  font-weight: 500;
  letter-spacing: 0;
}

/* ========== Sticky site nav ========== */
.sw-site-nav {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(18, 3, 3, 0.96) 0%, rgba(12, 2, 2, 0.92) 100%);
  border-bottom: 1px solid var(--sw-border-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sw-site-nav-inner {
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sw-site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.sw-site-nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sw-site-nav-brand span {
  color: var(--sw-gold);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.sw-site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-site-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sw-gold-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sw-site-nav-links a:hover {
  border-color: var(--sw-border);
  background: rgba(255, 213, 111, 0.08);
  color: #fff2cb;
  text-decoration: none;
}

.sw-site-nav-links a.is-cta {
  border-color: rgba(255, 213, 111, 0.45);
  background: linear-gradient(135deg, rgba(255, 213, 111, 0.22), rgba(255, 176, 0, 0.12));
  color: var(--sw-gold);
}

@media (max-width: 760px) {
  .sw-site-nav-brand span {
    display: none;
  }

  .sw-site-nav-links a {
    padding: 6px 9px;
    font-size: 12px;
  }

  .sw-site-nav-links a:nth-child(n + 5):not(.is-cta) {
    display: none;
  }
}

/* ========== Bottom content polish ========== */
body.home-page .bottom {
  padding: 8px 0 12px;
}

body.home-page .bottom-content {
  width: min(var(--sw-max), calc(100% - 2rem));
  margin: 2.2rem auto 0;
  display: grid;
  gap: 2.4rem;
}

body.home-page .title01 {
  margin: 0 0 0.6rem;
  text-align: center;
  color: var(--sw-gold);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.25;
}

body.home-page .title01 span {
  display: inline-block;
  position: relative;
}

body.home-page .title01 span::after {
  content: "";
  display: block;
  width: min(120px, 40%);
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--sw-gold), transparent);
}

body.home-page .bottom-content > p.box-ani,
body.home-page .sw-section-lead {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 229, 183, 0.92);
  font-size: 15px;
  line-height: 1.75;
}

body.home-page .advantage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.home-page .advantage > div {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--sw-border-soft);
  background: var(--sw-panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

body.home-page .advantage > div:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 111, 0.5);
}

body.home-page .advantage-title {
  color: var(--sw-gold);
  font-weight: 700;
  margin: 0 0 8px;
}

body.home-page .advantage > div > p:last-child {
  margin: 0;
  color: rgba(255, 229, 183, 0.9);
  font-size: 14px;
  line-height: 1.65;
}

body.home-page .advantage-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 213, 111, 0.08);
}

body.home-page .advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-page .feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.home-page .feature-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.home-page .feature-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 111, 0.5);
  background: rgba(255, 213, 111, 0.07);
}

body.home-page .feature-list li img {
  width: 48px;
  height: 48px;
}

body.home-page .feature-list li span {
  color: var(--sw-gold-soft);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  body.home-page .advantage,
  body.home-page .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ========== Article cards (home) ========== */
.sw-articles {
  margin-top: 0.5rem;
}

.sw-section-head {
  text-align: center;
  margin-bottom: 1.1rem;
}

.sw-section-head .sw-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--sw-border-soft);
  color: var(--sw-gold);
  background: rgba(255, 213, 111, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sw-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sw-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sw-border-soft);
  background: var(--sw-panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-height: 100%;
}

.sw-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 111, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  text-decoration: none;
}

.sw-article-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.sw-article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sw-article-card:hover .sw-article-card-media img {
  transform: scale(1.04);
}

.sw-article-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 5, 4, 0.85);
  border: 1px solid var(--sw-border);
  color: var(--sw-gold);
  font-size: 11px;
  font-weight: 700;
}

.sw-article-card-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.sw-article-card-body h3 {
  margin: 0;
  color: var(--sw-gold);
  font-size: 17px;
  line-height: 1.3;
}

.sw-article-card-body p {
  margin: 0;
  color: rgba(255, 229, 183, 0.9);
  font-size: 13.5px;
  line-height: 1.55;
}

.sw-article-card-more {
  margin-top: auto;
  padding-top: 6px;
  color: #fff2cb;
  font-size: 13px;
  font-weight: 700;
}

.sw-articles-footer {
  margin-top: 18px;
  text-align: center;
}

.sw-articles-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 111, 0.45);
  background: linear-gradient(135deg, rgba(255, 213, 111, 0.18), rgba(255, 176, 0, 0.08));
  color: var(--sw-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sw-articles-footer a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 213, 111, 0.28), rgba(255, 176, 0, 0.14));
  text-decoration: none;
}

@media (max-width: 980px) {
  .sw-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sw-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Drive articles (SEO long-form) ========== */
body.home-page .drive-articles {
  display: grid;
  gap: 14px;
  padding: 20px 16px;
  border-radius: 20px;
  border: 1px solid var(--sw-border);
  background: var(--sw-panel);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

body.home-page .drive-articles > p {
  max-width: 780px;
  margin: 0 auto 6px;
  text-align: center;
  color: rgba(255, 229, 183, 0.9);
}

body.home-page .drive-article {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.home-page .drive-article:hover {
  border-color: rgba(255, 213, 111, 0.45);
  background: rgba(255, 213, 111, 0.05);
}

body.home-page .drive-article:first-of-type {
  grid-template-columns: minmax(260px, 380px) 1fr;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 213, 111, 0.08), rgba(255, 255, 255, 0.02));
}

body.home-page .drive-article img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--sw-border-soft);
}

body.home-page .drive-article h3 {
  margin: 0 0 8px;
  color: #ffe7a1;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

body.home-page .drive-article p {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.7;
}

body.home-page .drive-article p:last-child {
  margin-bottom: 0;
}

@media (max-width: 840px) {
  body.home-page .drive-article,
  body.home-page .drive-article:first-of-type {
    grid-template-columns: 1fr;
  }
}

/* ========== Gallery ========== */
body.home-page .gallery-showcase {
  padding: 8px 0 0;
}

body.home-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.home-page .gallery-item {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--sw-border-soft);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

body.home-page .gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(255, 213, 111, 0.5);
}

@media (max-width: 780px) {
  body.home-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== Security / CSKH ========== */
body.home-page .security {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.home-page .security > .box-ani {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--sw-border-soft);
  background: var(--sw-panel);
}

body.home-page .security img {
  width: 100%;
  border-radius: 12px;
}

body.home-page .security-title {
  color: var(--sw-gold);
  font-weight: 700;
  margin: 0 0 6px;
}

body.home-page .customer-service {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--sw-border);
  background: var(--sw-panel);
}

body.home-page .customer-service img {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 840px) {
  body.home-page .security,
  body.home-page .customer-service {
    grid-template-columns: 1fr;
  }
}

/* ========== CTA blocks ========== */
.cta-complete-inner {
  border: 1px solid rgba(255, 213, 111, 0.35);
  background: linear-gradient(180deg, rgba(36, 9, 8, 0.95) 0%, rgba(20, 5, 4, 0.96) 100%);
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.cta-complete-inner h2 {
  margin: 0 0 8px;
  color: #ffd56f;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.2;
  text-align: center;
}

.cta-complete-inner > p {
  margin: 0 auto 16px;
  max-width: 720px;
  text-align: center;
  color: rgba(255, 229, 183, 0.92);
  font-size: 15px;
}

.cta-complete-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cta-complete-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 213, 111, 0.28);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-complete-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 111, 0.55);
  background: rgba(255, 213, 111, 0.07);
  text-decoration: none;
}

.cta-complete-card .badge {
  display: inline-flex;
  width: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 213, 111, 0.18);
  color: #ffeec7;
  font-size: 12px;
  margin-bottom: 8px;
}

.cta-complete-card h3 {
  margin: 0 0 4px;
  color: #ffd56f;
  font-size: 18px;
  line-height: 1.25;
}

.cta-complete-card p {
  margin: 0;
  color: rgba(255, 229, 183, 0.92);
  font-size: 14px;
}

@media (max-width: 900px) {
  .cta-complete-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
body.home-page #footer {
  margin-top: 12px;
  padding: 28px 0 0;
  border-top: 1px solid var(--sw-border-soft);
  background: linear-gradient(180deg, rgba(18, 3, 3, 0.4) 0%, rgba(8, 1, 1, 0.95) 100%);
}

body.home-page #footer > .container {
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 0 16px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 22px;
}

body.home-page #footer .footer-logo img {
  width: 72px;
  height: auto;
  margin-bottom: 10px;
}

body.home-page #footer .footer-title {
  margin: 0 0 10px;
  color: var(--sw-gold);
  font-size: 15px;
  font-weight: 700;
}

body.home-page #footer .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

body.home-page #footer .footer-list a {
  color: rgba(255, 229, 183, 0.9);
  text-decoration: none;
  font-size: 13.5px;
}

body.home-page #footer .footer-list a:hover {
  color: #fff2cb;
  text-decoration: underline;
}

body.home-page #footer .footer-desc {
  margin: 0 0 12px;
  color: rgba(255, 229, 183, 0.85);
  font-size: 13.5px;
  line-height: 1.6;
}

body.home-page #footer .copyright {
  border-top: 1px solid var(--sw-border-soft);
  padding: 14px 16px 22px;
}

body.home-page #footer .copyright-content {
  max-width: var(--sw-max);
  margin: 0 auto;
  color: rgba(255, 229, 183, 0.7);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px) {
  body.home-page #footer > .container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  body.home-page #footer > .container {
    grid-template-columns: 1fr;
  }
}

/* Keep legacy chat-button visibility behavior after deduplicating IDs. */
#openChatBtnSide,
#openChatBtnFooter {
  display: none;
}

#openChatBtnSide.show-chat,
#openChatBtnFooter.show-chat {
  display: block;
}

/* Hide livestream / cảnh báo giả mạo blocks if JS reinjects them */
body.home-page .banner-right .phishing-stream,
body.home-page #modalLivestreamContent {
  display: none !important;
}

/* ========== Unified harmony system ========== */
body.home-page {
  --sw-content: var(--sw-max);
}

body.home-page .banner-left,
body.home-page .banner-right,
body.home-page .phishing-sp {
  display: none !important;
}

body.home-page .sw-site-nav-inner,
body.home-page .main-inner,
body.home-page .bottom-content,
body.home-page .cta-complete,
body.home-page .partner,
body.home-page .access-text,
body.home-page .seo-topic-cluster .container,
body.home-page #footer > .container,
body.home-page #footer .copyright-content {
  max-width: var(--sw-content) !important;
  width: min(var(--sw-content), calc(100% - 2rem));
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home-page .main-inner {
  padding: 6px 0 18px !important;
}

body.home-page .logo-box {
  margin: 4px auto 12px !important;
}

/* Hero: equal columns */
body.home-page .bg-after {
  position: relative;
  z-index: 2;
}

body.home-page .bg-after-content.sw-hero-panel,
body.home-page .sw-hero-panel {
  max-width: var(--sw-content) !important;
  width: min(var(--sw-content), calc(100% - 2rem));
  margin: 0 auto !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--sw-border);
  background: linear-gradient(160deg, rgba(42, 10, 8, 0.75) 0%, rgba(18, 4, 3, 0.94) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

body.home-page .sw-hero-visual {
  display: flex;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
}

body.home-page .sw-hero-promo {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sw-border-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

body.home-page .sw-hero-promo:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 111, 0.5);
}

body.home-page .sw-hero-promo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

body.home-page .sw-hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 2px;
}

body.home-page .sw-hero-actions .form-signup,
body.home-page .sw-hero-actions .bottom-box,
body.home-page .sw-hero-actions .divider,
body.home-page .sw-hero-actions .form-signup-pc,
body.home-page .sw-hero-actions .input-wrapper,
body.home-page .sw-hero-actions .btn-signup,
body.home-page .sw-hero-actions .btn-signup button,
body.home-page .sw-hero-actions .custom-pc,
body.home-page .sw-hero-actions .register-btn,
body.home-page .sw-hero-actions .register-btn button,
body.home-page .sw-hero-actions .btn-web {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

body.home-page .sw-hero-qr {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 255, 255, 0.03);
}

body.home-page .sw-hero-qr .scan-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--sw-gold-soft);
  text-align: left;
}

body.home-page .sw-hero-qr #qr-code,
body.home-page .sw-hero-qr img#qr-code {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

body.home-page .sw-hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 213, 111, 0.07);
  color: var(--sw-gold-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.home-page .sw-hero-chip:hover {
  border-color: rgba(255, 213, 111, 0.5);
  background: rgba(255, 213, 111, 0.12);
  text-decoration: none;
  color: #fff2cb;
}

body.home-page .sw-hero-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.home-page .sw-hero-chip .ramos-hl {
  color: var(--sw-gold);
  font-weight: 800;
}

body.home-page .note {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 229, 183, 0.82);
  text-align: center;
}

body.home-page .access-text {
  display: flex;
  justify-content: center;
  margin: 4px auto 6px;
}

body.home-page .partner {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  background: transparent !important;
  margin: 14px auto 6px !important;
  padding: 12px 0 4px !important;
  border-top: 1px solid var(--sw-border-soft);
}

body.home-page .partner-title .partner-glow {
  background: none !important;
  padding: 0 !important;
}

body.home-page .partner-title .partner-glow > span {
  color: rgba(255, 213, 111, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home-page .partner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 10px;
}

body.home-page .partner-item img {
  height: 34px;
  width: auto;
  opacity: 0.9;
}

/* Content rhythm */
body.home-page .bottom {
  padding: 10px 0 8px;
}

body.home-page .bottom-content {
  display: grid !important;
  gap: 1.25rem !important;
  padding: 0 !important;
}

body.home-page .sw-home-block,
body.home-page .sw-articles,
body.home-page .drive-articles,
body.home-page .gallery-showcase,
body.home-page .cta-complete-inner,
body.home-page .seo-topic-cluster .container {
  padding: 22px 18px !important;
  border-radius: 18px !important;
  border: 1px solid var(--sw-border-soft) !important;
  background: var(--sw-panel) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body.home-page .title01 {
  margin: 0 0 0.45rem !important;
  text-align: center;
}

body.home-page .title01 span::after {
  width: min(96px, 36%);
  margin-top: 8px;
}

body.home-page .sw-section-lead,
body.home-page .drive-articles > p,
body.home-page .gallery-showcase > p,
body.home-page .cta-complete-inner > p {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
  color: rgba(255, 229, 183, 0.9);
  font-size: 14.5px;
  line-height: 1.65;
}

body.home-page .advantage {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

body.home-page .advantage > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 16px !important;
}

body.home-page .advantage-icon {
  width: 64px !important;
  height: 64px !important;
  margin-bottom: 10px !important;
}

body.home-page .advantage-title {
  min-height: 2.6em;
}

body.home-page .advantage > div > p:last-child {
  margin-top: auto;
  font-size: 13.5px;
  line-height: 1.55;
}

body.home-page .feature-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.home-page .feature-list li {
  min-height: 126px;
  height: 100%;
  justify-content: center;
  padding: 14px 12px !important;
}

body.home-page .sw-articles {
  margin: 0;
}

body.home-page .sw-section-head {
  margin-bottom: 14px;
}

body.home-page .sw-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

body.home-page .sw-article-card {
  height: 100%;
  min-height: 100%;
}

body.home-page .sw-article-card-media {
  aspect-ratio: 16 / 10;
}

body.home-page .sw-article-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 12px 12px 14px !important;
}

body.home-page .sw-article-card-body h3 {
  font-size: 16px !important;
  min-height: 2.5em;
}

body.home-page .sw-article-card-body p {
  flex: 1;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body.home-page .sw-articles-footer {
  margin-top: 16px;
}

body.home-page .drive-articles {
  display: grid !important;
  gap: 12px !important;
}

body.home-page .drive-article {
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px !important;
  min-height: 148px;
}

body.home-page .drive-article img {
  width: 100% !important;
  height: 128px !important;
  min-height: 128px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

body.home-page .drive-article h3 {
  font-size: 1.05rem !important;
}

body.home-page .drive-article p {
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  margin-bottom: 0.4rem !important;
}

body.home-page .gallery-showcase .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.home-page .gallery-item {
  aspect-ratio: 16 / 10 !important;
  border-radius: 12px !important;
}

body.home-page .security {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

body.home-page .security > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 255, 255, 0.03);
}

body.home-page .security img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

body.home-page .security-content {
  margin-top: auto;
}

body.home-page .customer-service {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 16px !important;
  align-items: center !important;
  margin-top: 14px !important;
  padding: 16px !important;
}

body.home-page .customer-service img {
  width: 100%;
  border-radius: 12px;
}

body.home-page .cta-complete {
  margin: 12px auto !important;
  padding: 0 !important;
}

body.home-page .cta-complete-inner {
  max-width: none !important;
}

body.home-page .cta-complete-inner h2 {
  text-align: center;
}

body.home-page .cta-complete-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

body.home-page .cta-complete-card {
  height: 100%;
  min-height: 118px;
}

body.home-page .seo-topic-cluster {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 0 !important;
  background: transparent !important;
}

body.home-page .seo-topic-cluster h2 {
  color: var(--sw-gold) !important;
  text-align: center;
  font-size: clamp(18px, 2vw, 22px) !important;
}

body.home-page .seo-topic-cluster a {
  color: var(--sw-gold) !important;
}

body.home-page #footer {
  margin-top: 8px;
}

@keyframes swFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body.home-page .sw-home-block,
body.home-page .sw-articles,
body.home-page .drive-articles,
body.home-page .gallery-showcase,
body.home-page .cta-complete {
  animation: swFadeUp 0.5s ease both;
}

/* ========== Layout repair: neutralize legacy flex widths inside grids ========== */
/* Base theme sets width:50%/40%/60% on children of these sections (old flex layout).
   Inside our CSS grid those widths shrink each card to half its track. Reset them. */
body.home-page .advantage {
  margin: 0 !important;
}

body.home-page .advantage > div {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
}

body.home-page .advantage-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  min-height: 0 !important;
}

body.home-page .advantage-icon img {
  width: 100% !important;
  height: 100% !important;
}

body.home-page .feature-list {
  margin: 0 !important;
}

body.home-page .feature-list > li {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
}

body.home-page .feature-list li img {
  width: 46px !important;
  height: 46px !important;
}

body.home-page .security {
  margin-top: 0 !important;
}

body.home-page .security > div {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

body.home-page .security > div .security-content {
  padding: 0 !important;
}

body.home-page .customer-service > div:first-child,
body.home-page .customer-service > div:last-child {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

body.home-page .customer-service > div:last-child img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.home-page .customer-service .title01 {
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  margin-bottom: 0.6rem !important;
}

body.home-page .customer-service .title01 span::after {
  margin-left: 0;
}

/* ========== Layout repair: top of page ========== */
/* The 1.1.1.1 chip is position:fixed in base CSS and overlaps the logo. Make it flow. */
body.home-page .access-text {
  position: static !important;
  width: auto !important;
  display: flex !important;
  justify-content: center;
  margin: 10px auto 2px !important;
}

body.home-page .access-text #openModalAccess {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--sw-border-soft);
  background: rgba(255, 213, 111, 0.06);
  cursor: pointer;
}

body.home-page .access-text .dl-icon {
  position: static !important;
  width: 18px !important;
  animation: none !important;
}

body.home-page .access-text img:not(.dl-icon) {
  width: 120px;
  height: auto;
}

/* Logo block: clean centered stack, no forced min-heights or offsets. */
body.home-page .logo-box {
  min-height: 0 !important;
  max-width: 420px !important;
  margin: 6px auto 14px !important;
  transform: none !important;
}

body.home-page .logo-box > div {
  transform: none !important;
}

body.home-page .logo-box .logo {
  width: min(300px, 72vw);
  height: auto;
}

body.home-page .logo-box .logo-title {
  margin: 6px 0 0 !important;
  transform: none !important;
}

/* Hero panel: remove legacy negative offsets that pull it under the logo. */
body.home-page .bg-after {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: none !important;
  width: 100%;
}

body.home-page .bg-after::after,
body.home-page .bg-after::before {
  display: none !important;
}

/* Guard against any single element forcing horizontal scroll. */
body.home-page {
  overflow-x: hidden;
}

body.home-page .sw-hero-panel,
body.home-page .sw-home-block,
body.home-page .sw-articles,
body.home-page .drive-articles,
body.home-page .gallery-showcase {
  box-sizing: border-box;
}

@media (max-width: 960px) {
  body.home-page .bg-after-content.sw-hero-panel,
  body.home-page .sw-hero-panel {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  body.home-page .sw-hero-promo img {
    min-height: 0;
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  body.home-page .sw-hero-visual {
    order: -1;
  }

  body.home-page .drive-article {
    grid-template-columns: 1fr !important;
  }

  body.home-page .drive-article img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
  }

  body.home-page .customer-service {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 840px) {
  body.home-page .advantage,
  body.home-page .feature-list,
  body.home-page .sw-articles-grid,
  body.home-page .cta-complete-grid,
  body.home-page .gallery-showcase .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-page .security {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body.home-page .advantage,
  body.home-page .feature-list,
  body.home-page .sw-articles-grid,
  body.home-page .cta-complete-grid,
  body.home-page .gallery-showcase .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  body.home-page .sw-article-card-body h3,
  body.home-page .advantage-title {
    min-height: 0;
  }
}

/* ============================================================
   PREMIUM POLISH v3 — gradient borders, gold typography,
   refined lighting. Palette unchanged: gold on dark burgundy.
   ============================================================ */

body.home-page {
  background:
    radial-gradient(ellipse 130% 50% at 50% -8%, rgba(255, 213, 111, 0.10), transparent 58%),
    radial-gradient(ellipse 90% 40% at 50% 108%, rgba(120, 30, 20, 0.25), transparent 60%),
    #0a0202;
}

/* --- Gradient-framed panels: gold light from top, fading down --- */
body.home-page .sw-home-block,
body.home-page .sw-articles,
body.home-page .drive-articles,
body.home-page .gallery-showcase,
body.home-page .cta-complete-inner {
  position: relative;
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(38, 10, 8, 0.97) 0%, rgba(19, 5, 4, 0.98) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 213, 111, 0.55) 0%, rgba(255, 213, 111, 0.14) 45%, rgba(255, 213, 111, 0.10) 100%) border-box !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 236, 190, 0.10) !important;
}

body.home-page .bg-after-content.sw-hero-panel,
body.home-page .sw-hero-panel {
  border: 1px solid transparent !important;
  background:
    linear-gradient(165deg, rgba(46, 12, 9, 0.92) 0%, rgba(18, 4, 3, 0.97) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 213, 111, 0.65) 0%, rgba(255, 213, 111, 0.16) 50%, rgba(255, 213, 111, 0.28) 100%) border-box !important;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 236, 190, 0.12) !important;
}

/* --- Luxury headings: gold gradient text + ornamental divider --- */
body.home-page .title01 {
  letter-spacing: 0.01em;
}

body.home-page .title01 span {
  background: linear-gradient(180deg, #fff3cf 0%, #ffd56f 55%, #e8a93f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffd56f;
  text-shadow: 0 2px 18px rgba(255, 200, 90, 0.18);
}

/* background-clip:text on the span clips descendant backgrounds in Chrome,
   so the divider lives on the heading itself instead of the span. */
body.home-page .title01 span::after {
  display: none !important;
}

body.home-page .title01::after {
  content: "";
  display: block;
  width: min(110px, 38%);
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 50%, #ffe9ad 0 3px, transparent 4px),
    linear-gradient(90deg, transparent, rgba(255, 213, 111, 0.9), transparent);
}

body.home-page .customer-service .title01::after {
  margin-left: 0;
}

/* --- Buttons: gold sheen --- */
body.home-page .register-btn button,
body.home-page .custom-pc .btn-web {
  position: relative;
  overflow: hidden;
}

body.home-page .register-btn button::after,
body.home-page .custom-pc .btn-web::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: swSheen 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes swSheen {
  0%, 60% { left: -80%; }
  85%, 100% { left: 130%; }
}

.sw-articles-footer a {
  box-shadow: 0 8px 22px rgba(255, 176, 0, 0.10);
}

.sw-articles-footer a:hover {
  box-shadow: 0 12px 28px rgba(255, 176, 0, 0.20);
}

/* --- Cards: gold glow on hover, refined badges --- */
.sw-article-card:hover,
body.home-page .advantage > div:hover,
body.home-page .feature-list li:hover,
.cta-complete-card:hover {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 213, 111, 0.35),
    0 6px 26px rgba(255, 190, 80, 0.12) !important;
}

.sw-article-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(10, 2, 2, 0.72));
  pointer-events: none;
}

.sw-article-card-badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sw-article-card-more {
  color: var(--sw-gold);
  transition: letter-spacing 0.2s ease;
}

.sw-article-card:hover .sw-article-card-more {
  letter-spacing: 0.04em;
}

/* --- Advantage cards: number ornaments --- */
body.home-page .advantage > div {
  position: relative;
  overflow: hidden;
}

body.home-page .advantage > div::before {
  counter-increment: none;
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 213, 111, 0.10);
  pointer-events: none;
}

body.home-page .advantage > div:nth-child(1)::before { content: "01"; }
body.home-page .advantage > div:nth-child(2)::before { content: "02"; }
body.home-page .advantage > div:nth-child(3)::before { content: "03"; }

/* --- Feature list: gold icon wells --- */
body.home-page .feature-list li img {
  padding: 10px;
  box-sizing: content-box;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 213, 111, 0.16), rgba(255, 213, 111, 0.04));
  border: 1px solid rgba(255, 213, 111, 0.25);
}

/* --- Gallery: caption-less premium hover --- */
body.home-page .gallery-item {
  position: relative;
  overflow: hidden;
}

body.home-page .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 2, 2, 0.55));
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

body.home-page .gallery-item:hover::after {
  opacity: 0.15;
}

body.home-page .gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 213, 111, 0.4);
}

/* --- Drive articles: gold spine --- */
body.home-page .drive-article {
  position: relative;
  overflow: hidden;
}

body.home-page .drive-article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 213, 111, 0.75), rgba(255, 213, 111, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.home-page .drive-article:hover::before {
  opacity: 1;
}

/* --- Partner strip: brand chips --- */
body.home-page .partner-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--sw-border-soft);
  background: linear-gradient(180deg, rgba(255, 213, 111, 0.07), rgba(255, 213, 111, 0.02));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.home-page .partner-item:hover {
  border-color: rgba(255, 213, 111, 0.5);
  background: linear-gradient(180deg, rgba(255, 213, 111, 0.12), rgba(255, 213, 111, 0.04));
  transform: translateY(-2px);
}

body.home-page .partner-content {
  gap: 18px;
}

/* --- Site nav: refined --- */
.sw-site-nav {
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(18, 3, 3, 0.97) 0%, rgba(12, 2, 2, 0.94) 100%) padding-box,
    linear-gradient(90deg, rgba(255, 213, 111, 0.05), rgba(255, 213, 111, 0.45), rgba(255, 213, 111, 0.05)) border-box;
}

.sw-site-nav-links a.is-cta {
  box-shadow: 0 4px 14px rgba(255, 176, 0, 0.15);
}

.sw-site-nav-links a.is-cta:hover {
  box-shadow: 0 6px 18px rgba(255, 176, 0, 0.28);
}

/* --- Hero details --- */
body.home-page .sw-hero-qr {
  background: linear-gradient(180deg, rgba(255, 213, 111, 0.06), rgba(255, 255, 255, 0.02));
}

body.home-page .note .note-warn {
  color: #ff9d7a;
}

/* --- CSKH panel: warm accent --- */
body.home-page .customer-service {
  border: 1px solid transparent !important;
  background:
    linear-gradient(150deg, rgba(48, 13, 9, 0.95) 0%, rgba(22, 6, 4, 0.97) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 213, 111, 0.5), rgba(255, 213, 111, 0.12)) border-box !important;
}

body.home-page .customer-service img {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* --- Topic cluster: match premium panels --- */
body.home-page .seo-topic-cluster .container {
  padding: 22px 18px !important;
  border-radius: 18px !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(38, 10, 8, 0.97) 0%, rgba(19, 5, 4, 0.98) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 213, 111, 0.45), rgba(255, 213, 111, 0.10)) border-box !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 236, 190, 0.10);
}

body.home-page .seo-topic-cluster .container > div > div {
  background: rgba(255, 255, 255, 0.025);
}

/* --- Footer: gold hairline + polish --- */
body.home-page #footer {
  border-top: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(18, 3, 3, 0.55) 0%, rgba(8, 1, 1, 0.97) 100%) padding-box,
    linear-gradient(90deg, rgba(255, 213, 111, 0.04), rgba(255, 213, 111, 0.5), rgba(255, 213, 111, 0.04)) border-box;
}

body.home-page #footer .footer-title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13.5px;
}

body.home-page #footer .footer-list a {
  transition: color 0.15s ease, padding-left 0.15s ease;
}

body.home-page #footer .footer-list a:hover {
  padding-left: 3px;
  text-decoration: none;
  color: var(--sw-gold);
}

/* --- Scrollbar (WebKit) to match theme --- */
body.home-page::-webkit-scrollbar {
  width: 10px;
}

body.home-page::-webkit-scrollbar-thumb {
  background: rgba(255, 213, 111, 0.28);
  border-radius: 8px;
}

body.home-page::-webkit-scrollbar-track {
  background: #120202;
}

/* ============================================================
   MOBILE HARMONY v4 — fixes from real-device review
   ============================================================ */

@media (max-width: 760px) {
  /* Nav: keep one tidy row — Trang chủ, Tin tức, Tải app, Đăng ký.
     Hide by href (SEO build scripts inject extra items, so nth-child is unreliable). */
  .sw-site-nav-links {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .sw-site-nav-links a[href="/tai-xiu-sunwin/"],
  .sw-site-nav-links a[href="/ban-ca-sunwin/"],
  .sw-site-nav-links a[href="/so-do-trang/"],
  .sw-site-nav-links a[href="/tac-gia/"],
  .sw-site-nav-links li:has(> a[href="/tai-xiu-sunwin/"]),
  .sw-site-nav-links li:has(> a[href="/ban-ca-sunwin/"]),
  .sw-site-nav-links li:has(> a[href="/so-do-trang/"]),
  .sw-site-nav-links li:has(> a[href="/tac-gia/"]) {
    display: none !important;
  }

  .sw-site-nav-inner {
    padding: 8px 12px;
  }

  .sw-site-nav-brand img {
    width: 36px;
    height: 36px;
  }

  /* Floating contact buttons: dock bottom-left instead of covering the hero */
  body.home-page .contact-box.contact-sp {
    position: fixed !important;
    left: 10px !important;
    right: auto !important;
    top: auto !important;
    bottom: 14px !important;
    margin: 0 !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    z-index: 1150;
  }

  body.home-page .contact-box.contact-sp button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--sw-border-soft);
    background: rgba(18, 3, 3, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    margin: 0 !important;
  }

  body.home-page .contact-box.contact-sp button img {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain;
  }

  body.home-page .contact-sp .open-chat-btn {
    width: 44px !important;
    height: 44px !important;
  }

  body.home-page .contact-sp .open-chat-btn img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain;
  }
}

/* Partner chips: three on one row, no wrap */
@media (max-width: 560px) {
  body.home-page .partner-content {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 4px;
  }

  body.home-page .partner-item {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 8px 6px;
  }

  body.home-page .partner-item img {
    height: 24px;
  }

  body.home-page .partner-name {
    font-size: 11px;
  }

  /* Footer: 2 columns, logo/description and policy block span full width.
     Base CSS pins children to explicit grid rows (causing overlap) — reset first. */
  body.home-page #footer > .container {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: none !important;
    align-items: start !important;
    gap: 20px 16px;
  }

  body.home-page #footer > .container > div {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.home-page #footer > .container > .footer-logo {
    grid-column: 1 / -1 !important;
    text-align: center;
  }

  body.home-page #footer .footer-logo img {
    margin: 0 auto 8px;
  }

  body.home-page #footer > .container > .certificate {
    grid-column: 1 / -1 !important;
    text-align: center;
  }

  body.home-page #footer .certificate .contact-footer {
    justify-content: center;
  }
}

/* ============================================================
   FINAL REFINEMENT v5 — motion, micro-UX, finishing details
   ============================================================ */

/* Smooth anchor scrolling + room for the sticky nav */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.home-page section[id],
body.home-page article[id],
body.home-page div[id] {
  scroll-margin-top: 76px;
}

/* Brand selection color */
body.home-page ::selection {
  background: rgba(255, 213, 111, 0.85);
  color: #1c0402;
}

/* Scroll-reveal states (class added by JS; nothing hidden without JS) */
body.home-page .sw-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  animation: none !important;
}

body.home-page .sw-reveal.sw-in {
  opacity: 1;
  transform: none;
}

/* Active page indicator in nav */
body.home-page .sw-site-nav-links li:first-child a {
  border-color: rgba(255, 213, 111, 0.4);
  background: rgba(255, 213, 111, 0.10);
  color: var(--sw-gold);
}

/* Feature icons: brighten with a warm glow */
body.home-page .feature-list li img {
  filter: brightness(1.18) saturate(1.1) drop-shadow(0 2px 8px rgba(255, 190, 80, 0.35));
}

body.home-page .feature-list li:hover img {
  filter: brightness(1.3) saturate(1.15) drop-shadow(0 3px 12px rgba(255, 190, 80, 0.55));
}

/* Back-to-top: gold ring button */
body.home-page #scrollToTopBtn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--sw-border);
  background: rgba(18, 3, 3, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.home-page #scrollToTopBtn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 111, 0.6);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 190, 80, 0.25);
}

body.home-page #scrollToTopBtn img {
  width: 22px !important;
  height: 22px;
  object-fit: contain;
}

/* Keyboard focus visibility (gold ring, consistent with theme) */
body.home-page a:focus-visible,
body.home-page button:focus-visible,
body.home-page input:focus-visible {
  outline: 2px solid rgba(255, 213, 111, 0.75);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Readability: keep long-form lines comfortable */
body.home-page .drive-article > div {
  min-width: 0;
}

body.home-page .drive-article p {
  max-width: 68ch;
}

/* Hero form inputs: subtle gold focus */
body.home-page .sw-hero-actions .input-wrapper input:focus {
  box-shadow: 0 0 0 2px rgba(255, 213, 111, 0.35);
}

/* Tighten the very top: banner → hero flows closer */
body.home-page .logo-box {
  margin-bottom: 8px !important;
}

/* Gallery: gentle stagger illusion via varied radius */
body.home-page .gallery-item:nth-child(3n + 1) {
  border-top-left-radius: 22px !important;
}

body.home-page .gallery-item:nth-child(3n) {
  border-bottom-right-radius: 22px !important;
}
