:root {
  --bg: #050711;
  --panel: #0c1220;
  --panel-soft: #11192a;
  --text: #f7f9ff;
  --muted: #9ca6ba;
  --border: rgba(255, 255, 255, 0.09);
  --cyan: #18ccf3;
  --blue: #2778ff;
  --purple: #8a5cf6;
  --pink: #fa3c98;
  --success: #40d79b;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at 0% 20%,
      rgba(24, 204, 243, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 100% 32%,
      rgba(250, 60, 152, 0.11),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(138, 92, 246, 0.09),
      transparent 35%
    ),
    var(--bg);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  width: min(1240px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.secure-pill {
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(64, 215, 155, 0.23);
  border-radius: 999px;
  color: #a9f1d1;
  background: rgba(64, 215, 155, 0.06);
  font-size: 11px;
  font-weight: 700;
}

.secure-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 13px var(--success);
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.view {
  padding: 65px 0 80px;
}

.home-hero {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 15px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

h1 span {
  display: block;
  color: transparent;
  background:
    linear-gradient(
      100deg,
      var(--cyan),
      var(--purple),
      var(--pink)
    );
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-hero .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.access-card {
  min-height: 330px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 24px;
  text-decoration: none;
  background:
    linear-gradient(
      145deg,
      rgba(16, 23, 40, 0.96),
      rgba(7, 10, 19, 0.97)
    );
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.access-card:hover {
  transform: translateY(-4px);
}

.access-card.cyan:hover {
  border-color: rgba(24, 204, 243, 0.48);
  box-shadow: 0 20px 55px rgba(24, 204, 243, 0.10);
}

.access-card.purple:hover {
  border-color: rgba(138, 92, 246, 0.52);
  box-shadow: 0 20px 55px rgba(138, 92, 246, 0.11);
}

.access-card.pink:hover {
  border-color: rgba(250, 60, 152, 0.48);
  box-shadow: 0 20px 55px rgba(250, 60, 152, 0.10);
}

.access-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 900;
}

.cyan .access-icon {
  color: var(--cyan);
  background: rgba(24, 204, 243, 0.11);
}

.purple .access-icon {
  color: #ab8aff;
  background: rgba(138, 92, 246, 0.12);
}

.pink .access-icon {
  color: #ff78b7;
  background: rgba(250, 60, 152, 0.11);
}

.card-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.access-card h2 {
  margin-bottom: 12px;
  font-size: 27px;
}

.access-card p:not(.card-label) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  padding-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.cyan .card-footer strong,
.cyan .card-footer span {
  color: var(--cyan);
}

.purple .card-footer strong,
.purple .card-footer span {
  color: #ae8dff;
}

.pink .card-footer strong,
.pink .card-footer span {
  color: #ff75b5;
}

.trust-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.back-link {
  display: inline-block;
  margin-bottom: 35px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.back-link:hover {
  color: var(--cyan);
}

.market-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.market-heading h1 {
  max-width: 760px;
  font-size: clamp(35px, 5vw, 54px);
}

.currency-badge {
  padding: 12px 16px;
  border: 1px solid rgba(24, 204, 243, 0.25);
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(24, 204, 243, 0.07);
  font-weight: 850;
}

.catalog-panel,
.form-panel,
.summary-panel {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background:
    linear-gradient(
      145deg,
      rgba(15, 22, 37, 0.96),
      rgba(7, 10, 19, 0.97)
    );
}

.connection-filters {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.connection-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-weight: 750;
}

.connection-button.active {
  color: #fff;
  border-color: var(--cyan);
  background:
    linear-gradient(
      100deg,
      rgba(24, 204, 243, 0.18),
      rgba(138, 92, 246, 0.13)
    );
}

.loading {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.plan-card {
  min-height: 190px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 204, 243, 0.40);
}

.plan-card.selected {
  border-color: var(--cyan);
  background:
    linear-gradient(
      145deg,
      rgba(24, 204, 243, 0.11),
      rgba(138, 92, 246, 0.09),
      rgba(250, 60, 152, 0.06)
    );
  box-shadow: 0 0 28px rgba(24, 204, 243, 0.08);
}

.plan-card .plan-tag {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.10em;
}

.plan-card h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.3;
}

.plan-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.plan-price {
  margin-top: auto;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

.checkout-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 20px;
}

.section-heading {
  margin-bottom: 23px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

label {
  color: #d8deea;
  font-size: 12px;
  font-weight: 750;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: white;
  background: rgba(3, 7, 15, 0.62);
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 204, 243, 0.08);
}

label small {
  min-height: 15px;
  margin-top: 5px;
  display: block;
  color: #ff8890;
  font-size: 10px;
}

.terms {
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.terms input {
  margin-top: 3px;
  accent-color: var(--purple);
}

.pay-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(
      100deg,
      #12bee8,
      #7759ef,
      #ef3b91
    );
  cursor: pointer;
  font-weight: 900;
  box-shadow:
    0 13px 35px rgba(24, 204, 243, 0.12),
    0 10px 32px rgba(250, 60, 152, 0.10);
}

.pay-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.form-message {
  margin-bottom: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffafb3;
  border: 1px solid rgba(255, 107, 112, 0.22);
  background: rgba(255, 107, 112, 0.07);
  font-size: 12px;
}

.summary-panel {
  align-self: start;
  position: sticky;
  top: 20px;
}

.empty-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.summary-name {
  margin-bottom: 8px;
  font-size: 20px;
}

.summary-detail {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.summary-total {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-total span {
  color: var(--muted);
  font-size: 12px;
}

.summary-total strong {
  color: var(--cyan);
  font-size: 27px;
}

.payment-notice {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(138, 92, 246, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(24, 204, 243, 0.05),
      rgba(138, 92, 246, 0.07),
      rgba(250, 60, 152, 0.04)
    );
}

.payment-notice strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.payment-notice p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

footer {
  width: min(1240px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: #687286;
  font-size: 10px;
}

@media (max-width: 980px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: 265px;
  }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 74px;
  }

  .brand img {
    width: 62px;
    height: 50px;
  }

  .brand small,
  .secure-pill {
    display: none;
  }

  .brand strong {
    font-size: 12px;
  }

  .view {
    padding: 40px 0 60px;
  }

  .home-hero {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 38px;
  }

  .access-card {
    min-height: 245px;
    padding: 22px;
  }

  .market-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .plans-grid,
  .fields-grid {
    grid-template-columns: 1fr;
  }

  .catalog-panel,
  .form-panel,
  .summary-panel {
    padding: 17px;
    border-radius: 18px;
  }

  footer {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}


/* DIRECT LINKS ONLY TVPH V1 */

.direct-access-hero {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 45px 0 35px;
  text-align: center;
}

.direct-access-hero > img {
  width: 125px;
  height: 100px;
  margin-bottom: 25px;
  object-fit: contain;
  filter:
    drop-shadow(
      0 0 20px
      rgba(24, 204, 243, 0.16)
    )
    drop-shadow(
      0 0 25px
      rgba(250, 60, 152, 0.10)
    );
}

.direct-access-hero .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.direct-access-notice {
  max-width: 540px;
  margin: 32px auto 0;
  padding: 20px;
  border:
    1px solid
    rgba(138, 92, 246, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(24, 204, 243, 0.05),
      rgba(138, 92, 246, 0.08),
      rgba(250, 60, 152, 0.05)
    );
}

.direct-access-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.direct-access-notice p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.back-link {
  display: none !important;
}

@media (max-width: 640px) {
  .direct-access-hero {
    padding-top: 25px;
  }

  .direct-access-hero > img {
    width: 105px;
    height: 85px;
  }
}


/* TVPH MARKET WELCOME CSS V2 */

.market-welcome {
  margin-bottom: 48px;
  padding: 8px 0 48px;
  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.08);
}

.market-welcome-copy {
  max-width: 850px;
  margin: 0 auto 32px;
  text-align: center;
}

.market-welcome-copy h1 {
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.market-welcome-copy h1 span {
  display: block;
  color: transparent;
  background:
    linear-gradient(
      100deg,
      var(--cyan) 0%,
      var(--purple) 52%,
      var(--pink) 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
}

.market-welcome-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.content-stats {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.content-stat {
  min-height: 145px;
  padding: 22px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border:
    1px solid
    rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  text-align: center;
  background:
    linear-gradient(
      145deg,
      rgba(15, 23, 40, 0.96),
      rgba(7, 10, 20, 0.97)
    );
}

.content-stat strong {
  margin-bottom: 9px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 900;
  white-space: nowrap;
}

.content-stat span {
  color: var(--muted);
  font-size: 12px;
}

.content-stat.cyan {
  border-color: rgba(24, 204, 243, 0.36);
}

.content-stat.cyan strong {
  color: var(--cyan);
}

.content-stat.pink {
  border-color: rgba(250, 60, 152, 0.36);
}

.content-stat.pink strong {
  color: var(--pink);
}

.content-stat.purple {
  border-color: rgba(174, 75, 255, 0.36);
}

.content-stat.purple strong {
  color: #b45aff;
}

.content-stat.blue {
  border-color: rgba(112, 94, 255, 0.38);
}

.content-stat.blue strong {
  color: #8178ff;
}

.welcome-benefits {
  margin-top: 23px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-benefits span {
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border:
    1px solid
    rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #c4cbda;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.welcome-benefits span:nth-child(1) {
  border-color: rgba(24, 204, 243, 0.27);
}

.welcome-benefits span:nth-child(2) {
  border-color: rgba(250, 60, 152, 0.27);
}

.welcome-benefits span:nth-child(3) {
  border-color: rgba(138, 92, 246, 0.29);
}

.welcome-benefits span:nth-child(1) b {
  color: var(--cyan);
}

.welcome-benefits span:nth-child(2) b {
  color: var(--pink);
}

.welcome-benefits span:nth-child(3) b {
  color: #ad82ff;
}

.welcome-benefits b {
  font-size: 15px;
}

@media (max-width: 900px) {
  .content-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .market-welcome {
    margin-bottom: 36px;
    padding-top: 0;
    padding-bottom: 38px;
  }

  .market-welcome-copy {
    margin-bottom: 25px;
  }

  .market-welcome-copy h1 {
    font-size: 42px;
  }

  .market-welcome-description {
    font-size: 14px;
    line-height: 1.65;
  }

  .content-stats {
    gap: 11px;
  }

  .content-stat {
    min-height: 132px;
    padding: 17px 8px;
    border-radius: 17px;
  }

  .content-stat strong {
    font-size: 23px;
  }

  .content-stat span {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .market-welcome-copy h1 {
    font-size: 37px;
  }

  .content-stat strong {
    font-size: 20px;
  }
}
