:root {
  --color-primary: #005A9E;
  --color-primary-dark: #004488;
  --color-primary-light: #E7F3FF;
  --color-accent: #f37021;
  --color-teal: #00838f;
  --color-teal-dark: #006974;
  --color-step-done: var(--color-primary);
  --color-step-active: var(--color-accent);
  --ram-btn-bg: var(--color-primary);
  --ram-btn-bg-hover: var(--color-primary-dark);
  --color-success: #2b8a3e;
  --color-error: #e30613;
  --color-error-bg: #fff5f5;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-light: #888888;
  --color-border: #dddddd;
  --color-bg: #f4f4f4;
  --color-white: #ffffff;
  --color-whatsapp: #25D366;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 25px;
  --shadow-card: 0 5px 15px rgba(0,0,0,0.12);
  --font-family: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 10; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { height: 32px; }
.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { text-decoration: none; color: var(--color-text); font-weight: 600; font-size: 14px; }
.whatsapp-btn {
  background: var(--color-whatsapp); color: var(--color-white) !important; border-radius: var(--radius-lg);
  padding: 8px 14px; font-weight: 700; display: inline-block;
}
.hamburger { border: 0; background: transparent; display: inline-flex; flex-direction: column; gap: 4px; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--color-text); display: block; }
.mobile-drawer { display: none; background: var(--color-white); border-top: 1px solid var(--color-border); padding: 12px 16px; }
.mobile-drawer.open { display: flex; flex-direction: column; gap: 10px; }
.mobile-drawer a { text-decoration: none; color: var(--color-text); font-weight: 600; }

.step-indicator-wrap { max-width: 900px; width: 100%; margin: 16px auto 0; padding: 0 16px; }
.step-indicator { display: grid; gap: 8px; }
.step-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-light); }
.step-item .step-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #d9d9d9; font-size: 12px; }
.step-item.step-active, .step-item.step-completed { color: var(--color-text); }
.step-item.step-active .step-dot { background: var(--color-accent); color: var(--color-white); }
.step-item.step-completed .step-dot { background: var(--color-success); color: var(--color-white); }
.progress-bar-container { height: 8px; background: #e0e0e0; border-radius: 999px; margin-top: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--color-accent); }

.content-overlay { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; background: url('../images/background.jpg') center/cover no-repeat; }
.content-overlay.no-bg { background: #f0f0f0; }
.main-container {
  width: 100%; max-width: 520px; background: var(--color-white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 24px 20px;
}
.section-title { text-align: center; margin: 0 0 16px; }

.details-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
.detail-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px; }
.detail-label { font-size: 12px; color: var(--color-text-light); }
.detail-value { font-weight: 700; word-break: break-all; }
.status-badge { color: var(--color-white); background: var(--color-accent); border-radius: 999px; padding: 4px 10px; font-size: 12px; }

.info-box {
  background: var(--color-primary-light); border-left: 4px solid var(--color-primary);
  padding: 12px; color: var(--color-primary-dark); border-radius: var(--radius-sm); margin-bottom: 16px;
}
.form-group { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--color-text-muted); font-weight: 500; }
input, select {
  width: 100%; padding: 12px; border: 1px solid #cfcfcf; border-radius: var(--radius-sm);
  font-size: 16px; font-family: var(--font-family);
}
.input-with-icon { position: relative; }
.input-with-icon .input-card {
  width: 100%;
  padding: 12px 12px 12px 48px;
}
.card-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 16px;
  object-fit: contain;
  pointer-events: none;
}
.expiry-cvv-row { display: flex; gap: 12px; }
.expiry-cvv-row .form-group { flex: 1; }

.error-text { color: var(--color-error); font-size: 12px; margin-top: 6px; }
.error-box {
  color: var(--color-error);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.otp-form-error {
  text-align: center;
  margin-top: 4px;
}
.delivery-compact .error-box {
  color: var(--color-error);
  background: var(--color-error-bg);
  border-color: var(--color-error);
}

.btn-primary {
  width: 100%; border: 0; border-radius: var(--radius-lg); background: var(--color-primary); color: var(--color-white);
  padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); color: var(--color-text);
  padding: 12px; font-weight: 600; text-decoration: none; display: inline-block; text-align: center;
}

.otp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0; }
.otp-cell { text-align: center; font-size: 20px; padding: 12px 0; }
.otp-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}
.otp-field label {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}
.otp-input-single {
  width: 128px;
  max-width: 100%;
  padding: 8px 10px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.12em;
  font-family: ui-monospace, monospace;
  font-weight: 500;
  text-indent: 0.08em;
}
.otp-input-single::placeholder {
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 400;
  color: #b0b0b0;
}
.inline-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--color-text-muted); }

