/* ============================================================
   Trading Bebas Finansial — Sub-page styles
   Uses the design tokens defined in tbf.css (light by default,
   dark when [data-theme="dark"] is set on <html>).
   ============================================================ */

/* ===== Mini grid (bootstrap-like, scoped) ===== */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; width: 100%; }
.g-2 { gap: 8px; } .g-3 { gap: 12px; } .g-4 { gap: 20px; } .g-5 { gap: 32px; }
.col-md-4 { width: 33.3333%; } .col-md-6 { width: 50%; } .col-md-8 { width: 66.6667%; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.d-block { display: block; }
.h-100 { height: 100%; }
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-decoration-none { text-decoration: none; }
.text-dark { color: var(--c-ink); }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-top: 0; margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; } .mb-4 { margin-bottom: 28px; }
.px-4 { padding-left: 28px; padding-right: 28px; }
.small { font-size: 13.5px; }
@media (max-width: 900px) {
  .col-md-4, .col-md-6, .col-md-8 { width: 100%; }
  .g-4, .g-5 { gap: 20px; }
}
@media (max-width: 560px) {
  .px-4 { padding-left: 0; padding-right: 0; }
}

/* ===== Page hero ===== */
.page-hero {
  position: relative; overflow: hidden;
  background: #060b16;
  color: #fff;
  padding: 96px 0 72px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 12% 40%, rgba(37, 99, 235, 0.32), transparent 70%),
    linear-gradient(120deg, #060b16 0%, #0b1a35 60%, #060b16 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 45%, #000 15%, transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #93c5fd; display: inline-block;
  margin-bottom: 14px; padding: 5px 12px;
  border: 1px solid rgba(147, 197, 253, 0.32); border-radius: var(--r-pill);
  background: rgba(37, 99, 235, 0.14);
}
.page-hero p { color: rgba(226, 232, 240, 0.72); font-size: 17px; max-width: 68ch; }
.page-hero h1 {
  color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 14px;
}

/* ===== Hero stat strip ===== */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px;
}
.hero-stats .hs-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 20px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px); min-width: 150px;
}
.hero-stats .hs-val {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: -0.02em;
}
.hero-stats .hs-val em { font-style: normal; color: #93c5fd; }
.hero-stats .hs-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(226, 232, 240, 0.55);
}
.breadcrumb-nav {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.62);
}
.breadcrumb-nav a { color: rgba(226, 232, 240, 0.62); transition: color 0.2s; }
.breadcrumb-nav a:hover { color: #93c5fd; }

/* ===== Section primitives ===== */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-soft { background: var(--c-bg-2); }
.section-head { margin-bottom: 36px; }
.section-head .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-accent); display: inline-block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; margin-bottom: 12px; color: var(--c-ink); }
.section-head p { color: var(--c-mute); font-size: 16px; max-width: 62ch; }

/* ===== Text helpers ===== */
.ptgb-rich { color: var(--c-body); font-size: 16px; line-height: 1.78; }
.ptgb-rich p { margin-bottom: 16px; }
.ptgb-muted { color: var(--c-mute); }
.ptgb-iso {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--c-mute); display: inline-flex; align-items: center; gap: 9px;
}
.ptgb-link {
  margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--c-accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.ptgb-link i { transition: transform 0.25s ease; }
.pkg-card:hover .ptgb-link i { transform: translateX(4px); }
.ptgb-spec { display: grid; gap: 12px; }
.ptgb-spec li {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14.5px; color: var(--c-body);
}
.ptgb-spec strong { color: var(--c-ink); }
.chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-accent);
  background: var(--c-accent-soft); border: 1px solid var(--c-accent-soft);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ===== Detail hero image ===== */
.detail-hero {
  background-size: cover; background-position: center;
  border-radius: var(--r-lg); border: 1px solid var(--c-line);
  min-height: 320px; height: 100%;
  box-shadow: var(--c-shadow-card);
}
.feature-icon {
  width: 76px; height: 76px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--c-accent-soft); color: var(--c-accent); font-size: 1.7rem;
}

/* ===== Package / content card ===== */
.pkg-card {
  display: block; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--c-shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pkg-card:hover {
  transform: translateY(-4px); border-color: var(--c-accent);
  box-shadow: 0 28px 52px -30px var(--c-accent-glow);
}
.pkg-img {
  background-size: cover; background-position: center;
  aspect-ratio: 16/10; position: relative;
}
.pkg-body { padding: 22px 24px 26px; }
.pkg-body h5 { font-size: 18px; line-height: 1.3; margin-bottom: 6px; color: var(--c-ink); }
.pkg-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-mute-2);
}
.pkg-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-accent); color: #fff;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
  box-shadow: 0 12px 24px -12px var(--c-accent-glow);
}

