/* ============================================================
   MEDIAFORCE — Custom WHMCS Theme ("midnight stream")
   Overlays templates/twenty-one (Bootstrap 4 based)
   Load order: theme.min.css -> all.min.css -> custom.css
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --mf-bg: #05070f;
  --mf-bg-2: #070b16;
  --mf-surface: #0c1324;
  --mf-surface-2: #111a31;
  --mf-surface-3: #16223f;
  --mf-border: rgba(126, 143, 178, 0.16);
  --mf-border-strong: rgba(126, 143, 178, 0.30);
  --mf-text: #e8edf7;
  --mf-muted: #8e9bb6;
  --mf-violet: #7c5cff;
  --mf-blue: #4d7cff;
  --mf-cyan: #2fd4ff;
  --mf-grad: linear-gradient(135deg, #7c5cff 0%, #4d7cff 55%, #2fd4ff 100%);
  --mf-grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(47,212,255,.12));
  --mf-glow: 0 10px 34px -8px rgba(96, 92, 255, 0.55);
  --mf-radius: 16px;
  --mf-radius-sm: 12px;
  --mf-font-body: 'Inter', 'Open Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mf-font-head: 'Sora', 'Inter', 'Open Sans', sans-serif;
  /* Bootstrap var alignment (used by a few BS4 utility spots) */
  --primary: #7c5cff;
  --white: #e8edf7;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--mf-bg) !important;
  background-image:
    radial-gradient(1100px 520px at 85% -8%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 12%, rgba(47, 212, 255, 0.10), transparent 55%),
    radial-gradient(1200px 700px at 50% 120%, rgba(77, 124, 255, 0.10), transparent 60%) !important;
  background-attachment: fixed !important;
  color: var(--mf-text) !important;
  font-family: var(--mf-font-body) !important;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.primary-bg-color { background: var(--mf-bg) !important; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--mf-font-head) !important;
  color: var(--mf-text) !important;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h2.section-header, #main-body h2 { font-weight: 800; }

p, li, td, th, label, small { color: inherit; }

a { color: var(--mf-cyan); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: #7ce4ff; text-decoration: none; }

::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }

.text-muted { color: var(--mf-muted) !important; }
hr { border-top-color: var(--mf-border) !important; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--mf-bg-2); }
::-webkit-scrollbar-thumb { background: #1d2a4a; border-radius: 8px; border: 2px solid var(--mf-bg-2); }
::-webkit-scrollbar-thumb:hover { background: #2a3b66; }

/* ---------- Header / Navbar ---------- */
#header.header {
  background: rgba(5, 8, 16, 0.78) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mf-border) !important;
  position: sticky;
  top: 0;
  z-index: 1030;
}

#header .main-navbar-wrapper { padding-top: 0; padding-bottom: 0; }
#header .navbar { min-height: 68px; padding: 0.4rem 0; }

#header .navbar-brand {
  font-family: var(--mf-font-head) !important;
  font-weight: 800 !important;
  font-size: 1.42rem !important;
  letter-spacing: 0.02em;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
#header .navbar-brand::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--mf-grad);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.9);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
#header .navbar-brand:hover { color: #fff !important; opacity: .92; }

#header .navbar-light .navbar-nav .nav-link {
  color: var(--mf-muted) !important;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .6rem .85rem;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease;
}
#header .navbar-light .navbar-nav .nav-link:hover,
#header .navbar-light .navbar-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(124, 92, 255, 0.12);
}
#header .navbar-light .navbar-toggler { border-color: var(--mf-border-strong); }
#header .navbar-light .navbar-toggler .navbar-toggler-icon {
  filter: invert(1) hue-rotate(180deg);
}

/* Cart button + badge */
#header .cart-btn { color: var(--mf-text) !important; }
#header .navbar .badge.badge-info {
  background: var(--mf-grad) !important;
  border-radius: 20px !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(124, 92, 255, 0.5);
}

