/*
Theme Name: MichalFutera.Pro
Version: 1.4
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
  --flutter-blue: #02569B;
  --telegram-blue: #0088CC;
  --buymeacoffee-yellow: #FFDD00;
  --mf-text: #122025;
  --mf-surface: #ffffff;
  --mf-surface-muted: #f5f9fc;
  --mf-border: #d8e4ec;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--mf-text);
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 25%, #f7fbff 100%);
}

.mf-hero {
  background: radial-gradient(circle at 15% 20%, #e3f3ff 0%, #f7fbff 45%, #ffffff 100%);
}

.mf-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c7390;
  font-size: 0.76rem;
  font-weight: 700;
}

.mf-hero-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(18, 32, 37, 0.08);
}

.mf-social-icons-wrap {
  border-bottom: 1px solid var(--mf-border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.mf-social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mf-border);
  border-radius: 999px;
  background: #fff;
  color: #1d3649;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-social-icon:hover {
  transform: translateY(-2px);
  color: var(--flutter-blue);
  border-color: #b7d0e0;
  box-shadow: 0 8px 14px rgba(18, 32, 37, 0.12);
}

.mf-social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mf-projects-panel {
  background: linear-gradient(180deg, #f7fbff 0%, #f1f7fc 55%, #f7fbff 100%);
  border-top: 1px solid rgba(2, 86, 155, 0.22);
  border-bottom: 1px solid rgba(2, 86, 155, 0.22);
  position: relative;
  overflow: hidden;
  background-size: 180% 180%;
  background-position: 50% 0%;
  box-shadow: 0 6px 14px rgba(18, 32, 37, 0.10);
  animation: mf-projects-panel-breathe 4.2s ease-in-out infinite;
}

.mf-projects-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 86, 155, 0.45);
  background: linear-gradient(90deg, #02569B 0%, #0088CC 100%);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(2, 86, 155, 0.22);
}

.mf-projects-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(255,255,255,0) 20%, rgba(0,136,204,0.22) 50%, rgba(255,255,255,0) 80%);
  transform: translateX(-130%);
  animation: mf-projects-sweep 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.mf-projects-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

.mf-projects-track {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mf-projects-panel.is-marquee .mf-projects-track {
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: max-content;
  animation: mf-projects-marquee var(--mf-projects-marquee-duration, 36s) linear infinite;
}

.mf-projects-panel.is-marquee .mf-project-card {
  flex: 0 0 auto;
}

.mf-projects-panel .mf-project-card.is-clone {
  pointer-events: none;
}

.mf-projects-panel.is-animated-once {
  animation: mf-projects-panel-highlight 1.55s ease;
}

.mf-projects-panel.is-animated-once::before {
  animation: mf-projects-sweep 1.1s ease;
}

.mf-projects-panel.is-animated-once .mf-project-card:not(.is-clone) {
  animation: mf-project-card-pop 0.58s ease;
}

.mf-projects-panel.is-animated-once .mf-project-card:nth-child(2):not(.is-clone) {
  animation-delay: 0.05s;
}

.mf-projects-panel.is-animated-once .mf-project-card:nth-child(3):not(.is-clone) {
  animation-delay: 0.1s;
}

.mf-project-card {
  width: 170px;
  height: 110px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--mf-border);
  border-radius: 14px;
  box-shadow: 0 12px 20px rgba(18, 32, 37, 0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mf-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(2, 86, 155, 0.12);
  opacity: 0.45;
  pointer-events: none;
}

.mf-project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.36) 45%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}

.mf-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(2, 86, 155, 0.16);
  border-color: #c2d8e6;
}

.mf-project-logo {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.mf-top-widgets-band {
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(245, 249, 252, 0.95) 100%);
  border-top: 1px solid rgba(216, 228, 236, 0.65);
  border-bottom: 1px solid rgba(216, 228, 236, 0.65);
  border-radius: 16px;
}

.mf-feed-section {
  margin-top: 10px;
}

.mf-feed-section > .d-flex,
.mf-feed-section > header {
  margin-bottom: 1.15rem !important;
}

.mf-feed-section .single-post-main {
  border: 1px solid rgba(216, 228, 236, 0.75);
  background: #fff;
}

@keyframes mf-projects-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes mf-projects-panel-breathe {
  0%, 100% {
    background-position: 50% 0%;
    box-shadow: 0 6px 14px rgba(18, 32, 37, 0.10);
  }
  50% {
    background-position: 100% 100%;
    box-shadow: 0 6px 14px rgba(18, 32, 37, 0.10);
  }
}

@keyframes mf-projects-sweep {
  0%, 20% {
    transform: translateX(-130%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  65% {
    transform: translateX(130%);
    opacity: 1;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes mf-projects-panel-highlight {
  0% {
    box-shadow: 0 6px 14px rgba(18, 32, 37, 0.10);
  }
  45% {
    box-shadow: 0 14px 28px rgba(2, 86, 155, 0.25);
  }
  100% {
    box-shadow: 0 6px 14px rgba(18, 32, 37, 0.10);
  }
}

@keyframes mf-project-card-pop {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-projects-panel.is-marquee .mf-projects-track {
    animation: none;
  }

  .mf-projects-panel {
    animation-duration: 6.4s;
  }

  .mf-projects-panel::before {
    animation: none;
  }
}

.mf-hero-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-hero-logo,
.mf-hero-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(18, 32, 37, 0.15);
}

.mf-hero-logo {
  background-color: #fff;
}

.mf-content-card {
  max-width: 900px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(18, 32, 37, 0.08);
}

/* ── Content + Sidebar Layout ── */

