/* ============================================
   MalaysiaFollowers.com — Panel Design System
   Paste this into Appearance > CSS, or link as
   a stylesheet file replacing style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Color tokens */
  --ink: #0A0E0D;
  --surface: #131917;
  --surface-2: #1B2320;
  --border: #26302C;
  --mint: #3D7FFF;   /* was mint green, now Malaysia blue */
  --mint-dim: #2E63D9;   /* darker Malaysia blue */
  --coral: #FFCC00;   /* was orange, now Malaysia yellow */
  --coral-dim: #D9A800;   /* darker Malaysia yellow */
  --text: #F2F6F4;
  --text-muted: #8FA39A;
  --text-faint: #55645E;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius / spacing rhythm */
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}
html {
  overflow-x: hidden;
}

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-dim); }

/* Focus visibility — accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ---------- Top nav ---------- */
.mf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
}
.mf-nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mf-nav__logo .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}
.mf-nav__links { display: flex; gap: 28px; }
.mf-nav__links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.mf-nav__links a:hover { color: var(--text); }
.mf-nav__cta {
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.mf-nav__cta:hover { background: var(--mint-dim); }

/* ---------- Hero ---------- */
.mf-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 860px) {
  .mf-hero { grid-template-columns: 1fr; padding: 48px 20px; }
}

.mf-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.mf-hero__eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .mf-hero__eyebrow .pulse { animation: none; }
}

.mf-hero__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.mf-hero__title span { color: var(--mint); }

.mf-hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.mf-hero__actions { display: flex; gap: 14px; }
.mf-btn-primary {
  background: var(--coral);
  color: var(--ink); /* dark text for contrast on yellow */
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.mf-btn-primary:hover { background: var(--coral-dim); }
.mf-btn-secondary {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
}
.mf-btn-secondary:hover { border-color: var(--text-muted); }

/* ---------- Signature element: live counter card ---------- */
.mf-counter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.mf-counter-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mf-counter-card__status {
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mf-counter-card__status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
/* "EXAMPLE" preview tag — muted color, distinct from the mint "LIVE"
   look used elsewhere, so it never reads as a real-time claim */
.mf-counter-card__status--preview {
  color: var(--text-faint);
}
.mf-counter-card__status--preview .dot {
  background: var(--text-faint);
}

.mf-counter-card__service {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.mf-counter-card__progress {
  height: 8px;
  background: var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.mf-counter-card__progress-bar {
  height: 100%;
  background: var(--mint);
  border-radius: 999px;
}
.mf-counter-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.mf-counter-card__progress-pct {
  font-family: var(--font-mono);
  color: var(--mint);
  font-weight: 600;
}

.mf-counter-card__disclaimer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
}

.mf-counter-card__number {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.mf-counter-card__caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.mf-counter-card__rows { border-top: 1px solid var(--border); padding-top: 16px; }
.mf-counter-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding: 12px;
}
.mf-counter-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}
.mf-counter-card__row .k { color: var(--text-muted); }
.mf-counter-card__row .v { font-family: var(--font-mono); color: var(--text); }
.mf-counter-card__row .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61,127,255,0.12);
  color: var(--mint);
}

/* ---------- Trust / status strip ---------- */
.mf-strip {
  display: flex;
  gap: 40px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.mf-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.mf-strip__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--mint);
}

/* ---------- Service cards ---------- */
.mf-services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
}
.mf-services__heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mf-services__sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.mf-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.mf-service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s ease;
}
.mf-service-card:hover { border-color: var(--mint-dim); }
.mf-service-card__platform {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.mf-service-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mf-service-card__price {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--mint);
  margin-bottom: 4px;
}
.mf-service-card__unit {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Overrides: default Bootstrap login/signup form ---------- */
/* Perfect Panel's auth pages use raw Bootstrap classes (.well, .form-control,
   .btn-primary). These overrides bring them in line with the dark theme
   instead of leaving a jarring white card in the layout. */

.well {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}
.mf-signin-block {
  margin-top: -20px;
  margin-bottom: 40px;
}

.control-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-control {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  height: auto;
  font-family: var(--font-body);
}
.form-control:focus {
  background: var(--ink);
  border-color: var(--mint);
  color: var(--text);
  box-shadow: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--ink); /* dark text for contrast on yellow — was inheriting near-white */
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  padding: 12px 24px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--coral-dim);
  color: var(--ink);
}