.checklist { text-align: left; margin: 18px 0; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fafafa; }
.check-item { margin: 8px 0; }
.security-badge { font-size: 12px; color: var(--color-primary); background: var(--color-primary-light); padding: 8px 10px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }

.result-icon { width: 74px; height: 74px; margin: 0 auto 12px; display: block; }
.result-title { text-align: center; margin-bottom: 10px; }
.result-details { text-align: left; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px; margin: 14px 0; }

.site-footer { background: #f8f9fa; border-top: 1px solid var(--color-border); padding: 28px 16px; margin-top: auto; }
.footer-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 18px; }
.footer-column h4 { margin: 0 0 8px; font-size: 16px; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: 6px; }
.footer-column a { color: var(--color-text-muted); text-decoration: none; }
.footer-copyright { border-top: 1px solid #e7e7e7; margin-top: 16px; padding-top: 12px; text-align: center; color: var(--color-text-light); font-size: 12px; }

@media (min-width: 480px) {
  .main-container { padding: 28px 24px; }
}
@media (min-width: 768px) {
  .site-logo { height: 40px; }
  .hamburger { display: none; }
  .main-nav { display: inline-flex; }
  .step-indicator { grid-template-columns: repeat(4, 1fr); }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .content-overlay::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); pointer-events: none; }
}

#copyTracking { margin: 0; }
.security-badge-center { margin-top: 12px; width: 100%; justify-content: center; }
.loading-text { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 16px; text-align: center; }
.btn-resend { width: auto !important; padding: 8px 14px !important; }
.result-container { text-align: center; }
.result-title-success { color: var(--color-success); }
.result-title-fail { color: var(--color-error); }

.vbv-card { padding: 0; overflow: hidden; max-width: 420px; }
.auth-header { padding: 20px; background: #fafbfc; border-bottom: 1px solid var(--color-border); text-align: center; }
.bank-logos-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 12px; }
.bank-logos-container img { height: 18px; object-fit: contain; }
.secure-logo img { height: 28px; object-fit: contain; }
.auth-body { padding: 24px; text-align: center; }
.phone-icon-wrap img { width: 90px; margin: 12px 0 16px; }
.details-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.details-table td { padding: 6px 0; }
.details-table td:first-child { color: var(--color-text-light); text-align: left; }
.details-table td:last-child { font-weight: 600; text-align: right; }

