/* 🧱 Component Styles & Visual Elements */

/* ============================================================
CARD
============================================================ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--n200);
}

.card-body {
  padding: var(--s6);
}

.card-header {
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--n100);
  font-size: 15px;
  font-weight: 600;
  color: var(--n900);
}

.card-footer {
  padding: var(--s4) var(--s6);
  border-top: 1px solid var(--n100);
  background: var(--n50);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ============================================================
BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--r-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--r-md);
}

.btn-xl {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-lg);
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), .28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), .35);
  transform: translateY(-1px);
}

.btn-buy {
  background: var(--cta-buy);
  color: var(--white);
  border-color: var(--cta-buy-dark);
  box-shadow: 0 2px 8px rgba(var(--cta-buy-rgb), .25);
}

.btn-buy:hover {
  background: var(--cta-buy-dark);
  border-color: var(--cta-buy-darker);
  box-shadow: 0 4px 14px rgba(var(--cta-buy-rgb), .35);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-buy:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:disabled,
.btn-buy:disabled {
  background: var(--n300);
  border-color: var(--n300);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-secondary:disabled {
  color: var(--n400);
  border-color: var(--n300);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--primary-light);
}

.btn-ghost:disabled {
  color: var(--n400);
  cursor: not-allowed;
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(var(--success-rgb), .25);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-neutral {
  background: var(--n100);
  color: var(--n700);
  border-color: var(--n200);
}

.btn-neutral:hover {
  background: var(--n200);
}

/* ============================================================
INPUTS
============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--n700);
}

.form-label span {
  color: var(--danger);
  margin-left: 2px;
}

.form-hint {
  font-size: 12px;
  color: var(--n400);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--n400);
  pointer-events: none;
  font-size: 15px;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--n50);
  border: 1.5px solid var(--n200);
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--n600);
  height: 42px;
  white-space: nowrap;
}

.input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--n200);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--n900);
  background: var(--white);
  outline: none;
  transition: all .15s;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.input:disabled {
  background: var(--n100);
  color: var(--n400);
  cursor: not-allowed;
}

.input::placeholder {
  color: var(--n400);
}

.input.has-icon {
  padding-left: 38px;
}

.input.has-prefix {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.input.error {
  border-color: var(--danger);
}

.input.error:focus {
  box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .18);
}

.select {
  appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--n400);
  font-size: 13px;
}

/* ============================================================
CHECKBOX & RADIO
============================================================ */
.check-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.check-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  cursor: pointer;
  font-size: 14px;
  color: var(--n700);
  position: relative;
}

.check-item input[type="checkbox"],
.radio-item input[type="radio"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.check-item input[type="checkbox"]:focus-visible + .check-box,
.radio-item input[type="radio"]:focus-visible + .radio-dot {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1.5px solid var(--n300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  position: relative;
  z-index: 1;
}

.check-item input:checked+.check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.check-item input:checked+.check-box::after {
  content: "✓";
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--n300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  position: relative;
  z-index: 1;
}

.radio-item input:checked+.radio-dot {
  border-color: var(--primary);
}

.radio-item input:checked+.radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: block;
}

/* ============================================================
BADGE / TAG
============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning-text);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-neutral {
  background: var(--n100);
  color: var(--n600);
}

.badge-lg {
  padding: 5px 12px;
  font-size: 12px;
}

.pkg-badge-popular {
  background: var(--primary);
  color: var(--white);
}

.pkg-badge-saving {
  background: var(--success-light);
  color: var(--success);
}

/* ============================================================
STATUS PILL
============================================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pending {
  background: var(--warning-light);
  color: var(--warning-text);
}

.status-pending .dot {
  background: var(--warning);
}

.status-waiting {
  background: var(--status-waiting-bg);
  color: var(--status-waiting-text);
}

.status-waiting .dot {
  background: var(--status-waiting-dot);
}

.status-success {
  background: var(--success-light);
  color: var(--success);
}

.status-success .dot {
  background: var(--success);
}

.status-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.status-danger .dot {
  background: var(--danger);
}

/* ============================================================
ALERT
============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
}

.alert-success {
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.alert-warning {
  background: var(--warning-light);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.alert-danger {
  background: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.alert-info {
  background: var(--primary-light);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
DIVIDER
============================================================ */
.divider {
  height: 1px;
  background: var(--n200);
  margin: var(--s6) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--s4);
  color: var(--n400);
  font-size: 12px;
  font-weight: 500;
  margin: var(--s6) 0;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--n200);
}