.forgot-password {
  font-size: 13px;
  color: var(--text-faint);
  display: inline-block;
  margin-top: 6px;
}

.pull-right-middle {
  color: var(--text-muted);
  font-size: 14px;
}

.alert-danger {
  background: rgba(255,204,0,0.12);
  border: 1px solid var(--coral);
  color: var(--coral);
  border-radius: var(--radius);
}
.alert-success {
  background: rgba(61,127,255,0.12);
  border: 1px solid var(--mint);
  color: var(--mint);
  border-radius: var(--radius);
}

/* ---------- Overrides: Services / pricing table (services.twig) ---------- */
/* Structure and data-attributes are left untouched — search/filter JS
   depends on them. This is a visual-only restyle of the existing table. */

.nav-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 24px 0 20px;
  list-style: none;
}
.nav-pills > li { list-style: none; }
.nav-pills .search {
  margin-left: auto;
  max-width: 280px;
}

.nav-pills .btn-primary,
.nav-pills .btn-default {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius);
}
.nav-pills .btn-primary:hover,
.nav-pills .btn-default:hover {
  border-color: var(--mint-dim);
  background: var(--surface-2);
}
.nav-pills .fa-filter { color: var(--mint); margin-right: 6px; }

.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
/* Catch-all for dropdown links that don't have the .dropdown-item class
   (e.g. the New Order / Earn MYR dropdowns, built via JS) — without
   this, they fall back to a near-invisible default text color on the
   dark background. */
.dropdown-menu > li > a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.dropdown-item {
  color: var(--text-muted);
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 6px;
}
.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dropdown-menu > li.active > .dropdown-item {
  background: rgba(61,127,255,0.12);
  color: var(--mint);
}

.search .input-group .form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  min-width: 220px;
}
.search .btn-default {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: none;
  color: var(--text-muted);
}

.well-float {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: none;
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
/* Force the table itself to fill the well-float box at ALL screen sizes.
   Perfect Panel's base CSS may set a more specific rule (e.g. table
   width auto / shrink-to-fit) that beats plain .table — !important
   and the combined selector below outrank it regardless of size. */
.well-float table,
.well-float .table,
#service-table {
  width: 100% !important;
  table-layout: auto;
}

#service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
#service-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
#service-table tbody tr {
  border-bottom: 1px solid var(--border);
}
#service-table tbody tr:hover {
  background: var(--surface-2);
}
#service-table tbody tr:last-child {
  border-bottom: none;
}
#service-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}

/* Category header rows (colspan row with icon + category name) */
#service-table tr td[colspan] {
  background: var(--ink);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
#service-table tr td[colspan] strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-name {
  font-weight: 500;
}

/* Rate column reads as the "price" — give it mono + mint treatment */
#service-table td:nth-child(4) {
  font-family: var(--font-mono);
  color: var(--mint);
  font-weight: 600;
}
#service-table td:nth-child(5),
#service-table td:nth-child(6) {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 13px;
}

.favorite-active span, [data-favorite-icon].fas {
  color: var(--coral);
}
[data-favorite-icon].far {
  color: var(--text-faint);
}

#service-table .btn-xs {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
}
#service-table .btn-xs:hover {
  border-color: var(--mint-dim);
  color: var(--mint);
}

/* ---------- Overrides: Order form (neworder.twig) ---------- */

#order-form .control-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

#order-form .form-group { margin-bottom: 20px; }

/* Charge (price) field — treat like the hero counter: mono + mint, larger */
#charge {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--mint);
  background: var(--ink);
  border: 1px solid var(--border);
  cursor: default;
}

/* Description panel */
#service_description .panel-body {
  background: var(--ink);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  padding: 14px 16px;
}

/* Search input inside category dropdown */
#template-input {
  background: var(--ink);
  border: 1px solid var(--border);
  color: var(--text);
  padding-left: 34px;
}

