/* ===== CSS Custom Properties ===== */
:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --accent: #ff6b35;
  --text: #333;
  --light: #fff;
  --gray: #f5f5f5;
  --border: #eee;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --brand-gold: #eab308;
  --brand-gold-light: #facc15;
}

/* ===== YG88 brand highlight ===== */
.yg88-brand {
  color: var(--brand-gold);
  font-weight: 700;
}

.footer .yg88-brand,
.mbfoooter .yg88-brand {
  color: var(--brand-gold);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  color: var(--text);
  background: #f0fdf4;
  position: relative;
}
img {
  height: auto;
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
}

/* ===== Layout ===== */
.container {
  width: min(100% - 2rem, 1230px);
  margin-inline: auto;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.4rem;
}
p {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.highlight {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 0.2rem 1.2rem;
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary);
  text-transform: uppercase;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

/* ===== Header ===== */
.header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 70%),
    rgb(255 255 255 / 60%)
  );
  border-bottom: 1px solid rgb(255 255 255 / 15%);
  height: 65px;
  display: flex;
  align-items: center;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  width: 100%;
  gap: 1rem;
}

.header.pc .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.header.pc .hamburger {
  display: none;
}

.header.pc .logo {
  grid-column: 1;
  justify-self: start;
}

.header.pc .support-item {
  grid-column: 2;
  justify-self: center;
}

.header.pc .header-right {
  grid-column: 3;
  justify-self: end;
  width: auto;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
.nav ul {
  display: flex;
  gap: 2rem;
}
.nav a {
  font-weight: 600;
  transition: var(--transition);
}
.nav a:hover {
  color: var(--primary);
}

.support-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #22c55e;
  font-size: 18px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 23%;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: #f0fdf4;
  color: white;
  text-align: center;
  padding: 0;
}

#hero {
  position: relative;
  background: #f0fdf4;
  padding-bottom: 28px;
}

#hero img {
  max-width: 100%;
}