/* ============================================================
SKELETON LOADER
============================================================ */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--n100) 25%, var(--n200) 50%, var(--n100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--r-sm);
}

.skel-text {
  height: 14px;
  border-radius: 4px;
}

.skel-card {
  height: 100px;
  border-radius: var(--r-lg);
}

/* ============================================================
SPINNER
============================================================ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--n200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ============================================================
COLOR SWATCH
============================================================ */
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
}

.swatch-box {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-swatch);
}

.swatch-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--n700);
}

.swatch-hex {
  font-size: 10px;
  color: var(--n400);
}

/* ============================================================
PAYMENT METHOD CARD
============================================================ */
.pay-card {
  border: 2px solid var(--n200);
  border-radius: var(--r-lg);
  padding: var(--s4);
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
  position: relative;
}

.pay-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pay-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pay-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pay-card.selected .pay-check {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.pay-check {
  display: none;
}

.pay-logo {
  font-size: 22px;
  margin-bottom: var(--s2);
}

.pay-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--n900);
  margin-bottom: 4px;
}

.pay-desc {
  font-size: 11px;
  color: var(--n600);
  line-height: 1.4;
}

/* Payment logo badges */
.pay-logos {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--s2);
}

.pay-logo-badge {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
}

/* ============================================================
   INTENTIONAL MOCK EXTERNAL BRAND COLORS
   (Preserved as external brand colors to maintain brand parity)
   ============================================================ */
.logo-va {
  background: #003087; /* VA Default Brand Blue */
  color: white;
}

.logo-bca {
  background: #003087; /* BCA Brand Blue */
  color: #F5A623;      /* BCA Brand Yellow Accent */
}

.logo-mandiri {
  background: #003087; /* Mandiri Brand Blue */
  color: white;
}

.logo-bni {
  background: #F47920; /* BNI Brand Orange */
  color: white;
}

.logo-bri {
  background: #003087; /* BRI Brand Blue */
  color: white;
}

.logo-qris {
  background: #EB0029; /* QRIS Brand Red */
  color: white;
  letter-spacing: .08em;
}

.logo-visa {
  background: #1A1F71; /* Visa Brand Navy */
  color: white;
}

.logo-mc {
  background: linear-gradient(135deg, #EB001B, #F79E1B); /* MasterCard Brand Red/Yellow Gradient */
  color: white;
}

.logo-ovo {
  background: #4B2D88; /* OVO Brand Purple */
  color: white;
}

.logo-dana {
  background: #108FE9; /* DANA Brand Blue */
  color: white;
}

.logo-gopay {
  background: #00AED6; /* GoPay Brand Cyan */
  color: white;
}

.logo-alfamart {
  background: #EF2929; /* Alfamart Brand Red */
  color: white;
}

/* ============================================================
PACKAGE CARDS
============================================================ */
.pkg-card {
  border: 2px solid var(--n200);
  border-radius: var(--r-lg);
  padding: var(--s5);
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.pkg-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pkg-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pkg-card.selected {
  border-color: var(--primary);
  background: var(--surface-primary-soft);
  box-shadow: var(--shadow-lg);
}

.pkg-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
}

.pkg-badge-static {
  position: static;
}

.pkg-duration {
  font-size: 15px;
  font-weight: 700;
  color: var(--n900);
  margin-bottom: 4px;
}

.pkg-desc {
  font-size: 12px;
  color: var(--n600);
  margin-bottom: var(--s4);
  line-height: 1.4;
}

.pkg-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: 2px;
}

.pkg-per {
  font-size: 11px;
  color: var(--n400);
  margin-bottom: var(--s5);
}

.pkg-selected-check {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.pkg-card.selected .pkg-selected-check {
  display: flex;
}

/* ============================================================
STEPPER
============================================================ */
.step-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
  flex: 1;
}

.step-list {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  justify-content: flex-end;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--n300);
  color: var(--n500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .3s;
}

.step-item.done .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.step-item.active .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.step-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--n500);
  white-space: nowrap;
}

.step-item.done .step-text {
  color: var(--success);
}

.step-item.active .step-text {
  color: var(--primary);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--n200);
  margin: 0 8px;
  max-width: 40px;
  transition: background .3s;
}

.step-line.done {
  background: var(--success);
}

@media (max-width: 860px) {
  .step-text {
    display: none;
  }
}

/* ============================================================
ORDER SUMMARY
============================================================ */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s2) 0;
}

.summary-row.total {
  border-top: 2px solid var(--n200);
  margin-top: var(--s3);
  padding-top: var(--s4);
}