/* Terms checkbox */
.terms {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terms-accept-checkbox {
  accent-color: var(--mint);
  width: 16px;
  height: 16px;
}

/* Generic checkboxes site-wide (e.g. signup terms checkbox) */
input[type="checkbox"] {
  accent-color: var(--mint);
}

/* ---------- Signup page: two-column redesign ---------- */

.mf-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: 60px 0;
}
@media (max-width: 900px) {
  .mf-auth-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding: 40px 0;
  }
}

.mf-auth-brand__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.mf-auth-brand__eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.8s ease-in-out infinite;
}

.mf-promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,204,0,0.1);
  border: 1px solid rgba(255,204,0,0.35);
  color: var(--text);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.mf-promo-banner strong {
  color: var(--coral);
}
.mf-promo-banner__icon {
  font-size: 15px;
}

.mf-auth-brand__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.mf-auth-brand__title span {
  color: var(--mint);
}

.mf-auth-brand__sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.mf-auth-brand__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mf-auth-brand__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}
.mf-auth-brand__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(61,127,255,0.12);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mf-auth-form .well {
  max-width: 460px;
  margin: 0;
}
@media (max-width: 900px) {
  .mf-auth-form .well {
    max-width: none;
    margin: 0 auto;
  }
}

/* Space out Sign up button and Google sign-in button — they were
   stacking with almost no gap between them */
.mf-auth-form .form-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.mf-auth-form .form-inline .form-group {
  margin: 0;
}

/* Submit button — reuse coral CTA, full width on the order form */
#order-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}

/* ---------- Select2 dropdown theme (category / service pickers) ---------- */
/* Perfect Panel's data-select attributes indicate Select2 is in use.
   Select2 renders its own markup outside .form-control, so it needs
   its own override block to match the dark theme. */

.select2-container--default .select2-selection--single {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 44px;
  padding: 6px 4px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text);
  line-height: 30px;
  padding-left: 12px;
  padding-right: 24px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100% !important;
}
.select2-container {
  max-width: 100% !important;
  width: 100% !important;
}
.select2-selection--single {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}
.select2-dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.select2-search--dropdown .select2-search__field {
  background: var(--ink);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
}
.select2-results__option {
  color: var(--text-muted);
  font-size: 14px;
  padding: 9px 12px;
}
.select2-results__option--highlighted[aria-selected] {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.select2-results__option[aria-selected="true"] {
  background: rgba(61,127,255,0.12);
  color: var(--mint);
}
.select2-container--default .select2-results > .select2-results__options {
  scrollbar-color: var(--border) var(--surface);
}

/* Fix browser autofill (blue/white background) overriding dark inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px var(--ink) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Fix readonly/disabled fields (e.g. Account > Username, Email) rendering
   as light grey — browsers apply their own default styling to these states
   that plain .form-control rules don't override. */
.form-control[readonly],
.form-control[disabled],
.form-control:disabled {
  background: var(--surface-2) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border) !important;
  opacity: 1;
  -webkit-text-fill-color: var(--text-muted);
}

/* ---------- Global polish pass ---------- */

/* Text selection */
::selection {
  background: rgba(61,127,255,0.25);
  color: var(--text);
}

