.modal-fav-match {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(8, 8, 8, 0.78); /* Dimmed backdrop */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content-fav-match {
    position: relative; /* Relative position for close button alignment */
    margin: 16vh auto; /* centered, near the top */
    width: 400px;
    max-width: calc(100% - 32px);
    padding: 42px 34px 34px;
    background: linear-gradient(160deg, #262626 0%, #161616 100%);
    border: 1px solid #353535;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    text-align: center; /* Center content within the modal */
    overflow: hidden;
    animation: modalPopFavMatch 0.35s ease;
}

/* gold accent strip along the top edge */
.modal-content-fav-match::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbb03c, #ffd27f);
}

@keyframes modalPopFavMatch {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

/* circular gold icon badge */
.modal-icon-fav-match {
    width: 60px;
    height: 60px;
    margin: 4px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(251, 176, 60, 0.14);
    border: 1px solid rgba(251, 176, 60, 0.4);
}

.modal-icon-fav-match:empty { display: none; }

.modal-icon-fav-match i {
    font-size: 26px;
    color: #fbb03c;
}

.modal-content-fav-match h2 {
    font-size: 1.7rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
}

.modal-content-fav-match p {
    margin: 0 auto !important;
    max-width: 300px;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #c2c2c2 !important;
}

.modal-content-fav-match p strong,
.modal-content-fav-match p a {
    color: #fbb03c !important;
}

.close-fav-match {
    color: #8a8a8a;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    top: 14px;
    right: 18px;
    transition: color 0.2s;
    cursor: pointer;
}

.close-fav-match:hover,
.close-fav-match:focus {
    color: #ffffff;
    text-decoration: none;
}

.modal-header-fav-match h2 {
    color: #ffffff;
    margin: 0;
}

.modal-body-fav-match {
    margin-top: 15px;
    color: #c2c2c2;
}

.modal-button-fav-match {
    background: #fbb03c;
    color: #1a1a1a;
    font-weight: 700;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s ease, transform 0.15s ease;
    margin-top: 24px;
}

.modal-button-fav-match:hover {
    background: #ffc05f;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   Screenshot teaser inside the notification popup.

   Hidden by default so the plain popups (e.g. "Unable to Delete Account") keep
   their compact 400px box. general-v1.0.9.js adds .has-teaser to the overlay for
   the "Login Required" and "Upgrade Required" variants, which widens the modal
   and reveals the gallery.
   --------------------------------------------------------------------------- */
.modal-teaser-fav-match { display: none; }

.modal-fav-match.has-teaser .modal-content-fav-match {
    width: 900px;
    margin: 8vh auto;
}

/* the copy line is capped at 300px in the narrow popup - give it room here */
.modal-fav-match.has-teaser .modal-content-fav-match p {
    max-width: 480px;
}

.modal-fav-match.has-teaser .modal-teaser-fav-match {
    display: block;
    margin-top: 26px;
}

.mt-gallery {
    display: grid;
    /* minmax(0, 1fr), never plain 1fr: 1fr means minmax(auto, 1fr), and the auto minimum
       resolves to the images' min-content width, which blows the modal past the viewport. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}

.mt-fig {
    margin: 0;
    min-width: 0;
    background: #1a1a1d;
    border: 1px solid #303030;
    border-radius: 12px;
    overflow: hidden;
}

.mt-shot {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: zoom-in;
}

.mt-shot img { transition: transform 0.3s ease; }
.mt-shot:hover img { transform: scale(1.04); }

.mt-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* fade the cut-off edge so it reads as "there is more behind this" */
.mt-shot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(26, 26, 29, 0), #1a1a1d);
    pointer-events: none;
}

.mt-fig figcaption {
    padding: 10px 12px;
    border-top: 1px solid #303030;
    font-size: 12.5px;
    line-height: 1.4;
    color: #bdbdbd;
}

.mt-fig figcaption i {
    color: #fbb03c;
    margin-right: 6px;
}

.mt-note {
    display: block;
    margin-top: 14px;
    font-size: 11.5px;
    font-style: italic;
    color: #7f7f83;
}

@media (max-width: 820px) {
    .modal-fav-match.has-teaser .modal-content-fav-match {
        margin: 5vh auto;
        padding: 38px 18px 28px;
    }
    .mt-gallery { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mt-shot { height: 150px; }
    .mt-shot::after { height: 48px; }
}

@media (max-width: 768px) { /* only applies to screens with width <= 768px */

  .dekstop {
      display: 'none';
  }
  .mobile {
      display: '';

  }

}

/* ---------------------------------------------------------------------------
   Click-to-enlarge lightbox for the teaser screenshots.

   Shared by the popup gallery (.mt-shot) and the pricing-page teaser (.pt-shot);
   this stylesheet is loaded on every page that includes partials/header.html.
   Sits above the notification popup, which is z-index 1001.
   --------------------------------------------------------------------------- */
.tz-lightbox {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 40px 20px;
    background-color: rgba(6, 6, 6, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.tz-lightbox.tz-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tz-lightbox img {
    display: block;
    width: auto;
    max-width: min(1100px, 100%);
    height: auto;
    margin: auto;
    border: 1px solid #303030;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    animation: modalPopFavMatch 0.25s ease;
}

.tz-lightbox-close {
    position: fixed;
    top: 12px;
    right: 22px;
    color: #b9b9b9;
    font-size: 34px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.tz-lightbox-close:hover { color: #ffffff; }

/* hint that the screenshots open bigger */
.tz-zoom-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.78);
    color: #e2e2e2;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.mt-shot:hover .tz-zoom-hint,
.pt-shot:hover .tz-zoom-hint { opacity: 1; }

.tz-zoom-hint i { color: #fbb03c; }

@media (max-width: 820px) {
    .tz-lightbox { padding: 24px 12px; }
    /* touch devices get no hover, so keep the hint visible */
    .mt-shot .tz-zoom-hint,
    .pt-shot .tz-zoom-hint { opacity: 1; }
}