.details-table.formal {
  border: 1px solid var(--color-border);
  font-size: 14px;
}
.details-table.formal td {
  padding: 10px 14px;
  vertical-align: middle;
}
.details-table.formal tr:not(:last-child) td {
  border-bottom: 1px solid var(--color-border);
}
.details-table.formal td:first-child {
  width: 42%;
  background: #f8f9fa;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: left;
}
.details-table.formal td:last-child {
  text-align: right;
  word-break: break-word;
}
.details-table.formal .amount-row td {
  background: #f8f9fa;
}
.details-table.formal .amount-row td:last-child {
  color: var(--color-primary-dark);
  font-size: 16px;
  font-weight: 700;
}
.status-badge.status-awaiting {
  background: transparent;
  color: #92600a;
  border: 1px solid #d4a574;
  font-weight: 600;
}
.tracking-code { font-family: ui-monospace, monospace; letter-spacing: 0.03em; }
.tracking-row td:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-copy {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-family);
}
.btn-copy:hover { background: #f8f9fa; }

.delivery-notice { padding-top: 28px; }
.delivery-header { text-align: center; margin-bottom: 20px; }
.delivery-header-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.delivery-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}
.delivery-ref {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  font-family: ui-monospace, monospace;
}
.delivery-intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.shipment-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-primary-dark);
  font-weight: 500;
}
.shipment-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.delivery-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-light);
}
.delivery-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 24px 0 20px;
}
.delivery-form-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.delivery-notice .details-table.formal { margin-top: 0; }
.delivery-form-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.notice-official {
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.notice-official strong {
  color: var(--color-text);
  font-weight: 600;
}
.notice-success {
  border-left-color: var(--color-success);
  background: #f4fbf4;
}
.delivery-compact.result-container .delivery-header-label {
  margin-bottom: 6px;
  text-align: center;
}
.delivery-compact.result-container .notice-official {
  text-align: left;
  margin-bottom: 16px;
}
.delivery-compact.vbv-card .delivery-header-label {
  text-align: center;
  margin-bottom: 8px;
}
.delivery-compact.vbv-card .form-trust-line {
  margin-top: 12px;
}
.delivery-compact .shipment-status {
  margin-bottom: 14px;
  font-size: 12px;
}
.delivery-compact .notice-official {
  font-size: 12px;
  line-height: 1.5;
}
.delivery-compact .delivery-form-note {
  margin-bottom: 12px;
  font-size: 12px;
}

.delivery-compact { padding-top: 20px; }
.delivery-compact .delivery-header { margin-bottom: 14px; }
.delivery-compact .delivery-title { font-size: 20px; margin-bottom: 6px; }
.delivery-compact .delivery-ref {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.delivery-compact .delivery-header .delivery-intro {
  margin: 0;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.delivery-compact .delivery-header { margin-bottom: 16px; }
.delivery-summary-row strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.delivery-form-title {
  margin: 16px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.delivery-compact .form-group { margin-bottom: 10px; }

.delivery-summary {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
}
.delivery-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}
.delivery-summary-row:last-child { border-bottom: 0; }
.delivery-summary-row span { color: var(--color-text-muted); font-size: 13px; }
.delivery-summary-row strong { font-weight: 600; text-align: right; }
.delivery-summary-amount {
  background: #f8f9fa;
}
.delivery-summary-amount strong {
  color: var(--color-primary-dark);
  font-size: 15px;
}
.delivery-summary-fee {
  background: #fafbfc;
}
.delivery-summary-fee strong {
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 600;
}
.delivery-summary-inline {
  margin-bottom: 14px;
}

.delivery-compact.result-container .result-icon { width: 56px; height: 56px; margin-bottom: 10px; }
.delivery-compact.result-container .result-title { margin-bottom: 4px; font-size: 20px; }
.delivery-compact.result-container .delivery-summary { margin-bottom: 16px; text-align: left; }
.delivery-compact.result-container .btn-secondary { margin-top: 10px; }
.delivery-compact .checklist { margin: 12px 0; padding: 10px 12px; }
.delivery-compact .check-item { margin: 5px 0; font-size: 13px; }
.delivery-compact .otp-field { margin-bottom: 10px; }
.delivery-compact .otp-input-single { width: 120px; font-size: 15px; padding: 7px 8px; }
.delivery-compact .inline-row { margin-bottom: 12px; }
.delivery-compact.vbv-card .auth-header { padding: 14px 16px; }
.delivery-compact.vbv-card .auth-body { padding: 16px 20px 20px; text-align: center; }
.delivery-compact.vbv-card .delivery-title { text-align: center; margin-bottom: 12px; }
.delivery-compact.vbv-card .delivery-summary { margin: 0 0 12px; text-align: left; }
.delivery-compact .vbv-timer { font-size: 13px; color: var(--color-text-muted); margin: 0 0 14px; }
.delivery-compact .security-badge-center { margin-top: 10px; font-size: 11px; }

.step-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}
.step-mini-item {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f3f3;
}
.step-mini-item.active {
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}
.delivery-compact .delivery-footnote {
  margin: 10px 0 14px;
  text-align: center;
}
.label-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}
.form-submit-sticky { margin-top: 4px; }
.landing-proceed { margin-top: 18px; }

/* RAM-style shipping flow */
body.ram-flow {
  background: #eceff1;
}
body.ram-flow .page-wrapper {
  min-height: 100vh;
}
body.ram-flow .site-footer {
  background: #eceff1;
  border-top: 0;
  padding: 12px 16px 20px;
}
body.ram-flow .site-footer .footer-copyright {
  margin: 0;
  font-size: 11px;
  color: var(--color-text-light);
}
.ram-flow-page {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}
.ram-hero {
  position: relative;
  min-height: 120px;
  overflow: hidden;
}
.ram-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/background.jpg') center/cover no-repeat;
}
.ram-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}
.ram-hero-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.ram-hero-logo img {
  display: block;
  height: 36px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.ram-menu-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}