/* Scrollbar (Chromium/Brave/Edge) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 999px;
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* Modals (e.g. order detail popups in orders.twig) */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.modal-body { padding: 24px; }
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.modal-backdrop.in { opacity: 0.7; background: #000; }

/* Generic close (×) buttons used in modals and alerts */
.close {
  color: var(--text-muted);
  opacity: 1;
  text-shadow: none;
}
.close:hover, .close:focus {
  color: var(--text);
  opacity: 1;
}

/* Secondary/default buttons used throughout (search icon buttons,
   cancel buttons in orders table, etc.) — distinct from btn-primary */
.btn-default {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.btn-default:hover, .btn-default:focus {
  background: var(--surface-2);
  border-color: var(--text-faint);
  color: var(--text);
}

/* Small (btn-xs) buttons — e.g. Refill / Cancel actions in orders table */
.btn-xs {
  border-radius: 6px;
  font-size: 12px;
  padding: 5px 10px;
}
.btn-xs.btn-primary {
  background: var(--mint);
  color: var(--ink);
  border: none;
  font-weight: 600;
}
.btn-xs.btn-primary:hover { background: var(--mint-dim); }
.btn-xs.btn-primary.disabled {
  background: var(--surface-2);
  color: var(--text-faint);
  cursor: not-allowed;
}

/* Tooltips (used on rate conversion, average_time, cancel reason) */
.tooltip-inner {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 12px;
  padding: 6px 10px;
}
.tooltip.top .tooltip-arrow { border-top-color: var(--surface-2); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--surface-2); }

/* Keep container widths consistent with the rest of the design system
   instead of Bootstrap's default ~1170px, which reads slightly wider
   than the nav/hero above it */
.container {
  max-width: 1200px;
}
/* .container-fluid has no auto-margin by default in Bootstrap (it's
   meant to span edge-to-edge). Capping its width without centering it
   left pages like Orders/Services sitting flush-left, misaligned from
   the centered .mf-dash section above them. */
.container-fluid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Links inside body copy / well blocks that don't have a utility class */
.well a:not(.btn) {
  color: var(--mint);
}
.well a:not(.btn):hover {
  color: var(--mint-dim);
}

/* ---------- Responsive fixes (tablet / narrow desktop breakpoint) ---------- */
/* Bug: at ~900-1265px, the services/orders tables overflowed the page
   horizontally instead of scrolling within their own container, and the
   filter/search row didn't wrap, pushing content off-screen. */

@media (max-width: 1300px) {
  /* Make .well-float (table wrapper) scroll horizontally on its own,
     instead of letting the table blow out the whole page width */
  .well-float {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .well-float table,
  #service-table {
    min-width: 760px; /* table keeps its natural layout, scrolls inside this box */
  }

  /* Filter/search row: allow wrapping instead of forcing one line */
  .nav-pills {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .nav-pills .search {
    margin-left: 0;
    width: 100%;
    order: 10; /* search drops to its own row below the filter/status tabs */
  }
  .nav-pills .search .input-group {
    display: flex;
    width: 100%;
  }
  .nav-pills .search .form-control {
    flex: 1;
  }

  /* Prevent individual tab labels ("In progress") from wrapping mid-word */
  .nav-pills > li > a {
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .mf-hero { padding: 40px 20px; }
  .mf-dash { padding: 32px 20px 60px; }
  .mf-dash__stats { grid-template-columns: 1fr; }
  .mf-hero__title { font-size: 34px; }
  .navbar-brand { padding: 16px; font-size: 17px; }
}

/* ---------- Empty states ---------- */

.mf-empty-row {
  text-align: center;
  padding: 56px 20px !important;
  border: none !important;
}
.mf-empty-row__icon {
  color: var(--mint-dim);
  font-size: 20px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.mf-empty-row__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.mf-empty-row__sub {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.mf-empty-row__sub a {
  color: var(--mint);
}
.mf-empty-row__cta {
  display: inline-block;
  padding: 10px 22px;
  font-size: 13px;
}

/* Generic empty state for other tables (e.g. Add Funds payment history) */
.table tbody:empty::after,
.table tbody tr:only-child td[colspan] {
  text-align: center;
  color: var(--text-faint);
  padding: 40px !important;
}

/* ---------- New Order page: two-column redesign ---------- */

.mf-order-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  align-items: start;
  margin: 24px 0 60px;
}
@media (max-width: 900px) {
  .mf-order-grid { grid-template-columns: 1fr; }
}

/* The form's .well normally inherits max-width:480px from the login-form
   rule — override it here so the order form can use its full grid column */
.mf-order-main .well {
  max-width: none;
  margin: 0;
  overflow-x: hidden; /* hard containment: no child (e.g. Select2's
    JS-calculated width) can ever stretch this box or the page,
    regardless of what inline width Select2 sets internally */
}
.mf-order-main .form-group {
  max-width: 100%;
  overflow: hidden;
}
#orderform-service, #orderform-category {
  max-width: 100% !important;
}
.select2 {
  max-width: 100% !important;
  width: 100% !important;
}

/* Hide the original raw description block — its content is mirrored
   into the sidebar by JS, this copy stays in the DOM only so Perfect
   Panel's own script has something to populate. */
.mf-sr-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.mf-details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 20px;
}
.mf-details-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mf-details-card__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.mf-details-empty {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 20px 0;
}

.mf-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mf-details-stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.mf-details-stat__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mf-details-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Custom category/service picker ---------- */
/* Hides the original Select2 UI (kept functional but invisible) and
   styles our own mirrored picker built from the same <option> data. */

#orderform-category ~ .select2-container,
#orderform-service ~ .select2-container {
  display: none !important;
}
#orderform-category, #orderform-service {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.mf-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mf-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.mf-chip:hover {
  border-color: var(--mint-dim);
  color: var(--text);
}
.mf-chip--active {
  background: rgba(61,127,255,0.12);
  border-color: var(--mint);
  color: var(--mint);
  font-weight: 600;
}