.mf-layout {
  max-width: 900px;
  margin: 0 auto;
}

.mf-layout-content {
  min-width: 0;
}

.mf-layout-content .mf-content-card {
  max-width: none;
}

.mf-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  max-width: 1260px;
  align-items: start;
}

.mf-layout-sidebar {
  position: sticky;
  top: 1.5rem;
}

.mf-sidebar-widget {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(18, 32, 37, 0.05);
  margin-bottom: 1rem;
}

.mf-sidebar-widget:last-child {
  margin-bottom: 0;
}

.mf-sidebar-widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mf-text, #122025);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--mf-border, #d8e4ec);
}

.mf-sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mf-sidebar-widget li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--mf-surface-muted, #f5f9fc);
  font-size: 0.88rem;
}

.mf-sidebar-widget li:last-child {
  border-bottom: 0;
}

.mf-sidebar-widget a {
  color: var(--mf-text, #122025);
  text-decoration: none;
  transition: color 0.15s;
}

.mf-sidebar-widget a:hover {
  color: var(--flutter-blue, #02569B);
}

@media (max-width: 991.98px) {
  .mf-layout--sidebar {
    grid-template-columns: 1fr;
  }
  .mf-layout-sidebar {
    position: static;
  }
}

.mf-post-content {
  line-height: 1.75;
}

.mf-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.mf-post-content pre,
.mf-post-content code {
  background-color: #f0f6fb;
  border-radius: 8px;
}

.bg-flutter-blue-white-text {
  background-color: var(--flutter-blue) !important;
  color: white !important;
}

.bg-buymeacoffee-yellow-white-text {
  background-color: var(--buymeacoffee-yellow) !important;
  color: #2f2a00 !important;
}

.bg-telegram-blue-white-text {
  background-color: var(--telegram-blue) !important;
  color: white !important;
  transition: background-color 0.25s ease-in-out, transform 0.25s ease-in-out;
  overflow: hidden;
}
.bg-telegram-blue-white-text-top {
  background-color: var(--telegram-blue) !important;
  color: white !important;
}

.bg-telegram-blue-white-text:hover {
  background-color: var(--flutter-blue) !important;
  transform: translateY(-1px);
}

.bg-telegram-blue-white-text > * {
  transition: transform 0.3s ease-in-out;
}

.bg-telegram-blue-white-text:hover > * {
  transform: scale(1.05);
}

/* Multi-level menu (up to 3 levels) */
.navbar .dropdown-submenu {
  position: relative;
}

@media (min-width: 992px) {
  .navbar .dropdown-submenu > .dropdown-menu {
    top: -0.15rem;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0;
  }
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 0.75rem;
  }

  .navbar .dropdown-item {
    color: #fff;
    opacity: 0.95;
  }

  .navbar .nav-item > .nav-link {
    color: #fff;
  }

  .navbar .dropdown-submenu > .dropdown-menu {
    margin-left: 0.35rem;
  }
}


dialog {
  all: unset; 
  display: none; 
}

dialog[open] {
  all:unset;
  display: block; 
  position: fixed; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  background: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1050; 
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto; 
  cursor: default;
}

.dialog-handle {
  cursor: grab;
  padding: 10px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}

dialog[open].dragging {
  cursor: grabbing; /* Zmienia kursor podczas przeciągania */
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px); 
}

.profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.partner-logo {
  max-width: 100%;
  display: block;
  cursor: pointer;
}

.partner-logo-btn,
.partner-logo-link {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  display: inline-flex;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.partner-logo-btn:hover,
.partner-logo-link:hover {
  transform: translateY(-2px);
}

.dialog-content {
  max-width: 560px;
  width: min(560px, 90vw);
  padding: 1.25rem 1.25rem 1.1rem;
  position: relative;
}

.mfpro-dialog-body {
  padding-top: 0.35rem;
}

.mfpro-dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #edf3f8;
  color: #2a4f68;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mfpro-dialog-close:hover {
  background: #dfeaf3;
  color: #133950;
  transform: scale(1.04);
}

.mfpro-dialog-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.mfpro-dialog-logo-wrap a {
  display: inline-flex;
  border-radius: 10px;
}

.mfpro-dialog-logo {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.mfpro-dialog-title {
  text-align: center;
}

.mfpro-dialog-markdown p:last-child,
.mfpro-dialog-markdown ul:last-child,
.mfpro-dialog-markdown h1:last-child,
.mfpro-dialog-markdown h2:last-child,
.mfpro-dialog-markdown h3:last-child {
  margin-bottom: 0;
}

.mfpro-dialog-markdown ul {
  padding-left: 1.2rem;
}

.mfpro-dialog-markdown h1,
.mfpro-dialog-markdown h2,
.mfpro-dialog-markdown h3 {
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
}

.mfpro-dialog-markdown h1 {
  font-size: 1.28rem;
}

.mfpro-dialog-markdown h2 {
  font-size: 1.12rem;
}

.mfpro-dialog-markdown h3 {
  font-size: 1.02rem;
}

.padding-10{
    padding: 10px;
}

.sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 1030; /* jak navbar */
}

/* Fonts */
.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.underline-hover-left {
  position: relative;
  display: inline-block;
}

.underline-hover-left::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.underline-hover-left:hover::after {
  transform: scaleX(1);
}

.clickable-card {
  position: relative;
}

.stretched-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}
.clickable-card:hover {
    cursor: pointer;
}

.single-post-main {
  border: 1px solid var(--mf-border);
  background-color: var(--mf-surface);
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.single-post-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(2, 86, 155, 0.12) !important;
  border-color: #b8d2e3;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.single-post-main.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Post/Page hero header */
.mf-post-hero {
  width: 100%;
  height: clamp(280px, 45vw, 480px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.mf-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
}

.mf-post-hero-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  margin-bottom: 0;
  line-height: 1.2;
}

/* Card thumbnail on index / front-page */
.single-post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.375rem 0.375rem 0 0;
}

.widget {
  border: 1px solid var(--mf-border);
  background-color: var(--mf-surface-muted) !important;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--mf-border);
  border-radius: 999px;
  margin-right: 6px;
  text-decoration: none;
  color: var(--mf-text);
  background-color: #fff;
}

.page-numbers.current,
.page-numbers:hover {
  background-color: var(--flutter-blue);
  color: #fff;
  border-color: var(--flutter-blue);
}

.mf-footer {
  background: #f5f9fc;
}

.mf-footer .mf-social-icons-wrap {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.mf-footer .mf-social-icons-wrap .container {
  justify-content: flex-start !important;
  padding-left: 0;
  padding-right: 0;
}

.mf-footer .menu-item {
  display: inline-block;
  margin-left: 12px;
}

.mf-footer .menu-item a {
  text-decoration: none;
  color: #2a4f68;
}

.mf-footer .menu-item a:hover {
  color: var(--flutter-blue);
}

.mf-footer-partners {
  justify-content: flex-end;
  gap: 1rem;
}

.mf-footer-partners--marquee {
  width: 100%;
}

.mf-footer-partners-marquee {
  overflow: hidden;
  width: 100%;
}

.mf-footer-partners-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: mf-footer-marquee 30s linear infinite;
}

.mf-footer-partners-track .partner-logo-btn,
.mf-footer-partners-track .partner-logo-clone {
  flex: 0 0 auto;
}