/* ===== Item card (business units) ===== */
.ptgb-item-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ptgb-item-card:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.ptgb-item-card h6 { font-size: 16px; color: var(--c-ink); font-weight: 700; }
.ptgb-item-img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: var(--r-md); margin-bottom: 14px;
}

/* ===== Contact ===== */
.footer-contact { display: grid; gap: 12px; margin-bottom: 8px; }
.footer-contact li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--c-body); line-height: 1.55;
}
.footer-contact i { color: var(--c-accent); margin-top: 5px; width: 16px; }
.map-embed {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line);
  background: var(--c-surface-2); line-height: 0;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
.ptgb-contact-box {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--c-shadow-card);
}
.ptgb-form .row { margin-bottom: 0; }
.ptgb-form .row > [class*="col-"] { margin-bottom: 16px; }
.ptgb-form .form-group { margin-bottom: 18px; }
.ptgb-form label { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 8px; display: block; }
.site-input.form-control,
.ptgb-form .form-control {
  width: 100%; background: var(--c-bg-2); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 15px; font-family: var(--font-sans);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ptgb-form textarea.form-control { min-height: 130px; resize: vertical; }
.ptgb-form select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-mute) 50%), linear-gradient(135deg, var(--c-mute) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.site-input.form-control:focus,
.ptgb-form .form-control:focus {
  outline: none; border-color: var(--c-accent); background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.ptgb-form .help-block { font-size: 12px; color: var(--c-danger); margin-top: 6px; }
.alert {
  border-radius: var(--r-md); padding: 14px 18px; font-size: 14.5px; margin-bottom: 22px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.32); color: var(--c-success); }

/* ===== Buttons ===== */
.btn-brand { background: var(--c-accent); color: #fff; box-shadow: 0 10px 26px -12px var(--c-accent-glow); }
.btn-brand:hover { background: var(--c-accent-hover); color: #fff; }
.btn-outline-secondary {
  background: transparent; color: var(--c-ink); border: 1px solid var(--c-line-2);
}
.btn-outline-secondary:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ===== Auth / misc pages ===== */
.auth-wrap { min-height: 62vh; display: grid; place-items: center; padding: 80px 0; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-xl);
  padding: 36px; box-shadow: var(--c-shadow-card);
}
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .form-control {
  width: 100%; background: var(--c-bg-2); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 15px; width: 100%;
}
.auth-card .form-control:focus { outline: none; border-color: var(--c-accent); }

/* ============================================================
   Pendanaan page — premium components
   ============================================================ */

/* ===== Intro (copy + figure) ===== */
.pd-intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd-intro h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.18; margin-bottom: 18px; }
.pd-intro .pd-answer {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--c-accent); margin-bottom: 18px;
}
.pd-intro p { color: var(--c-body); font-size: 16px; line-height: 1.78; margin-bottom: 16px; }
.pd-legal {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--c-accent-soft); border: 1px solid var(--c-accent-soft);
  border-radius: var(--r-md); padding: 14px 18px; margin-top: 22px;
}
.pd-legal i { color: var(--c-accent); margin-top: 3px; }
.pd-legal span { font-size: 14px; color: var(--c-body); line-height: 1.6; }
.pd-legal strong { color: var(--c-ink); }