.summary-label {
  font-size: 13px;
  color: var(--n600);
}

.summary-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--n900);
}

.summary-discount {
  color: var(--success);
}

.summary-total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--n900);
}

.summary-total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================================
COUPON INPUT
============================================================ */
.coupon-row .input {
  flex: 1;
}

/* ============================================================
FAQ ACCORDION
============================================================ */
.faq-item {
  border-bottom: 1px solid var(--n200);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s4) 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--n900);
}

.faq-q:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--n200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--n600);
  transition: all .2s;
}

.faq-item.open .faq-toggle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-a {
  font-size: 13px;
  color: var(--n600);
  line-height: 1.6;
  padding-bottom: var(--s4);
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ============================================================
DETAIL ROW TABLE
============================================================ */
.detail-table {
  width: 100%;
}

.detail-row {
  display: flex;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--n100);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-key {
  width: 45%;
  font-size: 13px;
  color: var(--n600);
}

.detail-val {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--n900);
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--n400);
  padding: 0 4px;
  font-size: 13px;
}

.copy-btn:hover {
  color: var(--primary);
}

/* ============================================================
SUPPORT CARD
============================================================ */
.support-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--status-waiting-bg) 100%);
  border: 1px solid var(--info-border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  text-align: center;
}

.support-icon {
  font-size: 32px;
  margin-bottom: var(--s3);
}

.support-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--n900);
  margin-bottom: var(--s1);
}

.support-subtitle {
  font-size: 12px;
  color: var(--n600);
  margin-bottom: var(--s4);
  line-height: 1.5;
}

.support-contacts {
  display: flex;
  justify-content: center;
  gap: var(--s6);
  margin-top: var(--s4);
  flex-wrap: wrap;
}

.support-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  text-align: center;
  font-size: 12px;
  color: var(--n700);
}

.contact-icon {
  font-size: 16px;
}

.support-contact-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--n700);
  line-height: 1.4;
}

.contact-icon-whatsapp,
.contact-icon-email {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

/* Intentional external/mock brand color for WhatsApp */
.contact-icon-whatsapp {
  color: #25D366;
}

.contact-icon-email {
  color: var(--n700);
}

.contact-icon-whatsapp svg,
.contact-icon-email svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* ============================================================
PRODUCT PAGE
============================================================ */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hero-accent-light);
  margin-bottom: var(--s3);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--s4);
}

.hero-title em {
  font-style: normal;
  color: var(--hero-accent);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--n300);
  max-width: 540px;
  margin: 0 auto var(--s8);
  line-height: 1.65;
}

.feature-card {
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--n200);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: var(--s3);
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--n900);
  margin-bottom: var(--s1);
}

.feature-desc {
  font-size: 13px;
  color: var(--n600);
  line-height: 1.5;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: var(--s2);
}

.section-sub {
  font-size: 15px;
  color: var(--n600);
  margin-bottom: var(--s8);
}

.section-center {
  text-align: center;
}