/* Search */
#header .input-group.search .form-control,
#header .appended-form-control,
#header .prepended-form-control {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-text) !important;
  border-radius: 10px !important;
}
#header .input-group.search .form-control::placeholder { color: #5b6884; }
#header .input-group.search .btn.btn-default {
  background: var(--mf-surface-2) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-muted) !important;
  border-radius: 10px !important;
  margin-left: 6px;
}
#header .input-group.search .btn.btn-default:hover { color: #fff !important; border-color: var(--mf-border-strong) !important; }
#header .input-group-prepend .btn {
  background: var(--mf-surface-2) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-muted) !important;
}
#header .input-group-prepend .btn:hover { color: #fff !important; }

/* Dropdown menus */
#header .dropdown-menu,
.collapsable-dropdown-menu.dropdown-menu,
.dropdown-menu {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.75) !important;
  padding: 8px !important;
}
.dropdown-item {
  color: var(--mf-text) !important;
  border-radius: 9px !important;
  padding: 9px 14px !important;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(124, 92, 255, 0.16) !important;
  color: #fff !important;
}
.dropdown-divider { border-top-color: var(--mf-border) !important; margin: 6px 0 !important; }
.dropdown-toggle::after { border-top-color: currentColor; }

/* ---------- Breadcrumb ---------- */
.master-breadcrumb {
  background: transparent !important;
  padding: 14px 0 0 !important;
}
.master-breadcrumb .breadcrumb {
  background: rgba(12, 19, 36, 0.7) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  margin-bottom: 26px !important;
  font-size: .85rem;
}
.breadcrumb-item a { color: var(--mf-muted) !important; font-weight: 600; }
.breadcrumb-item a:hover { color: #fff !important; }
.breadcrumb-item.active { color: var(--mf-text) !important; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #4c5975 !important; }

/* ============================================================
   PART 2 — Components
   ============================================================ */

/* ---------- Cards / Panels ---------- */
.card {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius) !important;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.65) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { border-color: var(--mf-border-strong) !important; }
.card .card-header,
.card .card-footer {
  background: transparent !important;
  border-color: var(--mf-border) !important;
  font-family: var(--mf-font-head);
  font-weight: 700;
  color: var(--mf-text) !important;
}
.card .card-body { color: var(--mf-text); }
.card-columns.home .card:hover,
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(124,92,255,.18), var(--mf-glow); }

.panel { background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: var(--mf-radius); }
.panel-heading, .panel-footer { background: transparent !important; border-color: var(--mf-border) !important; color: var(--mf-text) !important; }
.panel-body { color: var(--mf-text); }

/* Quick-action icon tiles (Announcements, KB, etc.) */
.action-icon-btns a {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius) !important;
  color: var(--mf-text) !important;
  font-weight: 600;
  display: block;
  padding: 22px 12px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.action-icon-btns a:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.55) !important;
  box-shadow: var(--mf-glow);
  color: #fff !important;
  text-decoration: none;
}
.action-icon-btns .ico-container {
  width: 58px; height: 58px;
  margin: 0 auto 12px !important;
  border-radius: 16px !important;
  background: var(--mf-grad-soft) !important;
  border: 1px solid rgba(124, 92, 255, 0.35) !important;
  display: flex; align-items: center; justify-content: center;
}
.action-icon-btns .ico-container i { color: var(--mf-cyan) !important; font-size: 1.5rem; }
.action-icon-btns a[class*="card-accent-"]:hover .ico-container i { color: #fff !important; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--mf-radius-sm) !important;
  font-weight: 600 !important;
  font-family: var(--mf-font-body);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:focus { box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.35) !important; }