.pd-figure { position: sticky; top: 96px; }
.pd-figure .pd-fig-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-line); box-shadow: var(--c-shadow-card);
}
.pd-figure img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.pd-figure .pd-fig-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px; color: #fff; font-size: 13px;
  background: linear-gradient(to top, rgba(6, 11, 22, 0.88), transparent);
}
.pd-figure .pd-fig-cap .mono { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #93c5fd; margin-bottom: 3px; }

/* ===== Process steps ===== */
.pd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-step {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 24px; position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.pd-step:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.pd-step .pd-step-no {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--c-accent); display: block; margin-bottom: 12px;
}
.pd-step h4 { font-size: 17px; margin-bottom: 8px; }
.pd-step p { font-size: 14.5px; color: var(--c-mute); line-height: 1.65; margin: 0; }

/* ===== Tier cards (Bronze / Silver / Gold) ===== */
.pd-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pd-tier {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--c-shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pd-tier:hover { transform: translateY(-4px); border-color: var(--c-accent); }
.pd-tier .pd-tier-top {
  padding: 22px 24px 20px; border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-accent-soft), transparent);
}
.pd-tier .pd-tier-stage {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-mute-2); display: block; margin-bottom: 8px;
}
.pd-tier h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 4px; }
.pd-tier .pd-tier-sub { font-size: 13.5px; color: var(--c-mute); }
.pd-tier .pd-tier-body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pd-tier .pd-rule {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--c-body); line-height: 1.6;
}
.pd-tier .pd-rule i { color: var(--c-accent); font-size: 12px; margin-top: 5px; }
.pd-tier .pd-rule strong { color: var(--c-ink); }
.pd-tier.is-gold {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 26px 54px -34px rgba(245, 158, 11, 0.55);
}
.pd-tier.is-gold:hover { border-color: #f59e0b; }
.pd-tier.is-gold .pd-tier-top {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), transparent);
  border-bottom-color: rgba(245, 158, 11, 0.3);
}
.pd-tier.is-gold .pd-tier-stage { color: #b45309; }
.pd-tier.is-gold .pd-rule i { color: #f59e0b; }
.pd-split {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--c-line-2);
  display: flex; gap: 8px;
}
.pd-split .sp {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: var(--r-sm);
  background: var(--c-bg-2); border: 1px solid var(--c-line);
}
.pd-split .sp b {
  display: block; font-family: var(--font-display); font-size: 19px;
  font-weight: 800; color: var(--c-ink); letter-spacing: -0.02em;
}
.pd-split .sp span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-mute-2);
}
.pd-tier.is-gold .pd-split .sp { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); }

/* ===== Challenge fee table ===== */
.pd-table-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--c-shadow-card);
}
.pd-table-scroll { overflow-x: auto; }
.pd-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.pd-table th, .pd-table td {
  padding: 15px 20px; text-align: center; font-size: 15px;
  border-bottom: 1px solid var(--c-line);
}
.pd-table thead th {
  background: var(--c-accent-soft);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-accent); font-weight: 600;
}
.pd-table thead th:first-child { text-align: left; }
.pd-table tbody th {
  text-align: left; font-weight: 600; font-size: 14px; color: var(--c-ink);
  background: var(--c-bg-2);
}
.pd-table tbody td { font-family: var(--font-mono); color: var(--c-body); }
.pd-table tbody tr:last-child th, .pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-table tbody tr:hover td { background: var(--c-accent-soft); }
.pd-table .fee { font-weight: 600; color: var(--c-accent); }
.pd-table-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-top: 1px solid var(--c-line);
  background: var(--c-bg-2); font-size: 14px; color: var(--c-mute); line-height: 1.6;
}
.pd-table-note i { color: var(--c-accent); margin-top: 4px; }

/* ===== Terms / notes grid ===== */
.pd-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pd-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 18px 20px;
  transition: border-color 0.3s ease;
}
.pd-note:hover { border-color: var(--c-accent); }
.pd-note i {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--c-accent-soft); color: var(--c-accent);
}
.pd-note h5 { font-size: 15px; margin-bottom: 4px; }
.pd-note p { font-size: 13.5px; color: var(--c-mute); line-height: 1.6; margin: 0; }

/* ===== CTA box ===== */
.pd-cta {
  position: relative; overflow: hidden;
  background: #060b16; border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 52px); text-align: center;
  border: 1px solid rgba(147, 197, 253, 0.16);
}
.pd-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(37, 99, 235, 0.36), transparent 70%),
    linear-gradient(120deg, #060b16, #0b1a35 55%, #060b16);
}
.pd-cta > * { position: relative; z-index: 1; }
.pd-cta h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.pd-cta p { color: rgba(226, 232, 240, 0.7); font-size: 16px; max-width: 60ch; margin: 0 auto 26px; }
.pd-cta .btn { display: inline-flex; align-items: center; gap: 10px; }
.pd-cta .pd-cta-meta {
  margin-top: 18px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226, 232, 240, 0.5);
}

@media (max-width: 992px) {
  .pd-intro { grid-template-columns: 1fr; }
  .pd-figure { position: static; }
  .pd-steps, .pd-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-notes { grid-template-columns: 1fr; }
  .hero-stats .hs-item { min-width: calc(50% - 6px); flex: 1; }
}