.mf-footer-partners-track .partner-logo-clone {
  pointer-events: none;
}

.mf-footer-partners .partner-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

@keyframes mf-footer-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-footer-partners-track {
    animation: none;
  }

  .mf-push-floating {
    animation: none;
  }

  .mf-social-icons-wrap.is-animated .mf-social-icon {
    animation: none;
  }
}

.mf-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--flutter-blue);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(2, 86, 155, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
  z-index: 1100;
}

.mf-cookie-floating {
  position: fixed;
  right: 72px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--flutter-blue);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(2, 86, 155, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.mf-push-floating {
  position: fixed;
  right: 124px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--flutter-blue);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(2, 86, 155, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
  animation: mf-push-bell-ring 4.8s ease-in-out infinite;
  transform-origin: 50% 12%;
  z-index: 1100;
}

.mf-push-floating:hover {
  background: #013f72;
  transform: translateY(-1px);
}

.mf-social-icon-push {
  border: 1px solid var(--mf-border);
}

.mf-social-icon-push:disabled,
.mf-push-floating:disabled {
  opacity: 0.75;
  cursor: wait;
}

.mf-social-icon-push.is-active,
.mf-push-floating.is-active {
  background: #0b7a55;
  border-color: #0b7a55;
  color: #fff;
}

.mf-social-icon-push.is-active:hover,
.mf-push-floating.is-active:hover {
  background: #086646;
  border-color: #086646;
}

.mf-social-icon-push.is-busy,
.mf-push-floating.is-busy {
  transform: none;
}

.mf-social-icons-wrap.is-animated .mf-social-icon {
  animation: mf-social-pop 0.62s ease;
}

.mf-social-icons-wrap.is-animated .mf-social-icon:nth-child(2) {
  animation-delay: 0.05s;
}

.mf-social-icons-wrap.is-animated .mf-social-icon:nth-child(3) {
  animation-delay: 0.1s;
}

.mf-social-icons-wrap.is-animated .mf-social-icon:nth-child(4) {
  animation-delay: 0.15s;
}

.mf-cookie-floating:hover {
  background: #013f72;
  transform: translateY(-1px);
}

.mf-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mf-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6fc 100%);
  color: var(--mf-text);
  border-top: 1px solid var(--mf-border);
  box-shadow: 0 -8px 24px rgba(18, 32, 37, 0.12);
  transform: translateY(100%);
  transition: transform 0.22s ease;
}

.mf-cookie-banner.is-visible {
  transform: translateY(0);
}

.mf-cookie-banner p {
  max-width: 880px;
}

.mf-cookie-banner a {
  color: var(--flutter-blue);
  font-weight: 700;
}

.mf-cookie-banner a:hover {
  color: #013f72;
}

.mf-toast-root {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 1200;
  pointer-events: none;
}

.mf-toast {
  max-width: min(360px, calc(100vw - 40px));
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 32, 37, 0.94);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mf-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mf-cookie-accept {
  background-color: var(--flutter-blue);
  border-color: var(--flutter-blue);
  color: #fff;
  font-weight: 700;
}

.mf-cookie-accept:hover,
.mf-cookie-accept:focus {
  background-color: #013f72;
  border-color: #013f72;
  color: #fff;
}

@keyframes mf-push-bell-ring {
  0%, 88%, 100% {
    transform: rotate(0deg) scale(1);
  }
  90% {
    transform: rotate(-10deg) scale(1.03);
  }
  92% {
    transform: rotate(9deg) scale(1.03);
  }
  94% {
    transform: rotate(-7deg) scale(1.02);
  }
  96% {
    transform: rotate(6deg) scale(1.02);
  }
  98% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes mf-social-pop {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(2, 86, 155, 0);
  }
  45% {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 18px rgba(2, 86, 155, 0.24);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(2, 86, 155, 0);
  }
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.clickable-card:focus-visible {
  outline: 3px solid rgba(2, 86, 155, 0.4);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .profile-img {
    width: 120px;
    height: 120px;
  }

  .mf-footer .menu-item {
    margin-left: 0;
    margin-right: 12px;
  }

  .mf-footer-partners {
    justify-content: flex-start;
  }

  .mf-footer-partners-track {
    animation-duration: 22s;
  }

  .mf-footer-partners .partner-logo {
    width: 90px;
    height: 90px;
  }

  .mfpro-dialog-logo {
    width: 140px;
    height: 140px;
  }

  .mf-project-card {
    width: 140px;
    height: 96px;
  }

  .mf-cookie-banner {
    padding-bottom: max(env(safe-area-inset-bottom), 0px);
  }

  .mf-toast-root {
    bottom: 70px;
    right: 14px;
  }

  .mf-cookie-floating {
    right: 68px;
  }

  .mf-push-floating {
    right: 116px;
  }
}

/* ── Traffic Recovery Pages (404, Under Construction, No Results) ── */

.mf-tr {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.mf-tr-hero {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.mf-tr-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef5ff 0%, #d9eaff 100%);
  margin-bottom: 1.5rem;
  animation: mf-tr-pulse 3s ease-in-out infinite;
}

.mf-tr-icon svg {
  width: 48px;
  height: 48px;
  color: var(--flutter-blue, #02569B);
}

@keyframes mf-tr-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 86, 155, 0.15); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(2, 86, 155, 0); }
}