.btn-primary, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--mf-grad) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--mf-glow);
}
.btn-primary:hover, .btn-primary:focus {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-outline-primary {
  background: transparent !important;
  border: 1.5px solid rgba(124, 92, 255, 0.75) !important;
  color: #b9a8ff !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: rgba(124, 92, 255, 0.16) !important;
  border-color: var(--mf-violet) !important;
  color: #fff !important;
}

.btn-secondary, .btn-default, .btn-light {
  background: var(--mf-surface-2) !important;
  border: 1px solid var(--mf-border-strong) !important;
  color: var(--mf-text) !important;
}
.btn-secondary:hover, .btn-default:hover, .btn-light:hover,
.btn-secondary:focus, .btn-default:focus, .btn-light:focus {
  background: var(--mf-surface-3) !important;
  color: #fff !important;
  border-color: rgba(126, 143, 178, 0.5) !important;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  border: none !important;
  color: #04110c !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.5);
}
.btn-success:hover { filter: brightness(1.08); transform: translateY(-1px); color: #04110c !important; }

.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #fb7185) !important;
  border: none !important;
  color: #fff !important;
}
.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  border: none !important;
  color: #201200 !important;
  font-weight: 700 !important;
}
.btn-info {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
  border: none !important;
  color: #04121e !important;
  font-weight: 700 !important;
}
.btn-link { color: var(--mf-cyan) !important; }
.btn-link:hover { color: #fff !important; }
.btn-outline-secondary, .btn-outline-default {
  border: 1.5px solid var(--mf-border-strong) !important;
  color: var(--mf-muted) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover, .btn-outline-default:hover { color: #fff !important; border-color: #fff !important; }

/* ---------- Forms ---------- */
.form-control {
  background: #0a1120 !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius-sm) !important;
  color: var(--mf-text) !important;
  font-size: .92rem;
  box-shadow: none !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus {
  background: #0b1426 !important;
  border-color: rgba(124, 92, 255, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22) !important;
  color: var(--mf-text) !important;
}
.form-control::placeholder { color: #5b6884 !important; opacity: 1; }
.form-control[readonly], .form-control[disabled] { opacity: .6; }

.input-group-text {
  background: var(--mf-surface-2) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-muted) !important;
  border-radius: var(--mf-radius-sm) !important;
}
.input-group .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group-append .btn { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

.custom-select {
  background-color: #0a1120 !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-text) !important;
  border-radius: var(--mf-radius-sm) !important;
}
.custom-control-input:checked ~ .custom-control-label::before {
  background: var(--mf-grad) !important;
  border-color: var(--mf-violet) !important;
}
.custom-control-label::before { background-color: #0a1120 !important; border-color: var(--mf-border-strong) !important; }

/* ---------- Tables ---------- */
.table { color: var(--mf-text) !important; }
.table thead th {
  color: var(--mf-muted) !important;
  border-bottom: 1px solid var(--mf-border-strong) !important;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  background: transparent;
}
.table td, .table th { border-color: var(--mf-border) !important; vertical-align: middle !important; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(17, 26, 49, 0.55) !important; }
.table-hover tbody tr:hover { background-color: rgba(124, 92, 255, 0.10) !important; color: #fff; }
.table .table { color: var(--mf-text); }

/* ---------- Badges / Alerts ---------- */
.badge { border-radius: 8px !important; font-weight: 700 !important; padding: 5px 10px !important; }
.badge-primary { background: var(--mf-violet) !important; color: #fff !important; }
.badge-success { background: rgba(16, 185, 129, 0.18) !important; color: #34d399 !important; border: 1px solid rgba(16,185,129,.4) !important; }
.badge-danger  { background: rgba(244, 63, 94, 0.16) !important; color: #fb7185 !important; border: 1px solid rgba(244,63,94,.4) !important; }
.badge-warning { background: rgba(245, 158, 11, 0.16) !important; color: #fbbf24 !important; border: 1px solid rgba(245,158,11,.4) !important; }
.badge-info    { background: rgba(56, 189, 248, 0.16) !important; color: #38bdf8 !important; border: 1px solid rgba(56,189,248,.4) !important; }
.badge-secondary { background: rgba(126, 143, 178, 0.18) !important; color: #aab7d0 !important; border: 1px solid var(--mf-border-strong) !important; }
.badge-default { background: rgba(126, 143, 178, 0.18) !important; color: #aab7d0 !important; }

.alert {
  border-radius: var(--mf-radius-sm) !important;
  border: 1px solid var(--mf-border) !important;
  background: var(--mf-surface) !important;
  color: var(--mf-text) !important;
}
.alert-success { border-left: 4px solid #10b981 !important; }
.alert-danger  { border-left: 4px solid #f43f5e !important; }
.alert-warning { border-left: 4px solid #f59e0b !important; }
.alert-info    { border-left: 4px solid #0ea5e9 !important; }
.alert-primary { border-left: 4px solid var(--mf-violet) !important; }
.alert a { font-weight: 600; }

/* ---------- Modals ---------- */
.modal-content {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: 18px !important;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.85) !important;
}
.modal-header, .modal-footer { border-color: var(--mf-border) !important; }
.modal-title { font-family: var(--mf-font-head); font-weight: 700; }
.modal .close { color: var(--mf-text) !important; text-shadow: none !important; opacity: .7; }
.modal .close:hover { opacity: 1; }
.modal-backdrop.show { opacity: .78; }

/* ---------- Pagination / Tabs / Navs ---------- */
.pagination .page-link {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-muted) !important;
  font-weight: 600;
}
.pagination .page-item.active .page-link {
  background: var(--mf-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.pagination .page-link:hover { color: #fff !important; border-color: var(--mf-border-strong) !important; }

.nav-tabs { border-bottom-color: var(--mf-border) !important; }
.nav-tabs .nav-link {
  color: var(--mf-muted) !important;
  border: 1px solid transparent !important;
  font-weight: 600;
  border-radius: 10px 10px 0 0 !important;
}
.nav-tabs .nav-link:hover { color: #fff !important; }
.nav-tabs .nav-link.active {
  background: var(--mf-surface) !important;
  color: #fff !important;
  border-color: var(--mf-border) var(--mf-border) var(--mf-surface) !important;
  box-shadow: inset 0 2px 0 var(--mf-violet);
}
.nav-pills .nav-link { color: var(--mf-muted) !important; font-weight: 600; border-radius: 10px !important; }
.nav-pills .nav-link.active { background: var(--mf-grad) !important; color: #fff !important; }
.nav-pills .nav-link:hover { color: #fff !important; }

/* ---------- Footer ---------- */
#footer.footer {
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.4), rgba(3, 4, 9, 0.95)) !important;
  border-top: 1px solid var(--mf-border) !important;
  margin-top: 64px !important;
  padding: 44px 0 40px !important;
}
#footer.footer .nav-link {
  color: var(--mf-muted) !important;
  font-weight: 600;
  padding: .3rem 0 !important;
}
#footer.footer .nav-link:hover { color: #fff !important; }
#footer.footer .btn {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-muted) !important;
  border-radius: 10px !important;
}
#footer.footer .btn:hover { color: #fff !important; border-color: var(--mf-border-strong) !important; }
#footer.footer .copyright { color: #5b6884 !important; font-size: .82rem; }
#footer.footer .iti-flag { border-radius: 2px; }

/* ---------- Misc WHMCS ---------- */
#main-body { padding: 8px 0 40px; }
section#main-body .page-header { border-color: var(--mf-border); }

/* Login / register centered box */
.client-area-login .card, body:not(.loggedin) .main-content > .card { overflow: hidden; }

/* Errors / validation */
.error-tooltip, .invalid-feedback { color: #fb7185 !important; }
.was-validated .form-control:invalid { border-color: #f43f5e !important; }

/* Panels used in some orderform steps */
.wizard .card, .checkout-steps .card { overflow: hidden; }

/* Domain search bar on store */
.domain-checker-container, .domainchecker .well {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius) !important;
}

/* standard_cart tweaks */
#order-standard_cart .card { overflow: hidden; }
#order-standard_cart .product-slider .slick-slide .product {
  background: var(--mf-surface) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius) !important;
}

/* Kbd / code */
kbd, code { background: var(--mf-surface-2) !important; color: #9fd6ff !important; border-radius: 6px !important; }
pre { background: var(--mf-surface) !important; border: 1px solid var(--mf-border) !important; color: var(--mf-text) !important; border-radius: 12px; }

/* Language modal flag rows */
#modalChooseLanguage .modal-body .col-sm-3 { margin-bottom: 6px; }

/* ============================================================
   PART 3 — Mediaforce landing sections (homepage.tpl)
   ============================================================ */

.mf-wrap { max-width: 1140px; margin: 0 auto; }

/* ---------- Hero ---------- */
.mf-hero {
  position: relative;
  border: 1px solid var(--mf-border);
  border-radius: 26px;
  background:
    radial-gradient(640px 340px at 88% 0%, rgba(124, 92, 255, 0.28), transparent 62%),
    radial-gradient(520px 320px at 4% 100%, rgba(47, 212, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #0b1226 0%, #070b18 55%, #060a14 100%);
  box-shadow: 0 34px 80px -38px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  margin: 6px 0 14px;
}
.mf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,143,178,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,143,178,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 420px at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 420px at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.mf-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.mf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.12);
  color: #c4b5ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mf-badge .mf-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: mfPulse 2s infinite;
}
.mf-title {
  font-family: var(--mf-font-head);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.mf-title .mf-grad-text {
  background: var(--mf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.mf-lead {
  color: var(--mf-muted) !important;
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 26px;
}
.mf-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.mf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 700 !important;
  font-size: .95rem;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.mf-btn:hover { transform: translateY(-2px); text-decoration: none; }
.mf-btn-primary { background: var(--mf-grad); color: #fff !important; box-shadow: var(--mf-glow); }
.mf-btn-primary:hover { filter: brightness(1.1); }
.mf-btn-ghost {
  background: rgba(12, 19, 36, 0.7);
  border: 1px solid var(--mf-border-strong);
  color: var(--mf-text) !important;
}
.mf-btn-ghost:hover { border-color: var(--mf-cyan); color: #fff !important; }
.mf-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mf-checks li { color: var(--mf-muted); font-size: .88rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.mf-checks li i { color: #34d399; font-size: .95rem; }

/* Hero visual — glass player */
.mf-hero-visual { position: relative; z-index: 2; min-height: 300px; }
.mf-player {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(126, 143, 178, 0.28);
  background: linear-gradient(165deg, rgba(22, 32, 62, 0.92), rgba(9, 13, 26, 0.95));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
  animation: mfFadeUp .7s .15s both;
}
.mf-player::before {
  content: '';
  display: block;
  padding-top: 56%;
}
.mf-screen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 170px at 30% 22%, rgba(124, 92, 255, 0.5), transparent 70%),
    radial-gradient(340px 200px at 78% 72%, rgba(47, 212, 255, 0.35), transparent 72%),
    linear-gradient(150deg, #101a36, #0a0f20 70%);
}
.mf-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
}
.mf-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.5rem;
  padding-left: 5px;
  animation: mfPulseRing 2.6s infinite;
}
.mf-player-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(transparent, rgba(4, 6, 12, 0.9));
}
.mf-player-bar i { color: var(--mf-muted); }
.mf-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(126,143,178,.25); position: relative; }
.mf-track::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 4px; background: var(--mf-grad); }
.mf-track::after {
  content: '';
  position: absolute;
  left: 62%; top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(47, 212, 255, .9);
}
.mf-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
  color: #e8edf7;
  background: rgba(12, 19, 36, 0.88);
  border: 1px solid rgba(126, 143, 178, 0.35);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: mfFloat 5s ease-in-out infinite;
}
.mf-chip i { color: var(--mf-cyan); }
.mf-chip-1 { top: -14px; right: 8%; animation-delay: 0s; }
.mf-chip-2 { bottom: 6%; left: -18px; animation-delay: 1.2s; }
.mf-chip-3 { top: 40%; right: -14px; animation-delay: 2.2s; }
.mf-chip-3 i { color: #fbbf24; }

/* ---------- Generic sections ---------- */
.mf-section { padding: clamp(40px, 6vw, 74px) 0 6px; }
.mf-kicker {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--mf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 10px;
}
.mf-h2 {
  font-family: var(--mf-font-head);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.mf-sub { color: var(--mf-muted) !important; max-width: 640px; margin: 0 auto 8px; line-height: 1.65; }
.mf-center { text-align: center; }

/* ---------- Features ---------- */
.mf-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.mf-feature {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mf-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: var(--mf-glow);
}
.mf-feature-ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--mf-grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.mf-feature-ico i { color: var(--mf-cyan); font-size: 1.35rem; }
.mf-feature h3 {
  font-family: var(--mf-font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 8px;
}
.mf-feature p { color: var(--mf-muted) !important; font-size: .88rem; line-height: 1.6; margin: 0; }

/* ---------- Plans ---------- */
.mf-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
}
.mf-plan {
  position: relative;
  background: linear-gradient(170deg, var(--mf-surface-2), var(--mf-surface));
  border: 1px solid var(--mf-border);
  border-radius: 22px;
  padding: 32px 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mf-plan:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), var(--mf-glow);
}
.mf-plan-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--mf-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: var(--mf-glow);
}
.mf-plan h3 { font-family: var(--mf-font-head); font-size: 1.3rem; font-weight: 800; color: #fff !important; margin: 0 0 6px; }
.mf-plan-tagline { color: var(--mf-muted) !important; font-size: .9rem; margin: 0 0 18px; line-height: 1.55; }
.mf-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.mf-price { font-family: var(--mf-font-head); font-size: 2.5rem; font-weight: 800; color: #fff !important; line-height: 1; }
.mf-price-per { color: var(--mf-muted) !important; font-size: .9rem; font-weight: 600; }
.mf-plan-list { list-style: none; padding: 0; margin: 0 0 26px; }
.mf-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: var(--mf-text);
  font-size: .92rem;
}
.mf-plan-list li i { color: #34d399; margin-top: 4px; font-size: .85rem; }
.mf-plan .mf-btn { width: 100%; justify-content: center; }
.mf-plan-note { color: #5b6884 !important; font-size: .8rem; text-align: center; margin: 12px 0 0 !important; }
.mf-plan-flag {
  position: absolute;
  top: 22px; right: 22px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0a0620;
  background: var(--mf-grad);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--mf-glow);
}

/* ---------- Steps ---------- */
.mf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.mf-step {
  position: relative;
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: 18px;
  padding: 28px 24px;
}
.mf-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mf-grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: #fff;
  font-family: var(--mf-font-head);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.mf-step h3 { font-size: 1rem; font-weight: 700; color: #fff !important; margin: 0 0 8px; }
.mf-step p { color: var(--mf-muted) !important; font-size: .88rem; line-height: 1.6; margin: 0; }

/* ---------- Compatibility ---------- */
.mf-compat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.mf-compat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  color: var(--mf-text) !important;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.mf-compat-chip:hover { transform: translateY(-3px); border-color: rgba(47, 212, 255, 0.5); box-shadow: 0 14px 34px -16px rgba(47, 212, 255, 0.4); text-decoration: none; }
.mf-compat-chip i { color: var(--mf-cyan); font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.mf-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 70px);
  border-radius: 26px;
  padding: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(480px 240px at 90% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--mf-grad);
  text-align: center;
}
.mf-cta h2 {
  color: #fff !important;
  font-family: var(--mf-font-head);
  font-weight: 800 !important;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.mf-cta p { color: rgba(255, 255, 255, 0.85) !important; margin: 0 0 26px; font-size: 1.02rem; }
.mf-cta .mf-btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.mf-btn-white {
  background: #fff;
  color: #1b1440 !important;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5);
}
.mf-btn-white:hover { transform: translateY(-2px); color: #1b1440 !important; }
.mf-btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #fff !important;
}
.mf-btn-outline-white:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }

/* ---------- Animations ---------- */
@keyframes mfFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes mfPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes mfPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.mf-hero .mf-hero-copy > * { animation: mfFadeUp .65s both; }
.mf-hero .mf-badge { animation-delay: .05s; }
.mf-hero .mf-title { animation-delay: .12s; }
.mf-hero .mf-lead { animation-delay: .2s; }
.mf-hero .mf-cta-row { animation-delay: .28s; }
.mf-hero .mf-checks { animation-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .mf-hero-grid { grid-template-columns: 1fr; }
  .mf-hero-visual { min-height: 250px; max-width: 560px; margin: 6px auto 0; }
  .mf-features { grid-template-columns: repeat(2, 1fr); }
  .mf-steps { grid-template-columns: 1fr; }
  .mf-chip-3 { display: none; }
}
@media (max-width: 767.98px) {
  .mf-plans { grid-template-columns: 1fr; }
  #header.header { position: relative; }
}
@media (max-width: 559.98px) {
  .mf-features { grid-template-columns: 1fr; }
  .mf-hero { border-radius: 20px; }
  .mf-chip-2 { left: 0; }
  .mf-cta-row .mf-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mf-hero .mf-hero-copy > *, .mf-player, .mf-chip, .mf-play, .mf-badge .mf-dot { animation: none !important; }
}