.ram-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-white);
}
.ram-stepper {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 10px 12px;
  overflow-x: auto;
}
.ram-stepper-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-width: 320px;
  position: relative;
}
.ram-stepper-track::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #d9dee3;
  z-index: 0;
}
.ram-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}
.ram-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--color-white);
  border: 2px solid #cfd8dc;
  color: #90a4ae;
}
.ram-step-label {
  font-size: 9px;
  line-height: 1.25;
  color: #90a4ae;
  font-weight: 600;
  max-width: 100%;
}
.ram-step-done .ram-step-num {
  background: var(--color-step-done);
  border-color: var(--color-step-done);
  color: var(--color-white);
}
.ram-step-done .ram-step-label {
  color: var(--color-text-muted);
}
.ram-step-active .ram-step-num {
  background: var(--color-step-active);
  border-color: var(--color-step-active);
  color: var(--color-white);
}
.ram-step-active .ram-step-label {
  color: var(--color-text);
  font-weight: 700;
}
.ram-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ram-card {
  background: var(--color-white);
  border: 1px solid #dfe3e8;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 16px;
}
.ram-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.ram-card-title-sm {
  font-size: 16px;
  margin-bottom: 4px;
}
.ram-card-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.ram-tracking-line {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}
.ram-service-line {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.ram-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ram-fee-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eef1f4;
}
.ram-fee-table tr:nth-child(odd) td {
  background: #fafbfc;
}
.ram-fee-table tr:nth-child(even) td {
  background: var(--color-white);
}
.ram-fee-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.ram-fee-table .ram-fee-total td {
  background: #f4f8f9 !important;
  border-bottom: 0;
  padding-top: 12px;
  font-weight: 700;
  font-size: 14px;
}
.ram-fee-table .ram-fee-total td:last-child {
  color: var(--color-accent);
  font-size: 16px;
}
body.ram-flow .ram-btn-primary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ram-btn-bg);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 90, 158, 0.25);
}
body.ram-flow .ram-btn-primary:hover,
body.ram-flow .ram-btn-primary:focus {
  background: var(--ram-btn-bg-hover);
  color: var(--color-white);
}
body.ram-flow .ram-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.ram-btn-outline {
  display: block;
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-text-muted);
  text-align: center;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 16px;
  margin-top: -4px;
}
.ram-btn-outline:hover,
.ram-btn-outline:focus {
  background: #f5f7f9;
  color: var(--color-text);
}
.ram-pay-method {
  border-left: 4px solid var(--color-primary);
  padding: 14px 16px;
}
.ram-pay-method-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ram-pay-check {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.ram-payment-form .form-group:last-child {
  margin-bottom: 0;
}
.ram-payment-form label {
  font-size: 13px;
}
.ram-terms-card {
  padding: 16px;
}
.ram-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.ram-terms-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.ram-terms-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.ram-terms-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.ram-terms-text a:hover {
  text-decoration: underline;
}

.ram-summary-card { padding: 0; overflow: hidden; }
.ram-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ram-summary-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef1f4;
}
.ram-summary-table tr:nth-child(odd) td { background: #fafbfc; }
.ram-summary-table tr:nth-child(even) td { background: var(--color-white); }
.ram-summary-table td:last-child {
  text-align: right;
  font-weight: 600;
  word-break: break-all;
}
.ram-amount-highlight {
  color: var(--color-accent) !important;
  font-weight: 700 !important;
}
.ram-btn-secondary {
  border: 1px solid #cfd8dc;
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}
.ram-btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ram-otp-form .form-group:last-of-type { margin-bottom: 12px; }
.ram-otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.ram-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
}
.ram-alert-error {
  background: var(--color-error-bg);
  border: 1px solid #f5c2c7;
  color: var(--color-error);
}
.ram-loading-card { padding: 14px 16px; }
.ram-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid #e8ecf0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: ram-spin 0.75s linear infinite;
}
@keyframes ram-spin {
  to { transform: rotate(360deg); }
}
.ram-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ram-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-light);
}
.ram-check-item.active { color: var(--color-text); font-weight: 600; }
.ram-check-item.completed { color: var(--color-primary); }
.ram-check-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}
.ram-loading-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}
.ram-result-card { text-align: center; }
.ram-result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}
.ram-result-icon svg { width: 100%; height: 100%; display: block; }
.ram-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}
.ram-note-success { color: var(--color-success); }
.ram-redirect-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}
.ram-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #e5c76b;
  border-radius: 2px;
  padding: 2px 7px;
}
.ram-vbv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.ram-bank-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.ram-bank-logos img {
  height: 18px;
  width: auto;
  object-fit: contain;
}
.ram-card-brand {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.ram-vbv-timer {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}
.ram-cancel-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light);
  text-decoration: none;
  margin-top: -4px;
}
.ram-cancel-link:hover { text-decoration: underline; }