#mf-service-search {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mf-picker__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  background: var(--ink);
}
.mf-service-item {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  white-space: normal;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mf-service-item:hover {
  background: var(--surface-2);
}
.mf-service-item--active {
  background: rgba(61,127,255,0.1);
  border-color: var(--mint);
  color: var(--text);
}
.mf-picker__empty {
  padding: 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* Quantity quick-pick chips */
.mf-qty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mf-chip--sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* Live price breakdown under Charge field */
.mf-price-breakdown {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
  min-height: 16px;
}

/* Sticky bottom bar */
.mf-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.mf-sticky-bar--visible {
  transform: translateY(0);
}
.mf-sticky-bar__price {
  display: flex;
  flex-direction: column;
}
.mf-sticky-bar__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mf-sticky-bar__value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--mint);
}
.mf-sticky-bar #mf-sticky-submit {
  padding: 12px 28px;
}
@media (min-width: 901px) {
  /* On desktop the sidebar already keeps context visible; keep the
     sticky bar but narrower so it doesn't span under the details card */
  .mf-sticky-bar {
    left: 0;
    right: 0;
  }
}

/* ---------- Micro-interactions ---------- */

/* Card hover lift — stat cards, service cards, details card */
.mf-stat-card,
.mf-service-card,
.mf-counter-card,
.mf-details-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mf-stat-card:hover,
.mf-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--mint-dim);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* Table row hover: left accent bar instead of flat background only */
#service-table tbody tr,
.well-float .table tbody tr {
  position: relative;
  transition: background 0.15s ease;
}
#service-table tbody tr:hover,
.well-float .table tbody tr:hover {
  box-shadow: inset 3px 0 0 var(--mint);
}

/* Button transitions + subtle lift on primary actions */
.mf-btn-primary,
.btn-primary,
.mf-nav__cta {
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.mf-btn-primary:hover,
.btn-primary:hover,
.mf-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255,204,0,0.25);
}
.mf-btn-primary:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary buttons: gentle border brighten instead of lift */
.mf-btn-secondary,
.btn-default {
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

/* Nav links: underline sweep on hover instead of flat color snap */
.navbar-default .navbar-nav > li > a {
  position: relative;
  transition: color 0.15s ease;
}
.navbar-default .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.navbar-default .navbar-nav > li > a:hover::after {
  transform: scaleX(1);
}
.navbar-default .navbar-nav > .active > a::after {
  transform: scaleX(1);
}

/* Gentle fade-in for content that loads async (services table rows,
   dynamically injected order fields) */
@keyframes mf-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
#fields, #service_description .panel-body {
  animation: mf-fade-in 0.25s ease;
}
#service-table tbody tr {
  animation: mf-fade-in 0.2s ease backwards;
}
#service-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
#service-table tbody tr:nth-child(2) { animation-delay: 0.04s; }
#service-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
#service-table tbody tr:nth-child(4) { animation-delay: 0.08s; }
#service-table tbody tr:nth-child(5) { animation-delay: 0.10s; }
#service-table tbody tr:nth-child(n+6) { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .mf-stat-card, .mf-service-card, .mf-counter-card, .mf-details-card,
  .mf-btn-primary, .btn-primary, .mf-nav__cta,
  .navbar-default .navbar-nav > li > a::after,
  #fields, #service_description .panel-body, #service-table tbody tr {
    animation: none !important;
    transition: none !important;
  }
}