#hero .pc-banner {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero h1 {
  margin-bottom: 1rem;
}
.marqueDiv {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: #22c55e;
  width: calc(100% - 2rem);
  max-width: 1230px;
  border-radius: 90px;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 5px 16px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.marqueDiv img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.marqueDiv marquee {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.marqueDiv .yg88-brand {
  color: #fde047;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.badges img {
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===== Tables ===== */
.table-wrapper {
  overflow-x: auto;
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th,
td {
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  border: 2px solid #22c55e;
}
th {
  background: #22c55e;
  color: white;
  font-weight: 600;
}
tbody tr:hover {
  background: #22c55e1c;
}
.note {
  padding: 0;
}
.note p {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 14px;
  color: #000;
}

/* ===== Steps ===== */
.steps .section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.steps-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* Desktop / tablet: 3 cột */
}

.step {
  padding: 3px 3px;
  text-align: center;
  box-shadow: 0px 5.1px 10.19px 0px #00000040 inset;
  transition: var(--transition);
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-radius: 16px;
  border: 2px solid #ffffff;
  position: relative;
  box-shadow: 2px 4px 7px #16a34a80;
}
.step:hover {
  scale: 1.1;
}
.steps .steps-items {
  width: 100%;
  text-align: center;
}

.steps img {
  margin: 0 auto;
}

.steps-items > img,
.step-icon {
  display: block;
  margin: 0 auto 10px auto;
  width: 88px;
  height: 88px;
  max-width: 88px;
  object-fit: contain;
  flex-shrink: 0;
}

.step:hover {
  transform: translateY(-2px);
}

.step h3 {
  border-radius: 30px;
  padding: 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step p {
  color: #fff;
  font-size: 15px;
  margin-bottom: 0 !important;
  min-height: 95px;
}

.steps-ico {
  position: absolute;
  right: -38px;
  top: 40%;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}
.feature {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.feature h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* ===== Footer ===== */
.footer {
  background: #303442;
  padding: 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.footer h4 {
  color: white;
  margin-bottom: 1rem;
}
.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* ===== LỢI ÍCH KHI HỢP TÁC SECTION ===== */
.benefits {
  padding: 2rem 0rem;
  padding-top: 0rem;
}
.section-btn {
  text-align: center;
  margin-bottom: 0;
}
.section-btn img {
  cursor: pointer;
}
.benefits .section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
}

.deco-left,
.deco-right {
  color: #ec1c24;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.deco-left {
  left: 10%;
}
.deco-right {
  right: 10%;
}
.simple-para {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 19px 0px;
}
.simple-para p {
  margin-bottom: 0rem;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1400px;
  padding-top: 30px;
  margin: 0 auto;
}

.benefit-item:hover {
  transform: translateY(-2px);
}
.benefit-item {
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0px 0px 9.73px 0px #16a34a80;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-item:hover {
  scale: 1.1;
}
.benefit-item .icon {
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
}

.benefit-item .icon img,
.benefit-icon {
  width: 69px;
  height: 69px;
  max-width: 69px;
  object-fit: contain;
  margin: 0 auto;
}

.text-item {
  display: grid;
  justify-content: flex-start;
  padding-top: 30px;
}

.benefit-item h3 {
  color: #22c55e;
  padding: 5px 0px;
  font-weight: 800;
  font-size: 22px;
  display: inline-block;
  text-align: center;
}

.benefit-item p {
  font-size: 14px;
  color: #444;
  margin: 0;
  text-align: center;
  font-weight: 500;
  line-height: normal;
}

.benefit-item p strong {
  color: #22c55e;
  font-weight: 600;
}

.agent {
  padding: 1rem 0rem;
}

.agent-title-bg {
  position: relative;
  margin-bottom: 10px;
}

/* Section title bar (thay title0–title4.png) */
.section-title-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px 6px 6px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 45%, #ecfdf5 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(34, 197, 94, 0.1),
    0 2px 6px rgba(34, 197, 94, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-title-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-title-bar:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(34, 197, 94, 0.14),
    0 4px 10px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-title-bar__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 45%, #16a34a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow:
    0 4px 14px rgba(22, 163, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

.section-title-bar__badge--bar::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.section-title-bar__badge--bars::before,
.section-title-bar__badge--bars::after {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
}

.section-title-bar__badge--triple::before,
.section-title-bar__badge--triple::after {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
}

.section-title-bar__badge--triple span {
  display: block;
  width: 4px;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title-bar__text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 8px 14px 0;
  margin: 0;
  flex: 1;
  font-size: clamp(14px, 2.4vw, 20px);
  font-weight: 800;
  color: #15803d;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-title-bar__text .yg88-brand {
  text-shadow: none;
}

/* Biến thể nhẹ cho từng section */
.section-title-bar--intro .section-title-bar__badge {
  background: linear-gradient(145deg, #fde047 0%, #eab308 50%, #ca8a04 100%);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}

.section-title-bar--payment .section-title-bar__badge {
  background: linear-gradient(145deg, #6ee7b7 0%, #10b981 50%, #059669 100%);
}

.agent-title-bg h4 {
  position: absolute;
  top: 5px;
  left: 40px;
  font-size: 17.5px;
  font-weight: 800;
  color: #22c55e;
}
.agent .agent-para {
  border: 2px solid #22c55e;
  border-radius: 10px;
  padding: 10px;
}
.agent-para p {
  font-size: 16px;
  color: #000;
  margin-bottom: 0;
  line-height: normal;
  text-align: justify;
}

.bonus-table {
  padding: 1rem 0rem;
}

.commissionBonus {
  padding: 1rem 0rem;
}

.commision-border {
  border: 2px solid #22c55e;
  padding: 10px;
  border-radius: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.commis-calculator {
  background: linear-gradient(99.86deg, #dcfce7 0%, #ecfdf5 100%);
  border-radius: 10px;
  text-align: center;
  padding: 20px 10px;
}
.commis-calculator h3 {
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: #34344b;
  padding-bottom: 10px;
}
.commis-calculator p {
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #4b5563;
  margin-bottom: 4px;
}
.commis-calculator button {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 2px 4px 7px #2f2d2d;
  border: 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 6px;
  color: #fff;
  margin: 0 auto;
}

/* video section css  */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  row-gap: 1rem;
}
.vid-item {
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-start;
}

.video-container {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.video-placeholder {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.videos .section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.video-placeholder:hover .placeholder-image {
  opacity: 0.9;
}

#videoPlayer {
  border-radius: 10px;
  display: none;
}

/* Footer Banner Section */
.footer-banner {
  padding: 40px 0;
  border-bottom: 1px solid #333;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 24px;
}

.footer-logo-yg88 {
  height: 56px;
  width: auto;
  max-width: min(300px, 75vw);
  object-fit: contain;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
}

.banner-left {
  display: flex;
}
.compadderss {
  display: flex;
}

.banner-right {
  display: flex;
  gap: 10px;
  background: linear-gradient(180deg, #303442 0%, #47517b 100%);
  border: 1px solid #697293;
  border-radius: 10px;
  padding: 5px;
  align-items: center;
}
.players-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.banner-center {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}
.badge {
  width: 389px;
  height: 68px;
  margin-bottom: 10px;
}
.title {
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 0;
  color: #868da5;
}

.subtitle {
  font-weight: 400;
  font-size: 14px;
  text-transform: capitalize;
  color: #868da5;
}

.kjclogo {
  width: 175px;
  height: 59px;
}

.lefimg {
  width: 230px;
  height: 153px;
}

.partnership-title {
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  padding-bottom: 5px;
}

.partnership-desc {
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 0px;
}

.partnership-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.footer-nav {
  background: #1a1a1a;
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.nav-link {
  color: #868da5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #22c55e;
}

.nav-separator {
  color: #666666;
  font-size: 14px;
  line-height: 1;
}

.footer-certificates {
  background: #1a1a1a;
  padding: 30px 0;
}

.certs-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.certs-grid {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.cert-item {
  width: 40px;
  height: 40px;
}

.cert-item img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: contain;
}

.mbfoooter {
  display: none;
}

/* ===== Mobile Footer (YG88) ===== */
.mb-footer {
  padding: 24px 0 90px;
}

.mb-footer__card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fdf9 100%);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.12);
  padding: 24px 18px 20px;
  text-align: center;
}

.mb-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mb-footer__logo {
  height: 48px;
  width: auto;
  max-width: min(260px, 72vw);
  object-fit: contain;
}

.mb-footer__tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  line-height: 1.4;
}

.mb-footer__tagline span {
  color: var(--brand-gold);
  font-weight: 800;
}

.mb-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 18px;
}

.mb-footer__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: var(--transition);
}

.mb-footer__nav a:hover,
.mb-footer__nav a:active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.mb-footer__divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #86efac 20%,
    #86efac 80%,
    transparent
  );
  margin: 4px 0 18px;
}

.mb-footer__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mb-footer__social {
  margin-bottom: 18px;
}

.mb-footer__social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mb-footer__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bbf7d0;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
  transition: var(--transition);
}

.mb-footer__social-btn:hover,
.mb-footer__social-btn:active {
  transform: translateY(-2px);
  border-color: #22c55e;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.2);
}

.mb-footer__social-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mb-footer__certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(240, 253, 244, 0.8);
  border: 1px dashed #bbf7d0;
}

.mb-footer__certs img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.9;
}

.mb-footer__copy {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.mb-banner {
  display: none;
}

.bonus-table .bonus-border {
  border: 2px solid #22c55e;
  padding: 10px;
  border-radius: 10px;
}
.bonus-table .agent-para {
  padding-bottom: 10px;
}
.commis-bons {
  border: 2px solid #22c55e;
  border-radius: 10px;
  padding: 10px;
}

/* Tele bot */
.tele-bot-div {
  position: fixed;
  right: 15px;
  bottom: 10%;
  z-index: 9;
}

.tele-bot-div .tele-bot {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.tele-bot-div .bot-content {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 7.2px 0px #00000040;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  display: block; /* PC: luôn hiện sẵn */
}

.tele-bot-div .bot-img {
  position: absolute;
  right: 0;
  bottom: -70px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #f0fdf4;
  z-index: 1001;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px 20px 20px;
  overflow-y: auto;
}

.side-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar.open {
  left: 0;
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 1002;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.sidebar-nav li {
  margin-bottom: 15px;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  display: block;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar-nav a:hover {
  background: var(--gray);
}

.sidebar-support {
  margin: 10px 0;
  padding: 10px 0px;
  border-top: 1px solid var(--border);
}

.sidebar-support .item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.sidebar-auth .btn-primary {
  margin: 0;
  width: 100%;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.mobileshow {
  display: none;
}

.header.mb {
  display: none;
}
.header.pc {
  display: block;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[style*="display: flex"],
.modal[style*="display:flex"] {
  display: flex !important;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}
.close-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgb(255, 255, 255);
  font-size: 30px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.close-icons:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Promo Modal Specific */
.promo-content {
  background: transparent;
  border-radius: 20px;
  width: auto;
  height: auto;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.promo-main {
  position: relative;
  height: 80%;
}

.promo-main img {
  display: flex;
}

.promo-footer {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  display: block;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.no-show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

#closePromo {
  color: white;
  background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
  border: none;
  padding: 10px 40px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* Calculator Modal Specific */
.calc-content {
  width: 750px;
  padding: 0px;
  text-align: center;
}

.calc-content h2 {
  color: #fff;
  margin-bottom: 0;
  font-size: 16px;
}

.model-header {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #fff;
  display: flex;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: center;
  padding: 16px 40px;
}

.inputs-section {
  margin-bottom: 20px;
}
.calc-body {
  padding: 10px 20px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}
.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.input-group {
  flex: 1;
  text-align: left;
}

.section-heading h3 {
  color: #22c55e;
  font-size: 16px;
  display: flex;
  align-items: center;
  font-weight: bold;
  gap: 5px;
}

.input-group label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  background: transparent;
}

.ket-qua {
  text-align: left;
  margin-bottom: 20px;
}

.ket-qua h3 {
  color: #22c55e;
  text-align: left;
  margin-bottom: 15px;
}

.result-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.result-item {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-item.item1 {
  background: #f0fdf4;
  border: 1.02px solid #bbf7d0;
}
.result-item.item2 {
  background: #ecfdf5;
  border: 1.02px solid #86efac;
}
.result-item.item3 {
  background: #f0fdf4;
  border: 1.02px solid #4ade80;
}
.result-item.item4 {
  background: #f9fafb;
  border: 1.02px solid #f0f0f0;
}
.result-item.item1:hover,
.result-item.item2:hover,
.result-item.item3:hover,
.result-item.item4:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-item.full-width {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: unset;
}

.result-item label {
  font-size: 12px;
  color: #999;
  margin-bottom: 0px;
  display: block;
}

.result-item span {
  font-size: 16px;
  font-weight: bold;
  color: #22c55e;
  display: block;
}

.trang-thai {
  text-align: left;
  margin-bottom: 20px;
}

.trang-thai p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.condition-btn {
  background: #22c55e;
  border: 1px solid #22c55e;
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}

.tong-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #22c55e;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 18px;
}

.close-modal-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

/* slider ranger  */
.slidecontainer {
  width: 100%;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  cursor: pointer;
  border: 1px solid #fff;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  cursor: pointer;
}

.input-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.input-layout {
  width: 100%;
}

/* ------------------ Toggle Button ------------------ */
.calc-toggle-wrapper {
  text-align: center;
  margin-top: 12px;
}

.calc-toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calc-toggle-btn:hover {
  background-color: #e0e0e0;
}

.calc-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f7931e50;
}

.calc-toggle-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* ------------------ Calculation Details Section ------------------ */
.calc-details-section {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 12px;
}

.calc-details-header {
  background: linear-gradient(to right, #f9f9f9, #f0f0f0);
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
}

.calc-details-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.calc-details-title-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: #f7931e;
}

/* ------------------ Boxes ------------------ */
.calc-details-content {
  padding: 12px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.calc-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.calc-box-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot.red {
  background: #22c55e;
}
.dot.blue {
  background-color: #16a34a;
}
.dot.green {
  background-color: #10b981;
}
.dot.purple {
  background-color: #8b5cf6;
}
.dot.black {
  background-color: #000;
}

/* Highlight text */
.highlight-blue {
  font-weight: bold;
  color: #16a34a;
}

.font-medium {
  font-weight: 700;
}

/* ------------------ Mono Calculation Box ------------------ */
.calc-mono-box {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 8px;
  font-family: monospace;
  font-size: 13px;
}

.calc-mono-box .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.calc-mono-box .row.red {
  color: #dc2626;
  font-weight: 800;
}

.calc-mono-box .row.result-green {
  font-weight: bold;
  font-size: 16px;
  color: #16a34a;
}

.bold {
  font-weight: bold;
}

.divider {
  margin: 6px 0;
  border-color: #dbdbdb2e;
}

/* ------------------ Commission Table ------------------ */
.commission-table {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
}

.table-title {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 3fr));
  gap: 6px;
}

.grid-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px;
  font-size: 14px;
}

.grid-item .label {
  font-weight: 500;
  margin-bottom: 2px;
}

.grid-item .desc {
  color: #555;
  font-size: 14px;
}

/* ------------------ Stats Grid ------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
  gap: 6px;
  margin-bottom: 12px;
}

.stats-item {
  background-color: #fce9ff;
  border-radius: 6px;
  padding: 8px;
}

.stats-item .label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.stats-item .value {
  font-size: 16px;
  font-weight: bold;
  color: #7c3aed;
}

/* ------------------ Commission Level ------------------ */
.commission-level-box {
  background: #fce9ff;
  border-radius: 6px;
  padding: 8px;
  border: 1px solid #ffccf9;
  margin-bottom: 12px;
}

.commission-level-box .label {
  font-size: 12px;
  color: #555;
  margin-bottom: 2px;
}

.commission-level-box .value {
  font-size: 14px;
  font-weight: bold;
  color: #7c3aed;
}

/* ------------------ Warning Box ------------------ */
.warning-box {
  background-color: #ffeded;
  border: 1px solid #ff8888;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
}

.warning-title {
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

.warning-text {
  font-size: 11px;
  color: #dc2626;
  margin-top: 2px;
}

/* ------------------ Total Commission Box ------------------ */
.total-commission-box {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  color: #000;
}

.total-commission-box.white .calc-box-title {
  color: #fff;
}

.total-inner {
  background-color: #22c55e;
  border-radius: 6px;
  padding: 8px;
}

.total-inner .text-center {
  text-align: center;
  color: #fff;
}

.total-inner .small {
  font-size: 12px;
  opacity: 0.9;
}

.total-inner .formula {
  font-family: monospace;
  font-size: 16px;
  font-weight: 500;
}

.total-inner .sub {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 2px;
}

.total-inner .total {
  font-size: 20px;
  font-weight: bold;
  margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section-btn img {
    max-width: 180px;
  }
  table.styled-table th,
  table.styled-table td {
    font-size: 12px;
  }
  .header.mb {
    display: block;
    height: auto;
    min-height: 56px;
  }

  .header.mb .container {
    padding: 0.5rem 0;
  }

  .header.mb .logo {
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .header.mb .logo img {
    margin: 0 auto;
  }
  .header.pc {
    display: none;
  }
  .input-flex {
    display: block;
  }

  .mb .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    min-width: 0;
  }

  .mb .mobile-nav .hamburger {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
  }

  .mb .mobile-nav .hamburger img {
    width: 28px;
    height: auto;
  }

  .header a.logo img {
    height: 32px !important;
    max-width: min(140px, 42vw);
  }
  .commis-bons {
    margin-bottom: 20px;
  }
  .mobileshow {
    display: block !important;
  }
  .tele-bot-div {
    display: block;
  }

  .tele-bot-div .bot-content {
    display: none;
  }

  .mb-banner {
    display: block;
    width: 100%;
  }

  /* Auth buttons trên mobile header */
  .header.mb .header-right {
    width: auto;
    flex-shrink: 0;
  }

  .header.mb .auth-btn {
    display: flex !important;
    width: auto;
    min-width: 0;
    gap: 6px;
    margin: 0;
  }

  .header.mb .auth-btn .btn-primary {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    border: 2px solid #22c55e;
    border-radius: 999px;
    background: #fff;
    color: #22c55e;
    font-weight: 700;
  }

  .header.mb .auth-btn a:only-child .btn-primary,
  .header.mb .auth-btn > a:first-child:last-child .btn-primary {
    background: #22c55e;
    color: #fff;
  }

  .auth-btn {
    display: flex;
    align-items: center;
    width: auto;
  }

  .section-btn {
    scale: 0.7;
  }

  .benefits {
    padding: 1rem 0rem;
    padding-top: 0px;
  }

  .benefits .section-title {
    font-size: 22px;
    margin-bottom: 1rem;
  }

  .videos .section-title {
    text-align: center;
    font-size: 22px;
  }
  .videos .simple-para {
    padding-top: 0;
  }
  .vid-item .icon img {
    width: 140px;
    height: auto;
  }
  .vid-item .icon {
    display: none;
  }

  .vid-grid {
    grid-template-columns: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps-items {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .steps-items > img,
  .step-icon {
    width: 64px;
    height: 64px;
    max-width: 64px;
    margin: 0;
    align-self: center;
  }

  .step {
    text-align: left;
    padding: 4px;
  }

  .step h3 {
    text-align: center;
    margin: 0;
    background: white;
    color: #22c55e;
  }

  .step p {
    font-size: 14px;
    min-height: auto;
    text-align: justify;
    padding: 2px 0;
  }

  .steps-ico {
    display: none;
  }

  .agent-title-bg .section-title-bar {
    padding: 5px 10px 5px 5px;
    gap: 8px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .agent-title-bg .section-title-bar::after {
    display: none;
  }

  .agent-title-bg .section-title-bar__text {
    font-size: 11px;
    padding: 8px 4px 8px 0;
    letter-spacing: 0.01em;
    word-break: break-word;
    line-height: 1.35;
  }

  .agent-title-bg .section-title-bar__badge {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 13px;
    border-radius: 10px;
  }

  .section-title-bar__badge--bar::before,
  .section-title-bar__badge--bars::before,
  .section-title-bar__badge--bars::after,
  .section-title-bar__badge--triple::before,
  .section-title-bar__badge--triple::after,
  .section-title-bar__badge--triple span {
    height: 16px;
  }

  .agent-title-bg h4 {
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    position: static;
  }

  th,
  td {
    padding: 0.2rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: normal;
  }

  .commissionBonus {
    padding: 0rem;
  }

  .btn-primary {
    padding: 6px 10px;
    font-size: 12px;
    line-height: normal;
  }
  .marqueDiv {
    position: static;
    width: 95%;
    margin: 6px auto 0;
    transform: none;
    left: auto;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 1rem;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    row-gap: 2.5rem;
  }

  .benefit-item .icon {
    top: -25px;
  }

  .benefit-item .icon img {
    width: 50px;
    height: 50px;
  }
  .text-item {
    padding-top: 16px;
  }

  .benefit-item h3 {
    font-size: 16px;
  }

  .benefit-item p {
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
  }

  .footer {
    display: none;
  }
  .mbfoooter {
    display: block;
  }

  footer.mbfoooter {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .header-right .support-item {
    display: none;
  }

  .header.pc .header-right .auth-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .sidebar {
    width: 80%;
    max-width: 300px;
  }

  .san-choi img {
    width: 190px;
  }

  .promo-content {
    width: 100%;
    height: auto;
    padding: 0px;
    padding-bottom: 50px;
  }
  .promo-main img {
    width: 100%;
  }
  .no-show {
    font-size: 14px;
  }
  #closePromo {
    padding: 4px 20px;
    font-size: 12px;
  }

  .calc-content {
    width: 100%;
  }

  .input-row {
    flex-direction: column;
    gap: 10px;
  }

  .result-row {
    flex-direction: column;
  }

  .home-btn-wrap {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .home-btn-wrap .home-btn-shell {
    flex: 1 1 0;
    min-width: 0;
  }

  .home-btn-wrap .auth-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .home-btn-core {
    padding: 8px 12px;
    min-width: 0;
    font-size: 12px;
    flex: 1 1 0;
  }

  .home-btn-core--convert {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 8px;
    font-size: 10px;
  }

  #loginBtnMobile {
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  .home-btn-icon {
    width: 16px;
    height: 16px;
  }
}

/* Medium devices / mobile landscape (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .steps-grid {
    gap: 1rem;
  }
  .footer_grid {
    position: relative;
    top: auto;
    margin-top: 12px;
  }
  .footer_values .footer_title h5 {
    font-size: 18px;
  }
  .footer_values .footer_desc .truncate {
    font-size: 16px;
  }
  .footer_image img {
    width: 100%;
  }
  footer.mbfoooter {
    margin-bottom: 100px;
  }
  .social-icons .socia img {
    width: 40px;
    height: 40px;
  }

  .social-icons .socia {
    gap: 20px;
  }
}

/* Large mobile / small tablet (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .benefits .section-title {
    justify-content: center;
  }
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    gap: 1rem;
    row-gap: 3rem;
  }

  .header.pc .auth-btn {
    display: flex;
    gap: 12px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vid-item .icon img {
    width: 260px;
    height: auto;
  }
  .steps-ico {
    display: none;
  }

  .step p {
    font-size: 14px;
    min-height: 160px;
  }

  .star-bg img {
    width: auto;
  }
  .footer_grid {
    position: relative;
    top: auto;
    margin-top: 12px;
  }
  .footer_values .footer_title h5 {
    font-size: 20px;
  }
  .footer_values .footer_desc .truncate {
    font-size: 18px;
  }
  .footer_image img {
    width: 100%;
  }
  footer.mbfoooter {
    margin-bottom: 150px;
  }
  .social-icons .socia img {
    width: 40px;
    height: 40px;
  }

  .social-icons .socia {
    gap: 20px;
  }
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  line-height: 0;
  background: #f0fdf4;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide img {
  width: 100%;
  display: block;
  height: auto;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.roMan {
  display: inline-block;
}
@media (min-width: 768px) {
  .roMan {
    display: none;
  }
}

table.styled-table tr th {
  text-transform: uppercase;
}

/* ===== HOME BUTTON – dùng chung PC + Mobile ===== */
.home-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  margin: 10px 0;
}

.home-btn-shell {
  display: inline-block;
  padding: 3px;
  border-radius: 999px;
}

.home-btn-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  min-width: 130px;
}

.home-btn-core--convert {
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  color: #1f2937;
  border-color: #ca8a04;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 2px 4px 7px rgba(234, 179, 8, 0.35);
  padding: 10px 20px;
  font-size: 14px;
}

.home-btn-core--convert:hover {
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  color: #111827;
  transform: translateY(-1px);
}

.home-btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-btn-icon svg {
  width: 100%;
  height: 100%;
}

.home-btn-icon svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* bảng ngoài + bảng trong */
.table-wrapper {
  display: inline-block;
  border: 1px solid #22c55e;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}
table tr th {
  font-size: 12px;
}
table.styled-table {
  border-collapse: collapse;
  width: 100%;
}
table.styled-table th,
table.styled-table td {
  border: 1px solid #22c55e;
  font-weight: bold;
}
table.styled-table thead th {
  background: #22c55e;
  color: #fff;
}

/* ===== AUTH BUTTONS – ĐĂNG KÝ / ĐĂNG NHẬP ===== */

/* Khung bọc 2 nút */
.auth-btn {
  display: flex;
  gap: 12px;
  width: auto;
  min-width: 220px;
  margin: 0;
  justify-content: flex-end;
}

/* Mỗi phần tử con (wrapper của button) chiếm 1/2 */
.auth-btn > * {
  flex: 1 1 0;
}

/* Chính cái nút */
.auth-btn .btn-primary {
  width: 100%;
  padding: 5px 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #22c55e;
  box-shadow: 2px 4px 7px #16a34a80;
}

/* Nếu bạn đang gán id="loginBtn" cho nút đăng nhập */
#loginBtn {
  background-color: #22c55e;
  color: #ffffff;
}

/* Nút ĐĂNG KÝ – nền trắng, chữ xanh */
.auth-btn > *:first-child .btn-primary {
  background: #ffffff;
  color: #22c55e;
}

/* Nút ĐĂNG NHẬP – nền xanh, chữ trắng */
.auth-btn > *:last-child .btn-primary {
  background: #22c55e;
  color: #ffffff;
}

/* Mobile: giữ layout flex nhưng full chiều ngang, không bẹt quá */
@media (max-width: 768px) {
  .auth-btn {
    width: auto;
    align-items: center;
  }
}

/* đảm bảo mặc định luôn hiển thị */
#teleBotContent {
  position: relative;
  display: block; /* mặc định hiện khi vào trang */
}

.tele-bot-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.tele-bot-close:hover {
  color: #333;
}

/* để user biết icon tele bấm được */
.tele-bot {
  cursor: pointer;
}

/* auth ở section home */
.home-btn-wrap .auth-btn {
  display: flex;
  gap: 12px;
  width: 60%;
  margin: 0 auto;
}

/* mỗi nút chiếm 1/2 chiều ngang trong khối */
.home-btn-wrap .home-btn-core,
.home-btn-wrap #loginBtn {
  flex: 1 1 0;
  min-width: 0;
}

/* chiều cao / font giống nhau cho TRANG CHỦ + ĐĂNG NHẬP (PC) */
.home-btn-core,
#loginBtn {
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.header.pc .home-btn-shell {
  width: 60%;
  margin: 0 auto;
}

/* Giữ cho mobile vẫn full width nếu muốn */
@media (max-width: 768px) {
  .header.mb .btn-primary {
    border: 2px solid #22c55e;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .home-btn-wrap {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .home-btn-wrap .home-btn-shell {
    flex: 1 1 0;
    min-width: 0;
  }

  .home-btn-wrap .home-btn-shell .home-btn-core {
    width: 100%;
  }

  .home-btn-wrap .auth-btn {
    display: flex;
    gap: 8px;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    flex-wrap: nowrap;
  }

  .home-btn-wrap #loginBtnMobile {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
  }

  .home-btn-wrap #loginBtnMobile .btn-primary {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    background: #22c55e !important;
    color: #fff !important;
    border: 2px solid #22c55e;
    box-shadow: 2px 4px 7px #16a34a80;
  }

  .header.mb .auth-btn a {
    display: flex;
    text-decoration: none;
  }

  .home-btn-core {
    background: #fff;
    color: #22c55e;
    padding: 8px 12px;
    font-size: 12px;
  }

  .home-btn-core--convert {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
  }

  .marqueDiv {
    border-radius: 40px;
    padding: 4px 10px;
  }

  .marqueDiv marquee {
    font-size: 11px;
  }

  .mbfoooter .mb-banner-content {
    overflow: hidden;
  }

  .footer_grid {
    position: relative;
    top: auto;
  }

  .tele-bot-div {
    right: 10px;
    bottom: 16px;
  }

  .tele-bot-div .bot-content {
    width: min(280px, calc(100vw - 80px));
  }
}

/* ===== OVERRIDE: TRANG CHỦ & ĐĂNG NHẬP BẰNG NHAU (PC + MOBILE) ===== */
.home-btn-core,
#loginBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #22c55e;
  box-shadow: 2px 4px 7px #16a34a80;
  text-transform: uppercase;
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
  box-sizing: border-box;
}

.home-btn-wrap #loginBtnMobile {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
}

.home-btn-wrap #loginBtnMobile .btn-primary {
  width: 100%;
  margin: 0;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #22c55e;
  box-shadow: 2px 4px 7px #16a34a80;
  text-transform: uppercase;
  background: #22c55e;
  color: #ffffff;
}

/* TRANG CHỦ: nền trắng, chữ xanh */
.home-btn-core {
  background: #ffffff;
  color: #22c55e;
}

/* ĐĂNG NHẬP PC: nền xanh, chữ trắng */
#loginBtn {
  background: #22c55e;
  color: #ffffff;
}

/* ====== Xem thêm / Ẩn bớt + truncate ====== */

/* Thu gọn nội dung: cắt còn 3 dòng, hiển thị ... */
.toggle-link {
  text-decoration: underline;
  font-style: italic;
  cursor: pointer;
  color: #22c55e;
  font-size: 11px;
}

/* Thu gọn nội dung: chỉ khi THU GỌN mới cắt 3 dòng */
.truncate {
  display: block;
  overflow: visible;          /* MỞ RỘNG: để text ôm float và tràn xuống dưới hình */
}

.truncate.collapsed {
  display: -webkit-box;       /* THU GỌN: dùng line-clamp */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;      /* số dòng giữ lại */
  overflow: hidden;
}

/* ===== Layout polish (match rr88agent.com) ===== */
html.scroll-smooth {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.header.pc .auth-btn {
  width: auto;
  min-width: 0;
}

.header.pc .auth-btn .btn-primary {
  min-width: 120px;
  white-space: nowrap;
}

.promo-content {
  max-width: min(520px, 92vw);
  margin: 0 auto;
}

.promo-main img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.calc-content {
  max-width: 750px;
  width: min(750px, 96vw);
  margin: 0 auto;
}

.commission,
.bonus-table,
.commissionBonus,
.agent {
  padding: 1rem 0;
}

.commision-border,
.bonus-border {
  background: #fff;
}

.table-wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.videos {
  padding: 1rem 0 0;
}

.videos .vid-item {
  align-items: center;
}

.steps {
  padding: 1rem 0 2rem;
}

.overlay.active {
  display: block;
}

.sidebar.open + .overlay,
.overlay.show {
  display: block;
}

.home-btn-text a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, 1230px);
  }

  .mb-footer__card {
    padding: 20px 14px 18px;
    border-radius: 16px;
  }

  .mb-footer__nav {
    gap: 8px;
  }

  .mb-footer__nav a {
    font-size: 10px;
    min-height: 38px;
    padding: 7px 8px;
  }

  .mb-footer__certs img {
    width: 28px;
    height: 28px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    row-gap: 2rem;
  }

  .benefit-item {
    padding: 8px 6px;
  }

  .benefit-item .icon img,
  .benefit-icon {
    width: 44px;
    height: 44px;
    max-width: 44px;
  }

  .benefit-item h3 {
    font-size: 13px;
    padding: 4px 0;
  }

  .benefit-item p {
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
  }

  .text-item {
    padding-top: 12px;
  }

  .header.mb .mobile-nav {
    gap: 6px;
  }

  .header.mb .auth-btn .btn-primary {
    padding: 5px 8px;
    font-size: 10px;
  }

  .table-wrapper {
    margin: 0 -4px;
  }

  table.styled-table th,
  table.styled-table td {
    font-size: 10px;
    padding: 0.35rem 0.2rem;
  }

  .commision-border,
  .bonus-border,
  .commis-bons {
    padding: 8px;
  }

  .agent-para p,
  .note p {
    font-size: 13px;
  }

  .footer_grid {
    position: relative;
    top: auto;
  }

  .san-choi img {
    width: 140px;
    max-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .support-item .item {
    font-size: 15px;
  }
}