/* Legacy landing styles (unused) */
.landing-portal-page { align-items: flex-start; padding-top: 12px; }
.landing-portal-page .main-container.landing-portal-card {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--color-border);
}
.portal-letterhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
}
.portal-letterhead-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.portal-letterhead-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.portal-letterhead-dept {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.portal-notice-wrap {
  padding: 16px 18px;
  background: #fafbfc;
}
.official-notice {
  background: var(--color-white);
  border: 1px solid #dde2e8;
  border-radius: 2px;
  padding: 18px 18px 16px;
  box-shadow: none;
}
.official-notice-refblock {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ecf0;
}
.official-notice-refrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1.6;
}
.official-notice-reflabel {
  color: var(--color-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.official-notice-refvalue {
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}
.official-notice-subject-line {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text);
}
.official-notice-subject-line strong {
  font-weight: 700;
}
.official-notice-meta {
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #e2e6ea;
  border-radius: 2px;
  overflow: hidden;
}
.official-notice-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef0f2;
  font-size: 12px;
}
.official-notice-meta-row:last-child { border-bottom: 0; }
.official-notice-meta-row dt {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 500;
}
.official-notice-meta-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--color-text);
  word-break: break-all;
}
.official-notice-letter {
  margin-bottom: 14px;
}
.official-notice-salutation {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.official-notice-body {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text);
  text-align: justify;
}
.official-notice-body:last-child {
  margin-bottom: 0;
}
.official-notice-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #f4f7fa;
  border: 1px solid #d8dee6;
  border-radius: 2px;
  margin-bottom: 16px;
}
.official-notice-amount-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.official-notice-amount-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.official-notice-closing {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.official-notice-signoff {
  font-weight: 600;
  color: var(--color-text);
}
.portal-action {
  padding: 14px 18px 16px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}
.portal-action .btn-primary {
  border-radius: 2px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.portal-action .form-trust-line {
  margin-top: 8px;
}

/* Shipment tracking bar — landing */
.track-panel {
  padding: 14px 16px 12px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}
.track-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.track-panel-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 2px;
}
.track-panel-ref {
  display: block;
  font-size: 12px;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.35;
}
.track-panel-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #e5c76b;
  border-radius: 2px;
  padding: 4px 8px;
}
.track-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  margin-bottom: 10px;
}
.track-bar::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.track-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.track-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid #d1d5db;
  box-sizing: border-box;
}
.track-step.is-done .track-dot {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.track-step.is-active .track-dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.2);
}
.track-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}
.track-step.is-done .track-label,
.track-step.is-active .track-label {
  color: var(--color-text);
}
.track-step.is-active .track-label {
  color: var(--color-accent);
  font-weight: 700;
}
.track-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
  font-style: normal;
}

/* Minimal flow layout */
.flow-minimal .header-inner { justify-content: center; }
.flow-minimal .site-footer { padding: 14px 16px; text-align: center; }
.flow-minimal .site-footer .footer-copyright { margin: 0; font-size: 11px; }
.flow-card { padding-top: 16px; }
.delivery-header-tight { margin-bottom: 12px; }
.delivery-header-tight .delivery-title { font-size: 20px; margin-bottom: 4px; }
.delivery-header-tight .delivery-intro { margin-bottom: 0; font-size: 13px; line-height: 1.5; }
.delivery-intro-center { text-align: center; margin-bottom: 12px !important; }
.delivery-summary-tight { margin-bottom: 12px; }
.delivery-summary-tight .delivery-summary-row { padding: 8px 14px; font-size: 13px; }
.notice-brief {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
  background: #fafafa;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}
.payment-form-tight .form-group { margin-bottom: 10px; }
.payment-form-tight label { font-size: 13px; margin-bottom: 4px; }
.payment-form-tight input:not(.input-card) { padding: 10px 12px; font-size: 16px; }
.payment-form-tight .input-with-icon .input-card { padding: 10px 12px 10px 48px; font-size: 16px; }
.checklist-compact { margin: 10px 0 0; }
.checklist-compact .check-item { font-size: 13px; margin: 4px 0; }
.otp-form-tight .form-group { margin-bottom: 10px; }
.otp-form-tight label { font-size: 13px; }
.inline-row-compact {
  margin-bottom: 12px;
  font-size: 13px;
}
.notice-brief-success {
  border-left-color: var(--color-success);
  background: #f0fdf4;
}
.result-container .result-icon { margin-left: auto; margin-right: auto; display: block; }
.result-container .delivery-header-tight { text-align: center; }
.result-container .result-title { text-align: center; font-size: 20px; margin: 0 0 6px; }
.result-container .delivery-intro { text-align: center; margin-bottom: 14px; }
.result-container .btn-primary { margin-top: 4px; }
.auth-header-compact { padding: 12px 14px !important; }
.auth-header-compact .bank-logos-container img { max-height: 22px; }
.form-trust-line {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--color-text-light);
  text-align: center;
}
@media (max-width: 767px) {
  .delivery-compact .form-submit-sticky {
    position: sticky;
    bottom: 0;
    margin: 8px -20px 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--color-white) 85%, rgba(255, 255, 255, 0));
    z-index: 2;
  }
}

.vbv-cancel-link { display: inline-block; margin-top: 14px; color: var(--color-text-muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