/* Submit button loading state (toggled via JS on order-form submit) */
.mf-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.mf-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mf-spin 0.6s linear infinite;
}
@keyframes mf-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Overrides: Top navbar (layout.twig) ---------- */

.navbar-default {
  background: var(--ink);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  animation: mf-navbar-in 0.4s ease;
}
@keyframes mf-navbar-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-default { animation: none; }
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text) !important;
  height: auto;
  padding: 18px 20px;
}

.navbar-default .navbar-nav > li > a {
  color: var(--text-muted) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 20px 16px;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--text) !important;
  background: transparent !important;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--mint) !important;
  background: transparent !important;
}

/* Balance pill (e.g. "RM 0") */
.navbar-default .navbar-text,
.navbar-default .label,
.navbar-default .badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Combined balance + "Add" pill, matching a BulkFollows-style layout:
   one rounded container holding the balance and a solid Add button
   flush together, instead of two separate floating elements. */

/* Authoritative alignment fix: make the whole nav row a flex container
   so every item (plain text links, the balance pill, the profile chip)
   shares one true vertical center automatically, instead of relying on
   matched padding values between differently-structured elements. */
.navbar-nav.navbar-right-block,
.navbar-nav.navbar-left-block {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
}

.navbar-right-block li.mf-balance-li {
  display: flex !important;
  align-items: center;
  padding: 0 !important;
  height: auto;
}
.mf-balance-pill {
  display: inline-flex !important;
  align-items: center;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px !important;
  overflow: hidden !important;
  box-sizing: border-box;
  margin-right: 10px;
}

/* Strip the balance link/badge's own background now that the pill
   container provides it, and remove Bootstrap's block/link defaults */
.navbar-default .navbar-nav .mf-balance-pill > a.dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  padding: 0 10px 0 14px !important;
  margin: 0 !important;
  box-sizing: border-box;
  white-space: nowrap;
}
.mf-balance-pill .badge {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--mint) !important;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.mf-balance-pill .caret {
  opacity: 0.5;
}

/* "+ Add" button, flush against the balance side within the same pill */
.navbar-default .navbar-nav .mf-add-funds-btn {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  gap: 4px;
  width: auto !important;
  padding: 0 16px 0 12px !important;
  border-radius: 0 !important;
  background: var(--mint) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease;
  margin: 0 !important;
  box-sizing: border-box;
}
.navbar-default .navbar-nav .mf-add-funds-btn:hover {
  background: var(--mint-dim) !important;
  text-decoration: none !important;
}
.mf-add-funds-btn__icon {
  font-size: 15px;
  line-height: 1;
}

/* Profile chip: avatar initial + username, matching a BulkFollows-style
   layout, inserted right after the balance pill */
.navbar-right-block li.mf-profile-chip-li {
  display: flex !important;
  align-items: center;
  padding: 0 !important;
  height: auto;
}
.navbar-default .navbar-nav .mf-profile-chip {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  height: 36px !important;
  padding: 0 14px 0 6px !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-sizing: border-box;
  margin-right: 10px;
  margin-left: 0 !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease;
}
.navbar-default .navbar-nav .mf-profile-chip:hover {
  border-color: var(--mint-dim);
  text-decoration: none !important;
}
.navbar-default .navbar-nav .mf-profile-chip .mf-profile-chip__avatar,
.navbar-default .navbar-nav .mf-profile-chip .mf-profile-chip__name {
  display: inline-flex !important;
}

/* "New order" dropdown containing "Mass order" as a sub-item */
.mf-neworder-dropdown .caret {
  opacity: 0.6;
  margin-left: 4px;
}
.mf-neworder-dropdown .dropdown-menu {
  min-width: 160px;
}

.mf-earn-dropdown .caret {
  opacity: 0.6;
  margin-left: 4px;
}
.mf-earn-dropdown .dropdown-menu {
  min-width: 180px;
}

/* ---------- Affiliates page: referral card ---------- */