/* ============================================================
REFACTORED UTILITIES AND CLASSES (Pembersihan Inline Styles)
============================================================ */
.w-80pc {
  width: 80%;
}
.w-70pc {
  width: 70%;
}
.w-60pc {
  width: 60%;
}
.w-100pc {
  width: 100%;
}
.max-w-320 {
  max-width: 320px;
}
.max-w-240 {
  max-width: 240px;
}
.max-w-400 {
  max-width: 400px;
}
.max-w-780 {
  max-width: 780px;
}
.flex-1 {
  flex: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.gap-5 {
  gap: var(--s5);
}
.gap-8 {
  gap: var(--s8);
}
.d-block {
  display: block;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.h-80 {
  height: 80px;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.p-2 {
  padding: var(--s2);
}
.py-2 {
  padding: var(--s2) 0;
}
.px-2 {
  padding: 0 var(--s2);
}
.h-38 {
  height: 38px;
}
.font-size-28 {
  font-size: 28px;
}
.font-size-15 {
  font-size: 15px;
}

/* Design System Specific */
.ds-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: var(--s1);
}
.ds-page-sub {
  font-size: 14px;
  color: var(--n600);
}
.ds-subheading {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ds-subheading.mt-s4 {
  margin-top: var(--s4);
}

/* Swatches */
.swatch-box.primary { background: var(--primary); }
.swatch-box.primary-dark { background: var(--primary-dark); }
.swatch-box.success { background: var(--success); }
.swatch-box.warning { background: var(--warning); }
.swatch-box.danger { background: var(--danger); }
.swatch-box.n900 { background: var(--n900); }
.swatch-box.n600 { background: var(--n600); }
.swatch-box.n300 { background: var(--n300); }
.swatch-box.n100 { background: var(--n100); }
.swatch-box.white { background: var(--white); border: 1px solid var(--n200); }

/* Typography Preview Table */
.ds-table {
  width: 100%;
  border-collapse: collapse;
}
.ds-table tr {
  border-bottom: 1px solid var(--n100);
}
.ds-table thead tr {
  border-bottom: 1px solid var(--n200);
}
.ds-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--n400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ds-table td {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--n600);
}
.ds-table td.ds-example-cell {
  padding: 8px 12px;
}
.ds-preview-display {
  font-size: 22px;
}
.ds-preview-h1 {
  font-size: 20px;
}
.ds-preview-h2 {
  font-size: 17px;
}
.check-item.disabled {
  opacity: .5;
  pointer-events: none;
}

/* Button previews */
.btn-primary.ds-hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-secondary.ds-hover, .btn-ghost.ds-hover {
  background: var(--primary-light);
}

/* Layout specific */
.total-price {
  color: var(--primary);
  font-weight: 800;
}

/* Other items */
.bg-primary-light {
  background: var(--primary-light);
}
.bg-warning-light {
  background: var(--warning-light);
}
.bg-indigo-light {
  background: var(--status-waiting-bg);
}
.bg-success-light {
  background: var(--success-light);
}
.bg-danger-light {
  background: var(--danger-light);
}
.rounded-lg-bordered {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--n200);
}
.border-white-trans {
  border: 1.5px solid rgba(var(--white-rgb), .3);
}
.p-14-28 {
  padding: 14px 28px;
}
.card-header-product-pkg {
  text-align: center;
  padding: var(--s8) var(--s6) var(--s5);
}
.bg-gradient-hero-cta {
  background: linear-gradient(135deg, var(--n900) 0%, var(--primary-dark) 100%);
  border-radius: var(--r-xl);
  padding: var(--s12) var(--s8);
  color: white;
}


.btn-outline-custom {
  border: 1.5px solid rgba(var(--white-rgb), .3);
  color: white;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-outline-custom:hover {
  background: rgba(var(--white-rgb), .1);
}

.status-container-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3);
  border-radius: var(--r-md);
}

.empty-state-container {
  text-align: center;
  padding: var(--s4);
}
.empty-state-icon {
  font-size: 28px;
  color: var(--n300);
  margin-bottom: var(--s2);
}
.empty-state-text {
  font-size: 12px;
  color: var(--n400);
}

.qris-display-box {
  background: var(--white);
  border: 2px solid var(--n200);
  padding: var(--s4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: inline-block;
}

.ewallet-phone-group {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.ewallet-pay-btn {
  margin: var(--s2) auto 0;
  max-width: 240px;
  width: 100%;
}

.font-size-48 {
  font-size: 48px;
}

.summary-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.summary-icon-badge.large {
  font-size: 18px;
}
.summary-icon-badge.small {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
/* Intentional external/mock brand color for Mandiri badge */
.logo-badge-mandiri {
  background: #003087;
}

.btn-flex-sm {
  flex: 1;
  font-size: 13px;
}

.btn-confirm-pay {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
}

/* ============================================================
CHECKOUT PAGE
============================================================ */
.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--n900);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--n100);
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.form-section-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
PAYMENT PAGE
============================================================ */
.payment-icon {
  font-size: 56px;
  margin-bottom: var(--s3);
}

.payment-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: var(--s2);
}

.payment-subtitle {
  font-size: 14px;
  color: var(--n600);
  line-height: 1.6;
}

.payment-amount {
  background: var(--n900);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  text-align: center;
  margin: var(--s5) 0;
}

.payment-amount-label {
  font-size: 12px;
  color: var(--n400);
  margin-bottom: var(--s1);
  font-weight: 500;
}

.payment-amount-value {
  font-size: 28px;
  font-weight: 800;
  color: white;
}

.va-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  margin-bottom: var(--s4);
}

.va-bank {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--n600);
  margin-bottom: var(--s1);
}

.va-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--n900);
  letter-spacing: .04em;
}

.step-inst-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-inst-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--n900);
  margin-bottom: 2px;
}

.step-inst-desc {
  font-size: 13px;
  color: var(--n600);
  line-height: 1.5;
}