.mf-tr-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flutter-blue, #02569B);
  margin-bottom: 0.5rem;
}

.mf-tr-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mf-text, #122025);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.mf-tr-message {
  font-size: 1.05rem;
  color: #5a6a72;
  line-height: 1.7;
  margin-bottom: 0;
}

.mf-tr-message p {
  margin: 0;
}

.mf-tr-search {
  max-width: 500px;
  margin: 2rem auto;
}

/* Progress bar (Under Construction only) */

.mf-tr-bar-wrap {
  max-width: 400px;
  margin: 2rem auto 0.5rem;
}

.mf-tr-bar {
  width: 100%;
  height: 6px;
  background: var(--mf-border, #d8e4ec);
  border-radius: 3px;
  overflow: hidden;
}

.mf-tr-bar-inner {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--flutter-blue, #02569B), var(--telegram-blue, #0088CC));
  border-radius: 3px;
  animation: mf-tr-progress 2.5s ease-in-out infinite;
}

@keyframes mf-tr-progress {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(185%); }
  100% { transform: translateX(-100%); }
}

.mf-tr-bar-label {
  font-size: 0.78rem;
  color: #8a9aa3;
  margin: 0.3rem 0 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Suggested posts */

.mf-tr-posts {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.mf-tr-posts-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mf-text, #122025);
  text-align: center;
  margin-bottom: 1.25rem;
}

.mf-tr-post-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--mf-surface, #fff);
  border: 1px solid var(--mf-border, #d8e4ec);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.mf-tr-post-card:hover {
  border-color: var(--flutter-blue, #02569B);
  box-shadow: 0 4px 16px rgba(2, 86, 155, 0.08);
  color: inherit;
}

.mf-tr-post-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.mf-tr-post-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mf-tr-post-card-date {
  font-size: 0.75rem;
  color: #8a9aa3;
  margin-bottom: 0.25rem;
}

.mf-tr-post-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mf-text, #122025);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.mf-tr-post-card-excerpt {
  font-size: 0.85rem;
  color: #5a6a72;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA buttons */

.mf-tr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.mf-tr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.mf-tr-btn:hover {
  transform: translateY(-1px);
}

.mf-tr-btn svg {
  width: 18px;
  height: 18px;
}

.mf-tr-btn-primary {
  background: var(--flutter-blue, #02569B);
  color: #fff;
}

.mf-tr-btn-primary:hover {
  background: var(--telegram-blue, #0088CC);
  color: #fff;
}

.mf-tr-btn-outline {
  background: transparent;
  color: var(--flutter-blue, #02569B);
  border: 2px solid var(--flutter-blue, #02569B);
}

.mf-tr-btn-outline:hover {
  background: var(--flutter-blue, #02569B);
  color: #fff;
}

.mf-tr-btn-telegram {
  background: var(--telegram-blue, #0088CC);
  color: #fff;
}

.mf-tr-btn-telegram:hover {
  background: #006fa3;
  color: #fff;
}

/* Social / divider */

.mf-tr-divider {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  border: 0;
  border-top: 1px solid var(--mf-border, #d8e4ec);
}

.mf-tr-social-label {
  font-size: 0.85rem;
  color: #8a9aa3;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 576px) {
  .mf-tr-title { font-size: 1.5rem; }
  .mf-tr-message { font-size: 0.95rem; }
  .mf-tr-icon { width: 80px; height: 80px; }
  .mf-tr-icon svg { width: 38px; height: 38px; }
  .mf-tr-post-card img { width: 60px; height: 60px; }
  .mf-tr-btn { padding: 0.6rem 1.25rem; font-size: 0.88rem; }
}

/* ── Comments ── */

.mf-comments {
  font-size: 0.95rem;
}

.mf-comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mf-text, #122025);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mf-border, #d8e4ec);
}

.mf-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mf-comment-list .mf-comment-list {
  padding-left: 2rem;
  border-left: 2px solid var(--mf-border, #d8e4ec);
  margin-top: 1rem;
}

.mf-comment {
  margin-bottom: 1.5rem;
}

.mf-comment-body {
  padding: 1rem;
  border: 1px solid var(--mf-border, #d8e4ec);
  border-radius: 10px;
  background: var(--mf-surface-muted, #f5f9fc);
  transition: border-color 0.2s;
}

.mf-comment-body:hover {
  border-color: var(--flutter-blue, #02569B);
}

.mf-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mf-comment-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.mf-comment-meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mf-comment-author {
  font-weight: 700;
  color: var(--mf-text, #122025);
  font-size: 0.9rem;
}

.mf-comment-author a {
  color: var(--flutter-blue, #02569B);
  text-decoration: none;
}

.mf-comment-author a:hover {
  text-decoration: underline;
}

.mf-comment-date {
  font-size: 0.78rem;
  color: #8a9aa3;
}

.mf-comment-awaiting {
  padding: 0.5rem 0.75rem;
  background: #fff3cd;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #856404;
  margin-bottom: 0.75rem;
}

.mf-comment-content p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.mf-comment-content p:last-child {
  margin-bottom: 0;
}

.mf-comment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.mf-comment-reply a,
.mf-comment-edit a {
  color: var(--flutter-blue, #02569B);
  text-decoration: none;
  font-weight: 600;
}

.mf-comment-reply a:hover,
.mf-comment-edit a:hover {
  text-decoration: underline;
}

.mf-comments-closed {
  padding: 1rem;
  text-align: center;
  color: #8a9aa3;
  font-style: italic;
  font-size: 0.9rem;
}

/* Comment form */

.mf-comment-respond {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mf-border, #d8e4ec);
}

.mf-comment-respond .comment-reply-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mf-text, #122025);
  margin: 0 0 0.25rem;
}

.mf-comment-respond .comment-reply-title small a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--flutter-blue, #02569B);
  margin-left: 0.5rem;
}

.mf-comment-notes {
  margin-bottom: 1rem;
}

.mf-comment-notes .required {
  color: #c0392b;
}

.mf-comment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--mf-text, #122025);
  margin-bottom: 0.3rem;
}

.mf-comment-form input[type="text"],
.mf-comment-form input[type="email"],
.mf-comment-form input[type="url"],
.mf-comment-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--mf-border, #d8e4ec);
  border-radius: 8px;
  background: var(--mf-surface, #fff);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--mf-text, #122025);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mf-comment-form input:focus,
.mf-comment-form textarea:focus {
  outline: none;
  border-color: var(--flutter-blue, #02569B);
  box-shadow: 0 0 0 3px rgba(2, 86, 155, 0.1);
}

.mf-comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.mf-comment-form .comment-form-comment,
.mf-comment-form .comment-form-author,
.mf-comment-form .comment-form-email,
.mf-comment-form .comment-form-url,
.mf-comment-form .comment-form-cookies-consent {
  margin-bottom: 1rem;
}

.mf-comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mf-comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: auto;
  accent-color: var(--flutter-blue, #02569B);
}

.mf-comment-form .comment-form-cookies-consent label {
  display: inline;
  font-weight: 400;
  font-size: 0.85rem;
  color: #5a6a72;
  margin-bottom: 0;
}

.mf-comment-submit {
  margin-top: 0.25rem;
}

/* Comments navigation */

.comments-area .nav-links {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.comments-area .nav-links a {
  color: var(--flutter-blue, #02569B);
  text-decoration: none;
  font-weight: 600;
}

.comments-area .nav-links a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .mf-comment-list .mf-comment-list {
    padding-left: 1rem;
  }
  .mf-comment-body {
    padding: 0.75rem;
  }
  .mf-comment-avatar {
    width: 36px !important;
    height: 36px !important;
  }
}