.mf-referral-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.mf-referral-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.mf-referral-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mf-referral-card__input {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-mono);
  color: var(--mint) !important;
  cursor: text;
}
.mf-referral-card__copy {
  white-space: nowrap;
}
.mf-referral-card__share {
  white-space: nowrap;
}
.mf-referral-card__meta {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.mf-referral-card__meta strong {
  color: var(--text);
}

/* Stat value color modifier (used to highlight earnings figures) */
.mf-stat-card__value--mint {
  color: var(--mint);
}

/* ---------- How it works ---------- */

.mf-how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 40px;
}
.mf-how__heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mf-how__sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.mf-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .mf-how__grid { grid-template-columns: 1fr; }
}
.mf-how__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.mf-how__step:hover {
  border-color: var(--mint-dim);
  transform: translateY(-3px);
}
.mf-how__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  margin-bottom: 14px;
}
.mf-how__step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.mf-how__step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Services footer link */
.mf-services__footer-link {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mf-services__footer-link > a {
  color: var(--mint);
  font-weight: 600;
  font-size: 14px;
}
.mf-services__note {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */

.mf-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.mf-faq__heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mf-faq__sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.mf-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mf-faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.mf-faq__item--open {
  border-color: var(--mint-dim);
}
.mf-faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mf-faq__icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--mint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.mf-faq__item--open .mf-faq__icon {
  transform: rotate(45deg);
}
.mf-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 22px;
}
.mf-faq__item--open .mf-faq__a {
  max-height: 240px;
  padding: 0 22px 20px;
}
.mf-faq__a p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Footer ---------- */

.mf-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.mf-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  .mf-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
.mf-footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mf-footer__logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.mf-footer__tagline {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}
.mf-footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.mf-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mf-footer__col a {
  font-size: 13px;
  color: var(--text-muted);
}
.mf-footer__col a:hover {
  color: var(--mint);
}
.mf-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Hero depth treatment (background glow + grid) ---------- */

.mf-hero--depth {
  position: relative;
  overflow: hidden;
}
.mf-hero__bg-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(61,127,255,0.14) 0%, rgba(61,127,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.mf-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.mf-hero--depth .mf-hero__content,
.mf-hero--depth .mf-counter-card {
  position: relative;
  z-index: 1;
}
.mf-hero--depth {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .mf-hero--depth { grid-template-columns: 1fr; }
}

/* ---------- Malaysia flag-inspired ambient background ---------- */
/* Subtle, low-opacity color wash — not literal stripes — so it reads
   as premium ambient lighting rather than a costume-y flag graphic. */

.mf-my-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 15%, rgba(204,0,1,0.16) 0%, transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(61,127,255,0.22) 0%, transparent 48%),
    radial-gradient(circle at 50% 100%, rgba(255,204,0,0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(204,0,1,0.10) 0%, transparent 42%);
}

/* Faint crescent + star motif, positioned behind the hero's counter
   card, echoing the Jalur Gemilang's canton abstractly */
.mf-hero__motif {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 420px;
  height: 420px;
  color: #FFCC00;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 860px) {
  .mf-hero__motif { width: 280px; height: 280px; top: -20px; right: -40px; }
}

/* ---------- Why MalaysiaFollowers ---------- */

.mf-why {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 20px;
}
.mf-why__heading {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mf-why__sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 36px;
}
.mf-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .mf-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mf-why__grid { grid-template-columns: 1fr; }
}
.mf-why__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.mf-why__card:hover {
  border-color: var(--mint-dim);
  transform: translateY(-3px);
}
.mf-why__icon {
  color: var(--mint);
  font-size: 18px;
  margin-bottom: 14px;
}
.mf-why__card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.mf-why__card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Connected how-it-works: horizontal line through the numbers */
.mf-how__grid--connected {
  position: relative;
}
@media (min-width: 801px) {
  .mf-how__grid--connected::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    z-index: 0;
  }
}
.mf-how__grid--connected .mf-how__step {
  position: relative;
  z-index: 1;
}

/* ---------- Sign-in section wrapper ---------- */

.mf-signin-section {
  padding: 20px 0 40px;
}
.mf-signin-section__eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

/* ---------- Final CTA band ---------- */