.timer-box {
  background: var(--warning-light);
  border: 1.5px solid var(--warning);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.timer-icon {
  font-size: 22px;
}

.timer-label {
  font-size: 12px;
  color: var(--warning-text);
  font-weight: 500;
}

.timer-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--warning-text);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
PRODUCT PAGE - FEATURES ROW
============================================================ */
.testi-card {
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--n200);
}

.testi-stars {
  color: var(--warning);
  font-size: 13px;
  margin-bottom: var(--s3);
}

.testi-text {
  font-size: 13px;
  color: var(--n700);
  line-height: 1.6;
  margin-bottom: var(--s3);
  font-style: italic;
}

.testi-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--n900);
}

.testi-role {
  font-size: 11px;
  color: var(--n400);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page.active .animate {
  animation: fadeInUp .4s ease both;
}

.animate-d1 {
  animation-delay: .05s;
}

.animate-d2 {
  animation-delay: .10s;
}

.animate-d3 {
  animation-delay: .15s;
}

.animate-d4 {
  animation-delay: .20s;
}

/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 26px;
  }

  #page-product .btn-lg {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .va-copy {
    flex-wrap: wrap;
    gap: var(--s3);
  }

  .va-number {
    overflow-wrap: anywhere;
  }

  .payment-channel-actions .btn,
  .payment-final-actions .btn {
    min-width: 0;
    justify-content: center;
    white-space: normal;
  }

  .timer-box {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .timer-time {
    font-size: 20px;
  }

  .status-pill {
    max-width: 100%;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.25;
  }

  .detail-key {
    width: 100%;
    font-size: 12px;
  }

  .detail-val {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ============================================================
RESPONSIVE OVERRIDES (Visual Bug Fixes)
============================================================ */
@media (max-width: 600px) {
  .step-label-text {
    white-space: normal;
    text-align: center;
    max-width: 65px;
    font-size: 10px;
  }
}

/* Coupon alignment and button height fixes */
.coupon-row {
  align-items: center;
}

.coupon-row .btn {
  height: 42px;
  padding: 0 var(--s5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.coupon-row .btn.btn-sm {
  height: 38px;
  padding: 0 var(--s3);
}

/* Custom SVG icons styling */
.icon-copy {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}
.btn .icon-copy {
  margin-right: 6px;
}
.support-icon svg {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  color: var(--primary);
}

/* Modal Dialogs (WCAG Accessibility) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--n900-rgb), 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-container {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid var(--n200);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--n100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--n900);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--n500);
  cursor: pointer;
  padding: var(--s1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: var(--n100);
  color: var(--n900);
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--primary);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: var(--s5);
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--n700);
}

.modal-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--n900);
  margin-top: var(--s4);
  margin-bottom: var(--s2);
}

.modal-body p {
  margin-bottom: var(--s3);
}

/* Simulation mode banner */
.sim-mode-banner {
  background: var(--primary-light);
  border: 1px solid var(--info-border);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--info-text);
  font-size: 13px;
  font-weight: 500;
}

.sim-mode-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Global toast premium accessible styling */
.global-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--n900);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
}
.global-toast.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
SUCCESS PAGE STYLING (Fase Design System - Tahap 28)
============================================================ */
.checkout-header {
  padding: var(--s10) 0 var(--s4);
}

.success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s4);
}

.success-icon-bg {
  width: 80px;
  height: 80px;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-svg {
  width: 40px;
  height: 40px;
}

.success-container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.success-info-icon {
  width: 24px;
  height: 24px;
}

.justify-center {
  justify-content: center;
}

.success-actions {
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .success-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .success-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Modal sizing */
.modal-sm {
  max-width: 440px;
}

/* Skeleton custom sizes */
.skel-sm {
  height: var(--s10); /* 40px */
  border-radius: var(--r-sm);
}
.skel-lg {
  height: 80px; /* skeleton tinggi checkout */
  border-radius: var(--r-lg);
}

/* QRIS Code presentation */
.qr-image {
  width: 200px;
  height: 200px;
  border: 4px solid var(--white);
}

/* Dynamic Brand Badges (moving from inline JS style injection) */
.pay-logo-badge.logo-bni {
  background-color: #F47920;
  color: var(--white);
}
.pay-logo-badge.logo-bri {
  background-color: #003087;
  color: var(--white);
}
.pay-logo-badge.logo-cimb {
  background-color: #D11919;
  color: var(--white);
}
.pay-logo-badge.logo-permata {
  background-color: #00A859;
  color: var(--white);
}

