/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #FF59AA;
  --color-primary-light: #ff8dc8;
  --color-primary-lighter: #ff96cd;
  --color-primary-border: #ffaad8;
  --color-primary-pale: #ffd2ec;
  --color-primary-mobile: #ff6db6;
  --color-bg: #ededed;
  --color-bg-header-mobile: #ffe0f0;
  --color-bg-hero: #ffd8eb;
  --color-orange-start: #fd8901;
  --color-orange-end: #ff9f2e;
  --color-shadow-blue: #cf0166;
  --color-shadow-blue2: #b41862;
  --color-white: #ffffff;
  --font-main: 'Montserrat', sans-serif;
  --font-alt: 'Inter', sans-serif;
  --radius-card: 20px;
  --radius-section: 10px;
  --radius-btn: 10px;
  --radius-btn-pill: 20px;
  --sidebar-width: 150px;
  --content-max: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: #333;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== GRADIENTS ===== */
.grad-blue {
  background: linear-gradient(to left, var(--color-primary), var(--color-primary-light));
}

.grad-orange-text {
  background: linear-gradient(180deg, var(--color-orange-start) 0%, var(--color-orange-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-blue-text {
  background: linear-gradient(180deg, var(--color-primary-lighter) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flex-basic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== PAGE HEADER ===== */
.page-header-wrap {
  background: linear-gradient(135deg, #ffffff 60%, #d5dfff 100%);
}

.page-header {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header .logo-wrap {
  display: flex;
  align-items: center;
}

.page-header .logo-wrap img {
  height: 40px;
  object-fit: contain;
}

.header-btns {
  display: flex;
  gap: 12px;
}

.btn-login {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}

.btn-login:hover {
  background: rgba(44, 82, 215, 0.08);
}

.btn-register {
  background: linear-gradient(111.89deg, var(--color-primary) 0%, var(--color-primary-lighter) 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  max-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-inner {
  max-width: var(--content-max);
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  align-items: center;
}

.hero-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-mobile {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: none;
}

/* ===== MAIN CARD WRAPPER ===== */
.main-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 0 0 0;
  position: relative;
}

.main-card {
  background: #fff;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

/* ===== CARD TAB HEADER ===== */
.card-tab-header {
  display: flex;
  justify-content: center;
}

.card-tab {
  background-image: url('./images/agent-cooperation.png');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  width: 400px;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card-tab .tab-icon {
  width: 30px;
  height: auto;
}

.card-tab .tab-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-transform: capitalize;
}

/* ===== INNER LAYOUT (sidebar + content) ===== */
.card-body {
  display: flex;
  align-items: flex-start;
  padding: 50px;
  gap: 20px;
}

/* ===== SIDEBAR NAV ===== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: linear-gradient(to left, var(--color-primary), var(--color-primary-light));
  border: 1px solid var(--color-primary-pale);
  border-radius: var(--radius-section);
  /*margin: 20px 0 20px 50px;*/
  overflow: hidden;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 10px;
  height: 40px;
  border-bottom: 1px solid rgba(180, 197, 255, 0);
  cursor: pointer;
  transition: background .2s;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-item span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
}

/* ===== CONTENT AREA ===== */
.content-area {
  flex: 1;
  min-width: 0;
}

/* ===== PROMO BANNER CARDS ===== */
.promo-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.promo-card {
  flex: 1;
  border-radius: var(--radius-section);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card .promo-register {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: #fff;
  border-radius: var(--radius-btn-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Hide mobile-only elements on desktop */
.mobile-nav {
  display: none;
}

.mobile-card-nav {
  display: none;
}

/* ===== SECTION WRAPPER ===== */
.section-block {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.section-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-block .bg-content-desktop {
  display: block;
}

.section-block .bg-content-mobile {
  display: none;
}

.section-body.content-4 {
  min-height: 290px;
  position: relative;
}

.section-tab {
  height: 40px;
  background-image: url('https://www.figma.com/api/mcp/asset/64189241-e2dd-45a6-aa31-f4e91b9f1889');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-tab.orange {
  background-image: url('https://www.figma.com/api/mcp/asset/e488cea2-d604-40df-9c49-9b6a91d9b17f');
}

.section-tab-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: capitalize;
  background: linear-gradient(180deg, var(--color-orange-start), var(--color-orange-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-body {
  position: relative;
  padding: 60px 24px 24px;
}

/* ===== INTRO TEXT ===== */
.intro-text {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 20px;
}

.intro-text strong {
  font-weight: 900;
}

.intro-text p {
  margin-bottom: 6px;
}

.intro-text .tag {
  color: var(--color-orange-start)
}

.intro-text .num {
  color: #0094FF
}

/* ===== POLICY TABLES ===== */
.policy-table-title {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.policy-note {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.data-table {
  width: 100%;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-section);
  overflow: hidden;
  background: #fff;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.data-table.desktop {
  display: table;
}

.data-table.mobile {
  display: none;
}

.data-table th, .data-table td {
  border: 1px solid var(--color-primary);
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  color: var(--color-primary);
}

.data-table th {
  font-weight: 900;
  text-transform: capitalize;
}

.data-table td {
  font-weight: 600;
  text-align: center;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child, .data-table th:first-child {
  border-left: none;
}

.data-table td:last-child, .data-table th:last-child {
  border-right: none;
}

.data-table tr:first-child th {
  border-top: none;
}

.data-table .icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== SECTION SUBHEADINGS ===== */
.section-sub {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 14px;
}

.section-bullets {
  padding-left: 18px;
  margin-bottom: 10px;
}

.section-bullets li {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 24px;
  list-style: disc;
}

.section-para {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 24px;
}

.section-para strong {
  font-weight: 900;
}

/* ===== HOW TO EARN SECTION ===== */
.steps-intro {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.steps-intro strong {
  font-weight: 900;
}

.steps-row {
  display: flex;
  gap: 0px;
  align-items: center;
}

.step-card {
  flex: 1;
  background-image: url('./images/step-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-section);
  padding: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.step-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  position: relative;
}

.step-badge span {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-primary);
  text-transform: capitalize;
}

.step-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: capitalize;
  line-height: 1.3;
}

.step-register-btn {
  border-radius: 20px;
  background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(90deg, #0094FF 0%, #005999 100%), #FD8901;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.10);
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: #FDA5D0;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 7px 24px;
  border: none;
  cursor: pointer;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.section-body .arrow {
}

.section-body .arrow-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTACT BUTTONS ===== */
.contact-row {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.contact-btn {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0.5px solid var(--color-primary-border);
  border-radius: var(--radius-btn);
  background: #fff;
  box-shadow: 0 2px 0 var(--color-shadow-blue), 0 4px 6px var(--color-shadow-blue2);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 10px #ffd2e8;
  pointer-events: none;
}

.contact-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: relative;
}

.contact-btn span {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
  background: linear-gradient(180deg, var(--color-primary-lighter) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FLOATING RIGHT ICONS ===== */
.floating-right {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.float-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  filter: drop-shadow(0 0 4px #d9e0ff);
}

.float-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 32px 0;
}

.footer-inner {
  max-width: 1270px;
  margin: 0 auto;
  padding: 0;
}

.footer-logos {
  width: 100%;
  height: 100%;
}

.footer-logos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-logo-cell {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-logo-cell img {
  max-width: 130px;
  max-height: 65px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
}

.footer-bottom-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-bottom-logo img {
  height: 36px;
  object-fit: contain;
}

.footer-bottom p {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-logos .logo-pc {
  display: block;
}

.footer-logos .mobile {
  display: none;
}

/* ===== PARTNER SECTION ===== */
.partner-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.partner-note {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 20px;
  flex: 1;
}

.partner-note strong {
  font-weight: 900;
}

/* ===========================
   MOBILE: max-width 768px
=========================== */
@media (max-width: 768px) {
  /* Page header */
  .page-header {
    padding: 0 10px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-hero) 100%);
  }

  .page-header .logo-wrap img {
    height: 32px;
  }

  .btn-login, .btn-register {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* Mobile nav bar */
  .mobile-nav {
    background: var(--color-bg-header-mobile);
    height: 50px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 0 10px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav-item {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: capitalize;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: var(--font-main);
  }

  /* Hero */
  .hero {
    max-height: 100%;
    margin: 0
  }

  .hero-inner {
  }

  .hero-image {
    width: 100%;
    max-width: 320px;
  }

  .hero-text {
    padding: 16px 16px 10px;
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 18px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  /* Main layout */
  .main-wrapper {
    padding: 0 0 24px;
  }

  .card-tab {
    width: 300px;
    height: 46px;
  }

  .card-tab .tab-title {
    font-size: 22px;
  }

  .sidebar {
    display: none;
  }

  .card-body {
    flex-direction: column;
    padding: 16px;
  }

  .content-area {
    padding: 0;
  }

  /* Mobile inner nav shown as tab row */
  .mobile-card-nav {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to left, var(--color-primary), var(--color-primary-light));
    border: 1px solid #ff8dc8;
    border-radius: var(--radius-section);
    overflow: hidden;
    margin-bottom: 16px;
    width: 100%;
  }

  .mobile-card-nav-item {
    /*flex: 1;*/
    text-align: center;
    padding: 10px 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    cursor: pointer;
    border-right: 1px solid rgba(121, 149, 249, 0);
  }

  .mobile-card-nav-item:last-child {
    border-right: none;
  }

  /* Promo cards stacked on mobile */
  .promo-cards {
    flex-direction: column;
  }

  .promo-card {
    height: 170px;
  }

  /* Steps */
  /*.steps-row { flex-wrap: wrap; }*/
  .step-card {
    min-width: calc(50% - 8px);
    flex: unset;
  }

  /* Contact buttons */
  .contact-row {
    flex-wrap: wrap;
  }

  .contact-btn {
    min-width: calc(50% - 10px);
  }

  .contact-btn span {
    font-size: 10px;
  }

  /* Footer */
  .footer-logos {
    grid-template-columns: repeat(4, 1fr);
  }

  .floating-right {
    display: none;
  }

  /* Tables */
  .data-table {
    font-size: 10px;
  }

  .data-table th, .data-table td {
    padding: 5px 4px;
    font-size: 10px;
  }

  .data-table.desktop {
    display: none;
  }

  .data-table.mobile {
    display: table;
  }

  /* Section body text */
  .section-body {
    padding: 60px 12px 12px;
  }

  .section-block .bg-content-desktop {
    display: none;
  }

  .section-block .bg-content-mobile {
    display: block;
  }

  .section-body.content-4 {
    min-height: 256px;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-card-nav {
    display: flex;
    margin: 0
  }

  .desktop-only {
    display: none !important;
  }

  .hero-image {
    display: none;
  }

  .hero-image-mobile {
    display: block;
  }

  .footer {
    padding: 16px 0;
  }

  .footer-inner {
    padding: 0 5px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .footer-logos .logo-pc {
    display: none;
  }

  .footer-logos .mobile {
    display: block;
  }
}

@media (max-width: 480px) {
  .footer-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  /*.steps-row { flex-direction: column; }*/
  .step-card {
    min-width: 100%;
  }

  .hero {
    max-height: 100%;
    margin: 0
  }

  .hero-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: none;
  }

  .hero-image-mobile {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .section-block .bg-content-desktop {
    display: none;
  }

  .section-block .bg-content-mobile {
    display: block;
  }

  .footer {
    padding: 16px 0;
  }

  .footer-inner {
    padding: 0 5px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .footer-logos .logo-pc {
    display: none;
  }

  .footer-logos .mobile {
    display: block;
  }
}