.mf-final-cta {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dim) 100%);
  text-align: center;
  padding: 72px 32px;
  margin-top: 20px;
}
.mf-final-cta h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink); /* dark text for contrast on yellow */
  margin: 0 0 12px;
}
.mf-final-cta p {
  color: rgba(10,14,13,0.75); /* dark, translucent — was white */
  font-size: 15px;
  margin: 0 0 28px;
}
.mf-final-cta__btn {
  background: #fff;
  color: var(--coral-dim) !important;
  font-weight: 700;
  padding: 14px 32px;
}
.mf-final-cta__btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* ---------- Points program page ---------- */

.mf-points__intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.mf-points__terms {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}
.mf-points__terms h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.mf-points__terms ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mf-points__terms li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.mf-points__terms li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-size: 10px;
  top: 5px;
}
.mf-points__terms li strong {
  color: var(--text);
}

.mf-points__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ---------- Contributor signup page ---------- */

.mf-contributor__notice {
  background: rgba(255,204,0,0.08);
  border: 1px solid rgba(255,204,0,0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.mf-contributor__notice strong {
  color: var(--coral);
}

.mf-contributor__form.well {
  max-width: 520px;
  margin: 0 0 40px;
}
.mf-contributor__checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.mf-contributor__checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}
.mf-contributor__form-note {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin: 10px 0 0;
}
.mf-profile-chip__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.mf-profile-chip__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Add funds" item inside the balance dropdown menu */
.mf-dropdown-add-funds {
  color: var(--mint) !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.mf-dropdown-add-funds__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(61,127,255,0.15);
  font-size: 12px;
  font-weight: 700;
}
.mf-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
  padding: 0 !important;
}

.navbar-toggle {
  border-color: var(--border);
}
.navbar-toggle .icon-bar {
  background: var(--text-muted);
}
.navbar-toggle:hover {
  background: var(--surface) !important;
}

/* Mobile-collapsed menu background */
.navbar-collapse {
  background: var(--ink);
  border-color: var(--border);
}

/* ---------- Overrides: Add funds page (addfunds.twig) ---------- */

#amount, #cpf {
  font-family: var(--font-mono);
  font-size: 18px;
}

#addfunds-table, .table {
  background: transparent;
}
.table > thead > tr > th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.table > tbody > tr > td {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  vertical-align: middle;
}
.table > tbody > tr:hover {
  background: var(--surface-2);
}
.table .text-right a {
  font-size: 13px;
  color: var(--mint);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 20px 0 0;
}
.pagination > li { list-style: none; }
.pagination > li > a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
}
.pagination > li > a:hover {
  border-color: var(--mint-dim);
  color: var(--text);
}
.pagination > li.active > a {
  background: rgba(61,127,255,0.12);
  border-color: var(--mint);
  color: var(--mint);
}

/* ---------- Dashboard page (custom, newpage.twig) ---------- */

.mf-dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.mf-dash__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.mf-dash__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mf-dash__eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.8s ease-in-out infinite;
}
.mf-dash__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.mf-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .mf-dash__stats { grid-template-columns: 1fr; }
}

.mf-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.mf-stat-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.mf-stat-card__value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.mf-stat-card__link {
  font-size: 13px;
  color: var(--mint);
}
.mf-stat-card__link--muted {
  color: var(--text-faint);
}

.mf-dash__section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mf-dash__section-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.mf-dash__section-head a {
  font-size: 13px;
  color: var(--text-muted);
}

.mf-dash__table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mf-dash__table {
  width: 100%;
  border-collapse: collapse;
}
.mf-dash__table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.mf-dash__table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.mf-dash__table tbody tr:last-child td { border-bottom: none; }
.mf-dash__table tbody tr:hover { background: var(--surface-2); }
.mf-dash__table .mono { font-family: var(--font-mono); }
.mf-dash__table .mint { color: var(--mint); }
.mf-dash__empty {
  text-align: center;
  color: var(--text-faint);
  padding: 32px 20px !important;
}

.mf-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.mf-status--completed { background: rgba(61,127,255,0.12); color: var(--mint); }
.mf-status--processing, .mf-status--pending { background: rgba(255,204,0,0.12); color: var(--coral); }
.mf-status--canceled, .mf-status--failed { background: var(--surface-2); color: var(--text-faint); }
