/* =====================================================================
   Black Friday header, mobile menu and footer: on the whole site while the
   offer runs (body.mbf-chrome), and always on the Black Friday page
   (body.mbf-page) and its checkout steps (body.mbf-checkout). The NORFLO
   header and footer markup is the theme's own; the logo is swapped for assets/logo-blackfriday.svg (blackfriday.php).
   ===================================================================== */

:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) {
	--bfc-black: #060607;
	--bfc-card: #161618;
	--bfc-line: rgba(255, 255, 255, .10);
	--bfc-text: #DEDEE1;
	--bfc-muted: #A3A3A8;
	--bfc-deal: #E3192B;
	--bfc-deal-hover: #F2333F;
	--bfc-deal-text: #FF5A66;
	--bfc-deal-ink: #FFFFFF;
}

/* ---------- Header ------------------------------------------------------ */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar {
	background: linear-gradient(180deg, rgba(10, 10, 11, .95) 0%, rgba(10, 10, 11, .84) 100%) !important;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* A thin red line under the bar */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2px; pointer-events: none;
	background: var(--bfc-deal, #E3192B);
}
/* A red % gift tag hanging from that line, swinging (owner, 10 Nov 2026: like the Halloween spider). Same twine-and-tag
   image as the offer card (assets/tag-string.svg); it swings around its eyelet, 8/170 down the image. */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar::before {
	content: ""; position: absolute; z-index: 2; top: calc(100% - 3px); right: 23%; width: 28px; height: 66px; pointer-events: none;
	background: url(assets/tag-string.svg) center top / 28px auto no-repeat;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
	transform-origin: 50% 4.7%;
	animation: mbfNavSwing 3.4s ease-in-out infinite alternate;
}
@keyframes mbfNavSwing { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@media (max-width: 991px) {
	:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar::before { right: 30%; width: 24px; height: 57px; background-size: 24px auto; }
}
@media (prefers-reduced-motion: reduce) {
	:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar::before { animation: none; }
}
/* The regular thank-you steps open on a centred heading right under the bar (modeiptv-checkout/thankyou.php, 16 Nov 2026):
   it starts below the hanging tag. */
body.mbf-chrome .mco-ty { padding-top: 16px; }
@media (max-width: 991px) {
	body.mbf-chrome .mco-ty { padding-top: 62px; } /* the Premium step has no top padding of its own on phones */
}

:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .nav-link { color: #C2C2C6 !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .nav-link:is(:hover, :focus-visible),
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .dropdown-menu a:is(:hover, :focus-visible) { color: var(--bfc-deal-text, #FF5A66) !important; } /* menu hovers: blue (owner, 22 Oct 2026) */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .dropdown-menu { background: var(--bfc-card, #161618) !important; border: 1px solid var(--bfc-line, rgba(255, 255, 255, .10)) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .dropdown-menu a { color: var(--bfc-text, #DEDEE1) !important; }
/* "Free Trial": red on the offer page and its checkout only; the rest of the site keeps the usual blue one (owner, Halloween) */
:is(body.mbf-page, body.mbf-checkout) .navbar .btn { background-color: var(--bfc-deal, #E3192B) !important; color: var(--bfc-deal-ink, #FFFFFF) !important; font-weight: 800; }
:is(body.mbf-page, body.mbf-checkout) .navbar .btn:hover { background-color: var(--bfc-deal-hover, #F2333F) !important; color: var(--bfc-deal-ink, #FFFFFF) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .burger-menu span { background-color: #FFFFFF !important; }

/* Mobile menu panel */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar.offcanvas { background: var(--bfc-black, #060607) url(assets/tag.svg) right 18px bottom 24px / 96px auto no-repeat !important; color: var(--bfc-text, #DEDEE1); }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .logo-responsive-option { color: #FFFFFF !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .close-btn { color: #FFFFFF !important; background: transparent !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar :is(.nav-link, a) { color: var(--bfc-text, #DEDEE1) !important; border-color: var(--bfc-line, rgba(255, 255, 255, .10)) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar :is(.nav-link, a):hover { color: var(--bfc-deal-text, #FF5A66) !important; }

/* ---------- Footer ------------------------------------------------------ */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area {
	position: relative; overflow: hidden;
	background-color: var(--bfc-black, #060607) !important;
	background-size: auto !important;
}
/* A thin red line along the top */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; pointer-events: none;
	background: var(--bfc-deal, #E3192B);
}

:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area .container { position: relative; z-index: 1; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area :is(h3, h4) { color: #FFFFFF !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area h3::after {
	content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 2px;
	background: linear-gradient(90deg, var(--bfc-deal, #E3192B), #F2333F);
}
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area p { color: var(--bfc-muted, #A3A3A8) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area .menu a,
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area .social-links a { color: var(--bfc-muted, #A3A3A8) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area .menu a:is(:hover, :focus-visible),
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area .social-links a:is(:hover, :focus-visible) { color: var(--bfc-deal-text, #FF5A66) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .copyright-area { background: #060A16 !important; border-top: 1px solid var(--bfc-line, rgba(255, 255, 255, .10)); }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .copyright-area :is(p, div, span) { color: #8E8E94 !important; }
/* No blue: the theme's navy copyright strip and blue footer shape become plain black */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-area { background-image: none !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .copyright-area { background: #060607 !important; border-top: 1px solid rgba(255, 255, 255, .08); }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .copyright-area a { color: #FF5A66 !important; }

@media (max-width: 640px) {

}

/* Mobile menu: the theme's light sub-menu, its toggle square and the header rule */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .offcanvas-header { border-bottom-color: var(--bfc-line, rgba(255, 255, 255, .10)) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .sub-menu { background: var(--bfc-card, #161618) !important; border-radius: 10px; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .menu-item-has-children::before { background-color: rgba(255, 255, 255, .08) !important; color: var(--bfc-deal-text, #FF5A66) !important; border-radius: 6px; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .logo-responsive-option { text-decoration: none; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .responsive-navbar .logo { text-decoration: none !important; }

/* Back-to-top button: red like the other buttons */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) #backtotop { background-color: var(--bfc-deal, #E3192B) !important; color: var(--bfc-deal-ink, #FFFFFF) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) #backtotop:hover { background-color: var(--bfc-deal-hover, #F2333F) !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) #backtotop * { color: var(--bfc-deal-ink, #FFFFFF) !important; }

/* Desktop dropdown ("Setup Guides"): the theme paints .dropdown-item black with !important, which was unreadable on the dark panel */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .navbar-nav .dropdown-menu .dropdown-item,
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .navbar-nav .dropdown-menu .dropdown-item.nav-link,
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .navbar-nav .dropdown-menu li a { color: var(--bfc-text, #DEDEE1) !important; background: transparent !important; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .navbar-nav .dropdown-menu .dropdown-item:is(:hover, :focus-visible, .active),
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .navbar-nav .dropdown-menu li a:is(:hover, :focus-visible) { color: var(--bfc-deal-text, #FF5A66) !important; background: rgba(140, 200, 255, .08) !important; }

/* Offer page: the discount card already has its tag; the one under the menu would sit right next to it
   (phones first, then every screen size: owner, 10 Nov 2026). The checkout and other pages keep it. */
body.mbf-page .navbar::before { display: none; }

/* One red everywhere (owner, 10 Nov 2026): the red "Free Trial" button in the menu in the offer's glossy red,
   on the offer page and its checkout (where it is red); the rest of the site keeps its usual button. */
:is(body.mbf-page, body.mbf-checkout) .navbar .btn {
	background-color: #E3192B !important;
	background-image: linear-gradient(180deg, #FF4A56 0%, #E3192B 52%, #B00E1D 100%) !important;
	border-color: transparent !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -12px rgba(227, 25, 43, .75) !important;
}
:is(body.mbf-page, body.mbf-checkout) .navbar .btn:hover {
	background-image: linear-gradient(180deg, #E3192B 0%, #C4101F 55%, #8F0A17 100%) !important;
}

/* The Black Friday logo (assets/logo-blackfriday.svg, owner 11 Nov 2026) has a gold sale tag hanging left of the badge,
   so its picture is wider than the regular logo: same height as the regular one, a little wider, so the letters keep their size */
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .navbar .main-logo { height: 45px !important; width: auto !important; max-width: none; }
:is(body.mbf-page, body.mbf-checkout, body.mbf-chrome) .footer-logo img { height: 69px !important; width: auto !important; max-width: 100%; }
