/* ValetaxIndonesia.id UI/UX polish layer - 2026-06-30 */

:root {
  --vt-green: #25c660;
  --vt-ink: #111820;
  --vt-soft: #f4f7f5;
}

html {
  scroll-padding-top: 78px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 198, 96, .65);
  outline-offset: 3px;
}

.footer-text__wrap {
  line-height: 1.55;
}

.footer-text__wrap p {
  margin-bottom: 10px;
}

.home-banner__links .hero-microcopy {
  flex-basis: 100%;
  max-width: 560px;
  margin: 8px 0 0;
  color: #586575;
  font-size: 13px;
  line-height: 1.55;
}

.home-banner__links .hero-microcopy a {
  color: #0f8f4c;
  font-weight: 800;
}

.home-banner__column--img .perks-bg {
  object-fit: contain;
}

@media (max-width: 768px) {
  body.valetax-has-mobile-cta {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .home-banner {
    padding-top: 16px !important;
  }

  .home-banner .box-center {
    display: flex !important;
    flex-direction: column !important;
  }

  .home-banner__column--descr {
    order: 1 !important;
  }

  .home-banner__column--img {
    order: 2 !important;
    margin-top: 20px !important;
  }

  .home-banner__info-wrap {
    order: 3 !important;
  }

  .home-banner__column--img .perks-bg {
    width: 100% !important;
    max-height: 260px !important;
  }

  .home-banner h1 {
    margin-bottom: 16px !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
  }

  .hero-stats {
    margin: 16px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .hero-stat {
    min-height: 74px !important;
  }

  .home-banner__links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .home-banner__links .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    white-space: normal !important;
  }

  .home-banner__links .hero-microcopy {
    grid-column: 1 / -1;
    margin: 2px 0 0 !important;
    font-size: 12px;
    line-height: 1.5;
  }

  .run-block {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .header {
    z-index: 100000 !important;
  }

  .header__wrap {
    z-index: 99999 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 14px 16px 110px !important;
    background: #111820 !important;
  }

  body.fixed .valetax-mobile-cta,
  body.menu-open .valetax-mobile-cta {
    display: none !important;
  }

  .header__wrap .main-nav,
  .header__wrap .main-nav__list,
  .header__wrap .main-nav__list > .menu-item,
  .header__wrap .sub-menu,
  .header__wrap .sub-menu > .menu-item {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
  }

  .header__wrap .main-nav__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .header__wrap .main-nav__list > .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .header__wrap .main-nav a,
  .header__wrap .sub-menu a {
    min-height: 48px !important;
    height: auto !important;
    padding: 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    line-height: 1.25 !important;
    color: #f8fbfa !important;
    white-space: normal !important;
  }

  .header__wrap .main-nav__list > .menu-item > a {
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .header__wrap .sub-menu {
    display: none !important;
    padding: 0 0 8px 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .header__wrap .menu-item.is-open > .sub-menu {
    display: block !important;
  }

  .header__wrap .sub-menu a {
    min-height: 42px !important;
    padding: 10px 0 !important;
    color: #cfd7d4 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
  }

  .header__wrap .menu-item-has-children > a {
    padding-right: 44px !important;
  }

  .vt-submenu-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 7px;
    cursor: pointer;
  }

  .header__wrap .menu-item-has-children {
    position: relative !important;
  }

  .vt-submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
  }

  .menu-item.is-open > .vt-submenu-toggle::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .header__wrap .btns__wrap,
  .header__wrap .lang {
    width: 100% !important;
    height: auto !important;
    margin: 12px 0 0 !important;
  }

  .header__wrap .btns__wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .header__wrap .btn,
  .header__wrap .btn-mob-login {
    width: 100% !important;
    min-width: 0 !important;
  }

  .valetax-mobile-cta {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px !important;
    transform: translateY(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
  }

  body.valetax-sticky-cta-visible .valetax-mobile-cta {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .valetax-mobile-cta a {
    min-height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .account-types__table::before {
    content: "Bandingkan tipe akun";
    display: block;
    margin: 0 16px 12px;
    color: #111820;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
  }

  .account-types__table-content {
    display: none !important;
  }

  .vt-account-cards {
    width: calc(100% - 32px);
    margin: 0 auto 22px;
    display: grid;
    gap: 12px;
  }

  .vt-account-card {
    border: 1px solid #e1e8e4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 24, 32, .08);
    overflow: hidden;
  }

  .vt-account-card summary {
    min-height: 68px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    align-items: center;
    list-style: none;
    cursor: pointer;
  }

  .vt-account-card summary::-webkit-details-marker {
    display: none;
  }

  .vt-account-title {
    color: #111820;
    font-size: 20px;
    font-weight: 900;
  }

  .vt-account-summary {
    color: #2f8052;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
  }

  .vt-account-card summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #111820;
    border-bottom: 2px solid #111820;
    transform: rotate(45deg);
    justify-self: end;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .vt-account-card[open] summary::after {
    transform: rotate(225deg);
  }

  .vt-account-specs {
    margin: 0;
    padding: 0 18px 18px;
    display: grid;
    gap: 0;
  }

  .vt-account-row {
    padding: 11px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    border-top: 1px solid #edf1ef;
  }

  .vt-account-row dt {
    color: #5a6570;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

  .vt-account-row dd {
    margin: 0;
    color: #111820;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: right;
  }

  .footer-text__wrap {
    max-height: 260px;
    overflow: auto;
    padding-right: 6px;
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .vt-account-cards {
    display: none !important;
  }
}


/* P1 trust polish - 2026-06-30 */
.tabs .btn--black,
.tabs .btn--white,
.tabs-container__body .btn {
  max-width: 100%;
  white-space: normal !important;
  line-height: 1.2 !important;
  text-align: center;
  overflow: visible !important;
}

.tabs .btn--black,
.tabs .btn--white {
  width: auto !important;
  min-width: 170px;
  height: auto !important;
  min-height: 50px;
  padding: 12px 18px !important;
  display: inline-flex !important;
}

.start-trading .img-container pre {
  display: none !important;
}

.footer__content {
  align-items: flex-start !important;
}

.footer__content-info,
.footer-nav,
.social {
  min-width: 0;
}

.social__link {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.social__link img {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  opacity: 1 !important;
}

.payment-chanels__list {
  max-width: none !important;
  align-items: center;
}

.payment-chanels__list .wp-block-image {
  min-width: 42px;
  min-height: 24px;
}

.payment-chanels__list img {
  display: block !important;
  width: auto !important;
  max-width: 68px !important;
  min-height: 18px;
  max-height: 32px !important;
  object-fit: contain;
}

.down__links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

.down__link {
  display: block !important;
  width: 120px !important;
  min-height: 36px;
}

.down__link img {
  display: block !important;
  width: 120px !important;
  height: auto !important;
  min-height: 36px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .footer__content {
    display: grid !important;
    grid-template-columns: minmax(160px, .75fr) minmax(360px, 1.55fr) minmax(260px, .9fr);
    gap: 32px !important;
  }

  .social,
  .footer-nav,
  .footer__content-info {
    width: 100% !important;
    order: initial !important;
  }

  .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
  }

  .footer__content-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px !important;
  }
}

@media (max-width: 1023px) {
  .footer__content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .social,
  .footer-nav,
  .footer__content-info {
    width: 100% !important;
    order: initial !important;
  }

  .footer-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-nav__sublist {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .footer__content-info {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 520px) {
  .footer-nav__sublist {
    grid-template-columns: 1fr !important;
  }
}


/* P1 footer payment logo refinement - 2026-06-30 */
.payment-chanels__list img {
  width: 58px !important;
  height: 24px !important;
  min-height: 0 !important;
  max-width: 58px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

.payment-chanels__list .wp-block-image {
  width: 58px !important;
  height: 24px !important;
  min-width: 58px !important;
  min-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* Total audit fixes - 2026-06-30 */
.footer-nav__sublist {
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.footer-nav__list-link {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.45 !important;
}

.page-template-copy-trading .btn,
.page-template-copy-trading .btn--black {
  width: auto !important;
  min-width: 190px;
  max-width: 100%;
  padding-right: 18px !important;
  padding-left: 18px !important;
  white-space: normal !important;
}

body:not(.wp-singular) > .header .box-center > a:first-child img[src*="valetax-logo.svg"] {
  width: 180px !important;
  max-width: 42vw !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  body:not(.wp-singular) > .header .box-center > a:first-child img[src*="valetax-logo.svg"] {
    width: 132px !important;
    max-width: 42vw !important;
  }

  body:not(.wp-singular) > .header nav {
    display: none !important;
  }
}
