/* ===== TOP TAB ===== */
.header-tab {
  background: #EEE9FF;
  overflow: hidden;
}

header.scrolled .header-tab {
  display: none;
}

.header-tab-inner {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.tab-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #5f5f5f;
  border-radius: 15px 15px 0 0;
  text-align: center;
}

.tab-link:hover {
  color: #5422FF;
}

.tab-link.active {
  background: #fff;
  color: #5422FF;
  border: 1px solid #EAEAEA;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .15);
}

/* ===== MAIN BAR ===== */
.main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ===== DESKTOP NAV ===== */
nav.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 16px;
}

@media (min-width: 1024px) {
  nav.desktop-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font: inherit;
  color: #fff;
  cursor: pointer;
  padding: 8px 0;
}

header.scrolled .nav-trigger,
header.solid .nav-trigger {
  color: #1A1A1A;
}

.nav-trigger:hover {
  color: #BBA7FF;
}

header.scrolled .nav-trigger:hover,
header.solid .nav-trigger:hover {
  color: #8d05fc;
}

.nav-arrow {
  width: 8px;
  height: 12px;
  transition: transform .2s;
}

.nav-item[data-open="true"] .nav-arrow {
  transform: rotate(180deg);
}

.plain-link {
  color: #fff;
}

header.scrolled .plain-link,
header.solid .plain-link {
  color: #1A1A1A;
}

/* ===== MEGA MENU PANEL ===== */
.mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 124px;
  background: #fff;
  border-top: 1px solid#EEE9FF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  z-index: 40;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

header.fixed-header .mega-panel {
  top: 80px;
}

.mega-panel[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

.mega-inner {
  padding: 20px 0px;
  max-width: 1380px;
  margin: 0 auto;
  text-align: left !important;
}

.mega-header {
  font-size: 20px;
  color: #3D006A;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EEE9FF;
}

.tktz-logo {
  width: 48px;
  height: 48px;
  background-color: #f2f2f2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-header-text {
  padding-left: 15px;
  border-left: 1px solid #EEE9FF;
  display: flex;
  align-items: center;
}

.mega-header-text strong {
  font-weight: 500;
}

.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.mega-cols .mega-col {
  border-right: 1px solid #EEE9FF;
  padding-right: 25px;
}

.mega-cols .mega-col:last-child {
  border-right: none;
  padding-right: 0px;
}

.mega-col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #767676;
  margin-bottom: 16px;
  margin-left: 10px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  color: #1A1A1A !important;
  font-size: 16px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 3px;
}

.mega-link:hover {
  color: #5422FF !important;
  ;
  background: #ede8fc !important;
  ;
  text-decoration: none;
}

.app-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 500;
  transition: all .15s;
}

.work-flow {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee9ff;
}

.work-flow-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.mega-icon {
  width: 36px;
  height: 36px;
  background: #EEE9FF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #223354;
}

.mega-link:hover .mega-icon {
  background: #ffffff;
}

.explore-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5422FF !important;
  font-size: 14px;
  margin-top: 20px;
  margin-left: 10px;
}

.explore-more:hover {
  text-decoration: underline;
}

.customize-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #ede8fc !important;
  padding: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.customize-link .w-17 {
  width: 68px;
  height: auto;
}

.customize-link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #684d7c;
  line-height: 1.5;
}

.customize-link-content-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1A1A1A;
  font-size: 14px;
}

.customize-link-content-header p {
  margin: 0;
}

.customize-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 10px;
  margin-left: auto;
}

/* ===== RIGHT SIDE (phone + CTA) ===== */
.right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #5533FB;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

header.scrolled .phone-btn,
header.solid .phone-btn {
  color: #1A1A1A;
}

.blog-links {
  background-color: #eee9ff;
  border-radius: 12px;
  padding: 6px 0;
}

.blog-links a {
  padding: 18px 25px;
  display: block;
  color: #1A1A1A !important;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #ddd3ff;
}

.blog-links a svg {
  margin-top: 3px;
}

.blog-links a :hover,
.blog-links a:hover svg path {
  fill: #5422ff !important;
  color: #5422ff !important;
}

.blog-links a:last-child {
  border-bottom: none;
}

.blog-links-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #1A1A1A !important;
}

.blog-links-header {
  font-size: 16px;
  font-weight: 500;
  margin: 0 !important;
}

.blog-links-description {
  font-size: 12px;
  margin: 0 !important;
}

.blg-nrml-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  align-content: start;
  height: auto;
  gap: 25px;
  line-height: 1.6;
  color: #1A1A1A !important;
}

.blg-nrml-links a {
  color: #1A1A1A !important;
}

.blg-nrml-links a:hover {
  color: #5422ff !important;
}

.social-box {
  width: 100%;
  max-width: 300px;
}

.social-box img {
  width: 100%;
}

.social-title {
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  padding: 2px 2px;
  border-radius: 6px;
  background: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5422ff !important;
}

.social-links a:hover {
  background: #5422ff !important;
  color: #ffffff !important;
}

@media (min-width: 1024px) {
  .phone-btn {
    display: inline-flex;
  }
}

@media (max-width: 1023px) {

  .mega-header,
  .headerFLex .nav-links {
    display: none !important;
  }

  .mega-cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mega-cols .mega-col {
    border-right: 0;
    padding-right: 0px;
  }
}

.cta-btn {
  display: none;
  background: #5422FF;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
}

.cta-btn:hover {
  background: #4a1fe0;
}

@media (min-width: 768px) {
  .cta-btn {
    display: inline-flex;
  }
}

/* ===== MOBILE BUTTON ===== */
.mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

header.fixed-header .mobile-toggle {
  color: #000;
}

header.scrolled .mobile-toggle,
header.solid .mobile-toggle {
  color: #5422FF;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border-top: 1px solid #E8D7FF;
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  z-index: 45;
}

.mobile-menu[data-open="true"] {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 22px;
  color: #1A1A1A;
  cursor: pointer;
  text-align: left;
}

.mobile-menu-item svg {
  margin-left: 10px;
}

/* ===== MOBILE SLIDE PANEL ===== */
.slide-panel {
  position: fixed;
  inset: 0;
  top: 0;
  background: #fff;
  z-index: 99;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}

.slide-panel[data-open="true"] {
  transform: translateX(0);
}

.slide-panel-header {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid#EEE9FF;
}

.slide-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 22px;
  color: #1A1A1A;
  cursor: pointer;
}

.slide-content {
  padding: 16px 20px 32px;
}

@media (min-width: 1024px) {
  .slide-panel {
    display: none;
  }
}

@media (max-width: 767px) {
  .tab-link {
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* On-ground path label rules are handled purely via JS by toggling data-onground on <body> */