
    .hor-header.header .header-brand-img {
        margin-top: 0 !important;
        margin-right: 0 !important;
    }
    
    .mt-2.mb-2 {
        margin-left: 10px;
    }
    
    .img-logo-login {
        width: 100%;
        height: 100%;
        padding-right: 15px;
    }
    
    .page {
        min-height: auto !important;
    }
    
    .page>.container {
        margin-top: 30px;
    }
    
    div#next-rank {
        margin-top: -40px;
        margin-bottom: -40px;
    }
    
    .notifyimg.bg-secondary.mt-1.profile {
        margin-right: 0px !important;
    }
    
    .notifyimg.bg-warning.mt-1.profile {
        margin-right: 0px !important;
    }
    
    span.text-muted.airmail {
        font-size: 12px;
    }
    
    .btn-primary {
        background: #2C5DB4 !important;
    }
    
    .btn-primary:hover {
        background: #4a70b1 !important;
    }
    
    .bg-header-image {
        background: #2C5DB4 !important;
    }
    
    .tooltip1 {
        position: relative;
        display: inline-block;
        border-bottom: 0 dotted black;
        opacity: 1;
        z-index: 0;
    }
    
    .tooltip1 .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -60px;
        transition: opacity 0.3s;
    }
    
    .tooltip1 .tooltiptext::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #555 transparent transparent transparent;
    }
    
    .tooltip1:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
    
    .tab-content .tooltip1 {
        padding: 5px;
    }
    
    .chat {
        list-style: none;
        margin: 0;
        padding: 20px;
    }
    
    .chat li {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .chat li.left .chat-body {
        margin-left: 60px;
    }
    
    .chat li.right .chat-body {
        margin-right: 60px;
    }
    
    .chat li .chat-body p {
        margin: 0;
        color: #777777;
    }
    
    .panel .slidedown .glyphicon,
    .chat .glyphicon {
        margin-right: 5px;
    }
    
    .panel-body {
        overflow-y: scroll;
        height: 250px;
    }
    
    .panel-body-log {
        overflow-y: scroll;
        max-height: 539px;
    }
    
     ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        background-color: #F5F5F5;
    }
    
     ::-webkit-scrollbar {
        width: 12px;
        background-color: #F5F5F5;
    }
    
     ::-webkit-scrollbar-thumb {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        background-color: #555;
    }
    
    img.img-circle {
        width: 100%;
    }
    
    span.chat-img.pull-left {
        width: 6%;
    }
    
    span.chat-img.pull-right {
        width: 6%;
    }
    
    hr {
        margin: 10px 0;
    }
    
    .bloccato {
        opacity: 0.3;
        cursor: no-drop;
    }
    
    .task-fatti {
        color: #000;
        text-align: center;
        /*font-weight: bold;*/
    }
    
    .pre-scrollable1 {
        max-height: 600px;
        overflow-y: scroll;
        height: 600px;
    }
    
    a.text-decoration-underline {
        text-decoration: underline;
    }
    
    .bg-youtube {
        background: #FF0000 !important;
    }
    
    .bg-instagram {
        background: #fe024f !important;
    }
    
    .tooltip1-home {
        position: unset;
        display: inline-block;
        border-bottom: 0 dotted black;
        opacity: 1;
        z-index: 0;
    }
    
    .tooltip1-home .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 5px;
        position: relative;
        z-index: 1;
        top: -31px;
        left: -37%;
        margin-left: -80px;
        transition: opacity 0.3s;
    }
    
    .tooltip1-home .tooltiptext::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #555 transparent transparent transparent;
    }
    
    .tooltip1-home:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
    
    body.dark-mode span {
        color: #e7e7f7 !important;
    }
    
    .dark-mode p {
        color: #e7e7f7 !important;
    }
    
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>a,
    .dark-mode .mega-menubg li a,
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a {
        color: #e7e7f7 !important;
    }
    
    .dark-mode .panel-body1 {
        background: unset;
    }
    
    .dark-mode .apexcharts-tooltip.light {
        background: rgb(10 10 10 / 96%);
    }
    
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>a:hover {
        color: #9ea0a7 !important;
    }
    
    .dark-mode .horizontalMenu>.horizontalMenu-list>li {
        text-align: center;
        display: block;
        padding: 0;
        float: left;
        color: #9ea0a7;
        clear: both;
    }
    
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>a.active {
        color: #9ea0a7 !important;
        text-decoration: none;
        font-weight: 500;
    }
    
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>a.active,
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a:hover {
        color: #9ea0a7 !important;
    }
    
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>a:hover,
    .dark-mode .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a:hover {
        color: #9ea0a7 !important;
    }
    
    .dark-mode .dataTables_wrapper .dataTables_length,
    .dark-mode .dataTables_wrapper .dataTables_filter,
    .dark-mode .dataTables_wrapper .dataTables_info,
    .dark-mode .dataTables_wrapper .dataTables_processing,
    .dark-mode .dataTables_wrapper .dataTables_paginate {
        color: #e7e7f7 !important;
    }
    
    .dark-mode .card-footer {
        color: #e7e7f7 !important;
    }
    
    .ribbon.ribbon-top-left.text-danger span {
        font-weight: bold;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
    
    .ribbon.ribbon-top-left.text-success span {
        font-weight: bold;
        letter-spacing: 3px;
        text-transform: uppercase;
    }
    
    .ribbon.ribbon-top-left.text-warning span {
        font-weight: bold;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-shadow: 1px 1px 1px black;
    }
    
    .dark-mode .no_thumbnail {
        background-color: unset;
    }
    
    .dark-mode .popover-body {
        color: #e7e7f7 !important;
        background: #1c1e3e;
    }
    
    .dark-mode .tabs-menu1 ul li .active {
        border-bottom: 3px solid #e7e7f7;
        border-radius: 2px;
        color: #425bd6;
    }
    
    span.badge.badge-warning.fs-16 {
        text-shadow: 1px 1px 1px black;
    }
    
    .dark-mode table.dataTable.stripe tbody tr.odd,
    .dark-mode table.dataTable.display tbody tr.odd {
        background-color: #4f4f4f;
    }
    
    .dark-mode table.dataTable.hover tbody tr:hover,
    .dark-mode table.dataTable.display tbody tr:hover {
        background-color: #87878c !important;
    }
    
    .dark-mode table#employee_grid input {
        color: #000;
    }
    
    .dark-mode table#lista-pirep-all input {
        color: #000;
    }
    
    .horizontalMenu>.horizontalMenu-list>li>a {
        color: #e7e7f7 !important;
    }
    
    .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>a:hover,
    .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a:hover {
        color: #9ea0a7 !important;
    }
    
    .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>a:hover,
    .horizontalMenu>.horizontalMenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a:hover {
        text-decoration: none;
        color: #818080 !important;
    }
    
    ul.binaco.horizontalMenu-list>li>a.active {
        color: #9ea0a7 !important;
    }
    
    ul.binaco.horizontalMenu-list>li>a:hover {
        color: #9ea0a7 !important;
    }
    
    .horizontal-main.hor-menu {
        background: #2C5DB4 !important;
    }
    
    ul.binaco.horizontalMenu-list>li>ul.sub-menu>li>a:hover {
        color: #929191 !important;
    }
    
    .dark-mode .header .drop-notify .dropdown-item:hover {
        background-color: #3a3a3a !important;
    }
    
    .dark-mode .dropdown-menu a:hover {
        background: rgba(239, 241, 245, 0.1) !important;
    }
    
    .dark-mode .c3-legend-item {
        fill: #fff;
    }
    
    .dark-mode div#chart-area-spline-sracked>svg {
        fill: #fff;
    }
    
    .dark-mode g.c3-axis.c3-axis-y g,
    .dark-mode g.c3-axis.c3-axis-y text {
        fill: #fff;
    }
    
    .dark-mode g.c3-axis.c3-axis-y2 g,
    .dark-mode g.c3-axis.c3-axis-y2 text {
        fill: #fff;
    }
    
    .dark-mode g.c3-axis.c3-axis-x g,
    .dark-mode g.c3-axis.c3-axis-x text {
        fill: #fff;
    }
    
    .dark-mode table.c3-tooltip td {
        color: #000 !important;
    }
    
    .card {
        padding-top: 20px;
    }
    
    .dark-mode g#SvgjsG1014 text {
        fill: #fff;
    }
    
    .dark-mode a.btn.ripple.btn-outline-success.btn-pill.btn-login,
    .dark-mode a.btn.ripple.btn-outline-success.btn-pill.btn-reg {
        color: #fff !important;
        border-color: #fff !important;
    }
    
    a.btn.ripple.btn-outline-success.btn-pill.btn-login,
    a.btn.ripple.btn-outline-success.btn-pill.btn-reg {
        color: #2C5DB4 !important;
        border-color: #2C5DB4 !important;
    }
    
    a.btn.ripple.btn-outline-success.btn-pill.btn-login:hover,
    a.btn.ripple.btn-outline-success.btn-pill.btn-reg:hover {
        background-color: #2C5DB4 !important;
        color: #fff !important;
    }
    
    .dark-mode .form-control {
        border: 1px solid #b0b0b0 !important;
        ;
    }
    
    .dark-mode .custom-control-label:before {
        border: 1px solid #b0b0b0 !important;
    }
    
    .dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(1);
        margin: 0px;
        margin-right: 20px !important;
    }
    
    #loading img {
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        top: 0 !important;
        bottom: 0;
        margin: auto !important;
    }
    
    #loading p {
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        top: 63% !important;
        font-size: 30px;
        bottom: 0;
        margin: auto !important;
    }
    
    .dark-mode div#footer-text-col {
        color: #fff;
    }
    
    div#footer-text-col {
        color: #1f252d;
    }
    
    .dark-mode #lista-pirep-all_processing,
    .dark-mode #employee_grid_processing {
        background: #fff;
        padding: 8px;
        color: #000 !important;
    }
    
    div#lista-pirep-all_processing,
    div#employee_grid_processing {
        background: #000;
        padding: 8px;
        color: #fff !important;
    }
    
    img.loader-img {
        filter: contrast(0.5);
    }
    
    .dark-mode .animated-arrow {
        background: rgba(255, 255, 255, 0.8) !important;
    }
    
    .header {
        z-index: 130 !important;
    }
    
    .dark-mode .gm-style-iw.gm-style-iw-c {
        background: #000 !important;
        width: 330px !important;
    }
    
    .dark-mode .apexcharts-datalabels-group text {
        fill: #fff !important;
    }
    .ribbon-top-left {
        top: 0px !important;
        left: 0px !important;
    }
    .dark-mode button.gm-ui-hover-effect {
        filter: invert(1);
    }

    #chat-box {
        width: 100%;
        height: 400px;
        border: 1px solid #ccc;
        overflow-y: scroll;
        padding: 10px;
        background:#e6e6e6;
    }
    .dark-mode #chat-box {
        width: 100%;
        height: 400px;
        border: 1px solid #ccc;
        overflow-y: scroll;
        padding: 10px;
        background:#000 !important;
    }
    #chat-input {
        width: calc(100% - 60px);
    }
    #send-button {
        width: 50px;
    }
    #chat-input {
        width: calc(100% - 60px);
    }
    #send-button {
        width: 50px;
    }
    a.social-icon.discord img {
        filter: brightness(126%) contrast(53%) saturate(89%);
    }
    .dark-mode a.social-icon.discord img {
        filter: contrast(0%) brightness(2);
    }
    a.social-icon.discord img {
        margin-top: -8px;
    }
    .disp-desk {
        display: none;
    }
    .ribbon.ribbon-top-left.text-danger.home span {
        right: -9px;
        top: 24px;
        font-size: 12px;
    }
    @media only screen and (max-width: 768px) {
        .fc-dayGridMonth-button,
        .fc-dayGridWeek-button {
            display: none !important;
        }
        div#footer-text-col {
            text-align: center !important;
        }
        table.width-extra {
            width: 190% !important;
        }
        div#calendar1 {
            min-height: 600px !important;
        }
        .no-displ-mobi {
            display: none ;
        }
        .disp-desk {
            display: block;
        }

    }

    .sticky-pin {

        z-index: 999 !important;
    }

    /* Navigazione sempre visibile, senza dipendere dal vecchio script di scroll. */
    body.iv2026-shell .page-main {
        overflow: visible;
    }

    body.iv2026-shell .sticky,
    body.iv2026-shell .sticky.sticky-pin {
        position: sticky !important;
        top: 0 !important;
        z-index: 1100 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    body.iv2026-shell .sticky + .jumps-prevent {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
    }


/* ===========================
   PASSPORT THEME (Bootstrap 4.6)
   + EARNED STAMP: GREEN BORDER, RED SEAL (INK), GREEN STATUS
   + Curved "APPROVED" via SVG data-URI
   =========================== */

:root{
  --paper: #f6f0e6;
  --paper-2:#efe7db;
  --ink: #1e2a35;
  --muted:#6b7280;
  --edge:#d7cbb9;
  --bind:#e7dccb;

  --stamp-blue-soft: rgba(11,94,215,.25);

  /* EARNED border (verde) */
  --earned-border: rgba(16,185,129,.35);
  --earned-green: rgba(16,185,129,.95);
  --earned-green-soft: rgba(16,185,129,.14);

  /* ROSSO SOLO PER TIMBRO */
  --seal-red: rgba(220, 38, 38, .70);
  --seal-red-strong: rgba(220, 38, 38, .92);
  --seal-red-soft: rgba(220, 38, 38, .10);

  --stamp-grey: rgba(156,163,175,.35);
}

/* ===== Shell / Page ===== */
.passport-shell{
  background: linear-gradient(180deg, #fbf7f0 0%, #f3ece2 100%);
  border: 1px solid var(--edge);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.passport-topbar{
  padding: 18px 20px;
  background: linear-gradient(90deg, #2a2f36 0%, #1f2430 100%);
  color: #fff;
}
.passport-topbar small{ opacity:.8; }

.passport-page{
  position: relative;
  padding: 26px 22px 30px 22px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(30,42,53,.04) 0px,
      rgba(30,42,53,.04) 1px,
      transparent 1px,
      transparent 26px
    ),
    radial-gradient(circle at 70% 30%, rgba(30,42,53,.06), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* rilegatura */
.passport-page:before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 34px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    linear-gradient(180deg, var(--bind), #f1e7d8);
  border-right: 1px solid rgba(0,0,0,.06);
}

.passport-watermark{
  position:absolute;
  right: 18px;
  top: 18px;
  font-size: 84px;
  font-weight: 650;
  letter-spacing: -6px;
  color: rgba(30,42,53,.06);
  user-select:none;
  pointer-events:none;
}

.passport-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  padding-left: 40px;
  margin-bottom: 16px;
}
.passport-title{ margin:0; font-weight: 650; letter-spacing: .5px; }
.passport-sub{ color: var(--muted); margin-top: 2px; }

/* ===== Visa blocks ===== */
.visa-block{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.visa-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.visa-kpi{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 20px;
  letter-spacing: .5px;
}
.visa-label{ color: var(--muted); font-size: 13px; }
.visa-progress{
  height: 10px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(30,42,53,.10);
}
.visa-progress > div{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,94,215,.85), rgba(11,94,215,.55));
}

/* ===== Hub stickers ===== */
.hub-stickers .badge{
  padding: .5rem .55rem;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .6px;
  border: 1px dashed rgba(0,0,0,.15);
  background: rgba(11,94,215,.10);
  color: #0b5ed7;
}

/* ===== Grid ===== */
.passport-grid{ padding-left: 40px; }

/* ===========================
   STAMP CARD BASE
   =========================== */
.passport-stamp{
  position: relative;
  border-radius: 16px;
  padding: 14px 14px 12px 14px;

  background: rgba(255,255,255,.55);
  border: 2px solid var(--stamp-blue-soft);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  overflow:hidden;

  /* sigillo */
  --seal-size: 190px;
  --seal-off: -24px;
  --seal-rot: 12deg;

  /* rotazione random */
  --_rot: 0deg;

  transform: rotate(var(--_rot));
  transition: box-shadow .18s ease, transform .18s ease, filter .18s ease, opacity .18s ease;
}

/* overlay inchiostro (richiede <span class="stamp-ink">) */
.passport-stamp .stamp-ink{
  position:absolute;
  inset: 0;
  pointer-events:none;
  opacity: 0;
  z-index: 4;                 /* sopra ring+sfondo, sotto contenuti */
  mix-blend-mode: multiply;

  background:
    radial-gradient(circle at 78% 20%, rgba(220,38,38,.22), transparent 52%),
    radial-gradient(circle at 70% 32%, rgba(220,38,38,.14), transparent 58%),

    radial-gradient(circle at 18% 22%, rgba(220,38,38,.16) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(220,38,38,.11) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 30%, rgba(220,38,38,.15) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 74%, rgba(220,38,38,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 72%, rgba(220,38,38,.10) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 68%, rgba(220,38,38,.09) 0 1px, transparent 2px),

    repeating-linear-gradient(
      18deg,
      rgba(220,38,38,.05) 0px,
      rgba(220,38,38,.05) 1px,
      transparent 1px,
      transparent 7px
    ),
    repeating-linear-gradient(
      -12deg,
      rgba(220,38,38,.035) 0px,
      rgba(220,38,38,.035) 1px,
      transparent 1px,
      transparent 9px
    );

  filter: blur(.22px) contrast(1.12) saturate(1.15);
}

/* anello base (non-earned) */
.passport-stamp:before{
  content:"";
  position:absolute;
  top: var(--seal-off);
  right: var(--seal-off);
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 999px;

  border: 4px dashed rgba(11,94,215,.35);
  transform: rotate(var(--seal-rot));
  pointer-events:none;

  z-index: 2;
}

/* testo inclinato */
.stamp-mark{
  position:absolute;
  right: 12px;
  top: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: rgba(11,94,215,.85);
  transform: rotate(10deg);
  text-transform: uppercase;
  pointer-events:none;
  z-index: 7;
}

/* pill status */
.stamp-status{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.18);
  font-size: 12px;
  letter-spacing: .8px;
  font-weight: 650;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  z-index: 7;
  position: relative;
}
.stamp-status .dot{
  width:8px; height:8px;
  border-radius: 999px;
  background: rgba(11,94,215,.85);
}

.stamp-name{ margin: 10px 0 4px 0; font-weight: 650; position: relative; z-index: 7; }
.stamp-desc{ margin:0; color: var(--muted); font-size: 13px; position: relative; z-index: 7; }

.stamp-meta{
margin-top: 10px;
    display: grid;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    position: relative;
   
}
.stamp-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.45);
}

/* rules list */
.stamp-rules{
  margin-top: 10px;
  border-top: 1px dashed rgba(0,0,0,.15);
  padding-top: 10px;
  position: relative;
  z-index: 7;
}
.stamp-rules .title{ font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stamp-rules ul{ margin:0; padding-left: 16px; color: var(--muted); font-size: 12px; }

/* rotazioni “casuali” */
.passport-grid > .col-md-6:nth-child(3n+1) .passport-stamp{ --_rot: -1.6deg; }
.passport-grid > .col-md-6:nth-child(3n+2) .passport-stamp{ --_rot:  1.2deg; }
.passport-grid > .col-md-6:nth-child(3n+0) .passport-stamp{ --_rot: -0.4deg; }

.passport-stamp:hover{
  transform: rotate(var(--_rot)) translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

/* ===========================
   LOCKED
   =========================== */
.passport-stamp.is-locked{
  border-color: var(--stamp-grey);
  filter: grayscale(.25);
  opacity: .92;
}
.passport-stamp.is-locked:before{ border-color: rgba(156,163,175,.35); }
.passport-stamp.is-locked .stamp-mark{ color: rgba(156,163,175,.95); }
.passport-stamp.is-locked .stamp-status{ color: rgba(107,114,128,.95); }
.passport-stamp.is-locked .stamp-status .dot{ background: rgba(156,163,175,.95); }

/* ===========================
   EARNED (BORDER GREEN, SEAL RED)
   - stamp-status VERDE
   - :before NO background
   - ::after SOLO "APPROVED" arcuato + grande
   =========================== */
.passport-stamp.is-earned{
  border-width: 3px;
  border-color: var(--earned-border);

  /* bleed leggero (non cambia background) */
  box-shadow:
    0 12px 28px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 0 30px rgba(220,38,38,.08),
    inset 0 0 0 999px rgba(220,38,38,.006);
}

/* attiva overlay ink rosso */
.passport-stamp.is-earned .stamp-ink{ opacity: .42; }

/* ring esterno rosso (NO background) + doppio anello interno via box-shadow */
.passport-stamp.is-earned:before{
  border-width: 5px;
  border-color: var(--seal-red);
  opacity: .98;
  mix-blend-mode: multiply;
  z-index: 11111;
  box-shadow:
    0 0 0 2px rgba(220,38,38,.12),
    0 8px 18px rgba(0,0,0,.06),

    /* pressione/bleed */
    inset 0 0 16px rgba(220,38,38,.12),

    /* doppio anello interno (senza background) */
    inset 0 0 0 14px rgba(220,38,38,.10),
    inset 0 0 0 32px rgba(220,38,38,.06);

  filter: saturate(1.18) contrast(1.14) blur(.10px);
}

/* APPROVED arcuato (SVG) */
.passport-stamp.is-earned::after{
  content:"";
  position: absolute;
  top: var(--seal-off);
  right: var(--seal-off);
  width: var(--seal-size);
  height: var(--seal-size);

  border-radius: 999px;
  transform: rotate(var(--seal-rot));
  pointer-events: none;
  opacity: .98;
  mix-blend-mode: multiply;

  /* SVG con testo su arco (leggero) */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 92% 92%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3E%3Cdefs%3E%3Cpath%20id='a'%20d='M%2020%20125%20A%2080%2080%200%200%200%20180%20125'/%3E%3C/defs%3E%3Ctext%20fill='%23dc2626'%20fill-opacity='0.92'%20font-size='30'%20font-weight='900'%20font-family='Menlo,Monaco,Consolas,monospace'%20letter-spacing='5'%3E%3CtextPath%20href='%23a'%20startOffset='50%25'%20text-anchor='middle'%3EAPPROVED%3C/textPath%3E%3C/text%3E%3C/svg%3E");

  /* bleed leggero sul disegno */
  filter: blur(.12px);
  z-index: 11111;
}

/* scritta EARNED rossa (solo timbro) */
.passport-stamp.is-earned .stamp-mark{
  font-size: 13px;
  letter-spacing: 2.2px;
  color: var(--seal-red-strong);
  transform: rotate(10deg) translateY(-1px) scaleX(1.02);
  mix-blend-mode: multiply;
  opacity: .99;

  text-shadow:
    0 0 1px rgba(220,38,38,.30),
    0 1px 0 rgba(0,0,0,.06),
    -1px 0 rgba(220,38,38,.14);
  filter: blur(.06px);
}

/* stamp-status VERDE */
.passport-stamp.is-earned .stamp-status{
  color: var(--earned-green);
  border-color: rgba(16,185,129,.45);
  background: var(--earned-green-soft);
  box-shadow:
    inset 0 0 0 1px rgba(16,185,129,.16),
    0 1px 0 rgba(0,0,0,.04);
}
.passport-stamp.is-earned .stamp-status .dot{
  background: var(--earned-green);
}

/* hover: più inchiostro */
.passport-stamp.is-earned:hover{
  transform: rotate(var(--_rot)) translateY(-1px);
  box-shadow:
    0 14px 36px rgba(0,0,0,.12),
    0 0 0 7px rgba(220,38,38,.05),
    inset 0 0 36px rgba(220,38,38,.10),
    inset 0 0 0 999px rgba(220,38,38,.010);
}
.passport-stamp.is-earned:hover .stamp-ink{
  opacity: .54;
  filter: blur(.26px) contrast(1.16) saturate(1.20);
}

/* modal chips */
.modal .badge.badge-info{
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(11,94,215,.10);
  color: #0b5ed7;
}

/* mobile */
@media (max-width: 576px){
  .passport-page{ padding: 18px 14px 20px 14px; }
  .passport-page:before{ width: 26px; }
  .passport-head, .passport-grid{ padding-left: 32px; }
  .passport-watermark{ font-size: 64px; }

  .passport-stamp{ --seal-size: 170px; --seal-off: -22px; }
}

/* ============================
   Flight Passport Modal - Vintage
   ============================ */

.fp-modal.fp-vintage .modal-content{
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
}

/* Header: dark ink + subtle texture */
.fp-modal.fp-vintage .modal-header{
  border: 0;
  padding: 16px 18px;
  color: #fff;
  background:
    radial-gradient(1200px 260px at 20% 0%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(135deg, #0b1f33, #163a52);
  position: relative;
}

.fp-modal.fp-vintage .modal-header:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08), rgba(255,255,255,.08) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
}

.fp-modal.fp-vintage .fp-vintage-header{ position: relative; z-index: 1; }
.fp-modal.fp-vintage .fp-vintage-kicker{
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .85;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.fp-modal.fp-vintage .modal-title{
  font-weight: 700;
  letter-spacing: .6px;
  margin: 0;
}
.fp-modal.fp-vintage .fp-vintage-sub{
  margin-top: 3px;
  opacity: .88;
}

.fp-modal.fp-vintage .fp-close{
  position: relative;
  z-index: 2;
  color: #fff;
  opacity: .9;
  text-shadow: none;
}
.fp-modal.fp-vintage .fp-close:hover{ opacity: 1; }

/* Body: vintage paper */
.fp-modal.fp-vintage .modal-body{
  padding: 16px 18px 14px 18px;
  background: #f4f1ea;
}

/* tools row */
.fp-modal.fp-vintage .fp-modal-tools{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fp-modal.fp-vintage .fp-search{
  flex: 1;
  min-width: 260px;
}

.fp-modal.fp-vintage .input-group-text{
  background: #fff7;
  border-color: rgba(0,0,0,.10);
}

.fp-modal.fp-vintage .form-control{
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.90);
}

.fp-modal.fp-vintage .form-control:focus{
  box-shadow: 0 0 0 .2rem rgba(30, 90, 140, .18);
  border-color: rgba(30, 90, 140, .35);
}

/* paper card inside */
.fp-modal.fp-vintage .fp-vintage-paper{
  background:
    radial-gradient(800px 220px at 15% 0%, rgba(0,0,0,.05), transparent 60%),
    linear-gradient(0deg, rgba(255,255,255,.65), rgba(255,255,255,.65)),
    #efe6d3;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* chips */
.fp-modal.fp-vintage .fp-icao-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.fp-modal.fp-vintage .fp-icao-chip{
  border: 1px solid rgba(50,40,20,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.45));
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

.fp-modal.fp-vintage .fp-icao-chip .mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .5px;
  color: #1a2a34;
}

.fp-modal.fp-vintage .fp-icao-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(30, 90, 140, .35);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

.fp-modal.fp-vintage .fp-icao-chip.is-copied{
  border-color: rgba(30, 90, 140, .55);
  box-shadow: 0 0 0 3px rgba(30, 90, 140, .12);
}

/* hint */
.fp-modal.fp-vintage .fp-modal-hint{
  margin-top: 10px;
  font-size: 12px;
  opacity: .78;
}

/* footer: vintage stamp line */
.fp-modal.fp-vintage .modal-footer{
  border: 0;
  background: #f4f1ea;
  padding: 10px 18px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fp-modal.fp-vintage .fp-vintage-footer-left{
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .8;
}

.fp-modal.fp-vintage .fp-stamp-mark{
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.fp-modal.fp-vintage .fp-dot{ opacity: .7; }

/* ============================
   Vintage Deluxe decorations
   ============================ */

.fp-modal.fp-vintage .fp-vintage-paper.fp-vintage-deluxe{
  position: relative;
  overflow: hidden;
  padding: 16px 14px 44px 14px; /* spazio sotto per il seal */
}

/* “paper grain” + edge shading */
.fp-modal.fp-vintage .fp-vintage-paper.fp-vintage-deluxe:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.05), rgba(0,0,0,.05) 1px, transparent 1px, transparent 5px),
    radial-gradient(800px 260px at 80% 0%, rgba(0,0,0,.08), transparent 60%),
    radial-gradient(900px 320px at 10% 100%, rgba(0,0,0,.06), transparent 62%);
  mix-blend-mode: multiply;
}

/* perforated edge (top) */
.fp-modal.fp-vintage .fp-paper-perf{
  position:absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 10px;
  pointer-events:none;
  opacity:.65;
  background:
    radial-gradient(circle, rgba(0,0,0,.22) 2px, transparent 2.2px) 0 0/14px 10px repeat-x;
}

/* stitched border */
.fp-modal.fp-vintage .fp-vintage-paper.fp-vintage-deluxe{
  border-radius: 14px;
}
.fp-modal.fp-vintage .fp-vintage-paper.fp-vintage-deluxe{
  box-shadow:
    inset 0 0 0 1px rgba(50,40,20,.12),
    inset 0 0 0 6px rgba(255,255,255,.12);
}
.fp-modal.fp-vintage .fp-vintage-paper.fp-vintage-deluxe{
  outline: 1px dashed rgba(40,30,15,.25);
  outline-offset: -10px;
}

/* watermark */
.fp-modal.fp-vintage .fp-paper-watermark{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  letter-spacing: 10px;
  font-size: 120px;
  color: rgba(20,30,35,.07);
  transform: rotate(-12deg);
  pointer-events:none;
  user-select:none;
}

/* keep content above decorations */
.fp-modal.fp-vintage .fp-icao-grid,
.fp-modal.fp-vintage .fp-modal-hint{
  position: relative;
  z-index: 2;
}

/* wax seal */
.fp-modal.fp-vintage .fp-paper-seal{
  position:absolute;
  right: 14px;
  bottom: 12px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 40%),
    radial-gradient(circle at 70% 75%, rgba(0,0,0,.18), transparent 45%),
    linear-gradient(135deg, rgba(130,25,25,1), rgba(90,15,15,1));
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
  display:none;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index: 3;
}

.fp-modal.fp-vintage .fp-paper-seal span{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px dashed rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.10);
}

/* optional: make chips feel more “ink stamped” */
.fp-modal.fp-vintage .fp-icao-chip{
  position: relative;
}
.fp-modal.fp-vintage .fp-icao-chip:after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 999px;
  pointer-events:none;
  opacity:.12;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,.22), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.18), transparent 55%);
  mix-blend-mode: multiply;
}
/* Document-style footer */
.fp-modal.fp-vintage .modal-footer.fp-doc-footer{
  border: 0;
  background: #f4f1ea;
  padding: 12px 18px 16px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.fp-modal.fp-vintage .fp-doc-row{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.fp-modal.fp-vintage .fp-doc-col{
  min-width: 200px;
}

.fp-modal.fp-vintage .fp-doc-label{
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .75;
}

.fp-modal.fp-vintage .fp-doc-value{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #1a2a34;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(0,0,0,.25);
  display: inline-block;
}

/* Leaderboard styling */
.fp-lb-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.fp-lb-search{ min-width: 240px; }

.fp-avatar{
  width: 34px; height: 34px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .5px;
}
.fp-avatar-lg{ width: 46px; height: 46px; font-size: 14px; }

.fp-rank{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 650;
}

.fp-podium{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.00));
}
.fp-podium-rank{
  font-weight: 700;
  letter-spacing: .6px;
  opacity: .85;
  margin-bottom: 8px;
}
.fp-podium-name{ font-weight: 650; margin-top: 6px; }
.fp-podium-kpi{ margin-top: 8px; }
.fp-podium-actions{ margin-top: 10px; display:flex; gap:8px; flex-wrap:wrap; }

/* Leaderboard styling */
.fp-note{ opacity:.75; margin-left:6px; }

.fp-lb-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.fp-lb-search{ min-width: 240px; }

.fp-avatar{
  width: 34px; height: 34px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .5px;
}
.fp-avatar-lg{ width: 46px; height: 46px; font-size: 14px; }

.fp-rank{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 650;
}

.fp-podium{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.00));
}
.fp-podium.is-me{
  border-color: rgba(13,110,253,.35);
  box-shadow: 0 12px 30px rgba(13,110,253,.10);
}
.fp-podium-rank{
  font-weight: 700;
  letter-spacing: .6px;
  opacity: .85;
  margin-bottom: 8px;
}
.fp-podium-name{ font-weight: 650; margin-top: 6px; }
.fp-podium-kpi{ margin-top: 8px; }
.fp-podium-actions{ margin-top: 10px; display:flex; gap:8px; flex-wrap:wrap; }

.fp-row-me{
  background: rgba(13,110,253,.05);
}
.fp-me-tag{
  display:inline-block;
  margin-left:8px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: .7;
}

.fp-public-head{ border-radius: 14px; }
.fp-avatar-lg{
  width: 48px; height: 48px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .6px;
}
.fp-avatar-lg{
  width: 48px; height: 48px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .6px;
}

/* ===== Leaderboard: polish / passport look ===== */

.fp-lb-card{
  border-radius: 16px;
  overflow: hidden;
}

.fp-lb-header{
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.fp-note{ opacity:.75; margin-left:6px; }

/* Avatars */
.fp-avatar{
  width: 34px; height: 34px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
  letter-spacing: .6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.fp-avatar-lg{ width: 52px; height: 52px; font-size: 14px; }

/* Podium card */
.fp-podium{
  position: relative;
  border-radius: 18px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(1200px 180px at 20% -20%, rgba(0,0,0,.06), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
  backdrop-filter: blur(2px);
}

.fp-podium::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  pointer-events:none;
  background-image: linear-gradient(135deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 35%);
  opacity:.5;
}

.fp-podium.is-me{
  box-shadow: 0 16px 38px rgba(13,110,253,.14);
  border-color: rgba(13,110,253,.35);
}

/* rank badge */
.fp-podium-badge{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 34px; height: 34px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.70);
  z-index: 2;
}
.fp-podium-r{
  font-weight: 700;
  letter-spacing: .5px;
}

/* Differentiate 1/2/3 */
.fp-podium.fp-rank-1{ transform: translateY(-2px); }
.fp-podium.fp-rank-2{ opacity: .98; }
.fp-podium.fp-rank-3{ opacity: .96; }

.fp-podium-name{
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

.fp-podium-kpi{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* chips */
.fp-chip{
  display:inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
}
.fp-chip-sub{ opacity: .85; }
.fp-chip-label{
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 650;
}
.fp-chip-val{
  font-weight: 700;
  letter-spacing: .3px;
}

.fp-podium-actions{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Table */
.fp-lb-table thead th{
  border-top: 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
}

.fp-rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  font-weight: 700;
  letter-spacing: .4px;
}

.fp-row-me{
  background: rgba(13,110,253,.06);
}

.fp-me-tag{
  display:inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
  opacity: .85;
}

/* Search */
.fp-lb-search input{
  border-radius: 999px;
  padding-left: 12px;
}
/* ===== Leaderboard: polish / passport look ===== */

.fp-lb-card{
  border-radius: 16px;
  overflow: hidden;
}

.fp-lb-header{
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.fp-note{ opacity:.75; margin-left:6px; }

/* Avatars */
.fp-avatar{
  width: 34px; height: 34px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
  letter-spacing: .6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.fp-avatar-lg{ width: 52px; height: 52px; font-size: 14px; }

/* Podium card */
.fp-podium{
  position: relative;
  border-radius: 18px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(1200px 180px at 20% -20%, rgba(0,0,0,.06), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
}

.fp-podium::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  pointer-events:none;
  background-image: linear-gradient(135deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 35%);
  opacity:.5;
}

.fp-podium.is-me{
  box-shadow: 0 16px 38px rgba(13,110,253,.14);
  border-color: rgba(13,110,253,.35);
}

/* rank badge */
.fp-podium-badge{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 34px; height: 34px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.70);
  z-index: 2;
}
.fp-podium-r{
  font-weight: 700;
  letter-spacing: .5px;
}

.fp-podium-name{
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

.fp-podium-kpi{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* chips */
.fp-chip{
  display:inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
}
.fp-chip-sub{ opacity: .85; }
.fp-chip-label{
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 650;
}
.fp-chip-val{
  font-weight: 700;
  letter-spacing: .3px;
}

.fp-podium-actions{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== Podio a gradini (solo desktop/md+) ===== */
@media (min-width: 768px){
  .fp-podium-row{ align-items: flex-end; }

  /* riordina: 2 a sinistra, 1 al centro, 3 a destra */
  .fp-podium-col.fp-rank-1{ order: 2; }
  .fp-podium-col.fp-rank-2{ order: 1; }
  .fp-podium-col.fp-rank-3{ order: 3; }

  /* altezze/gradini */
  .fp-podium.fp-rank-1{
    transform: translateY(-16px);
    z-index: 3;
  }
  .fp-podium.fp-rank-2{
    transform: translateY(0px);
    z-index: 2;
  }
  .fp-podium.fp-rank-3{
    transform: translateY(10px);
    z-index: 1;
  }
}

/* ===== Mini progress bar nel podio ===== */
.fp-mini-bar{
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.fp-mini-bar-fill{
  height: 100%;
  border-radius: 999px;
  background: rgba(13,110,253,.45);
}

/* Table */
.fp-lb-table thead th{
  border-top: 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
}

.fp-rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  font-weight: 700;
  letter-spacing: .4px;
}

.fp-row-me{
  background: rgba(13,110,253,.06);
}

.fp-me-tag{
  display:inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
  opacity: .85;
}

/* Search */
.fp-lb-search input{
  border-radius: 999px;
  padding-left: 12px;
}

/* ===== Rank badge -> INK STAMP (RED) with dashed border ===== */

.fp-podium-badge{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 42px;
  height: 42px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* dashed ring */
  border: 2px dashed rgba(220, 53, 69, .78);

  /* inner thin ring (gives “rubber stamp” feel) */
  outline: 1px solid rgba(220, 53, 69, .22);
  outline-offset: -6px;

  background: rgba(220, 53, 69, .12);

  box-shadow:
    0 10px 22px rgba(0,0,0,.10),
    inset 0 0 0 3px rgba(255,255,255,.55);

  transform: rotate(-10deg);
  z-index: 3;
  overflow: hidden;
}

/* ink speckles + paper fibers */
.fp-podium-badge::before{
  content:"";
  position:absolute;
  inset: -18%;
  border-radius: 999px;

  background:
    radial-gradient(circle at 20% 30%, rgba(220,53,69,.22) 0 18%, rgba(220,53,69,0) 19%),
    radial-gradient(circle at 70% 65%, rgba(220,53,69,.20) 0 16%, rgba(220,53,69,0) 17%),
    radial-gradient(circle at 35% 80%, rgba(220,53,69,.16) 0 14%, rgba(220,53,69,0) 15%),
    radial-gradient(circle at 80% 25%, rgba(220,53,69,.14) 0 14%, rgba(220,53,69,0) 15%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.40) 0 22%, rgba(255,255,255,0) 55%);

  opacity: .88;
  transform: rotate(18deg);
}

/* worn outer edge (keep subtle so dashed border stays visible) */
.fp-podium-badge::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  pointer-events:none;

  background:
    radial-gradient(circle, rgba(220,53,69,.12) 0 46%, rgba(220,53,69,0) 47%),
    repeating-conic-gradient(from 0deg,
      rgba(220,53,69,.10) 0 10deg,
      rgba(220,53,69,0) 10deg 22deg);

  filter: blur(.35px);
  opacity: .45;
}

.fp-podium-r{
  position: relative;
  z-index: 4;
  font-weight: 1000;
  font-size: 16px;
  line-height: 1;
  color: rgba(220, 53, 69, .95);
  letter-spacing: .5px;
  text-shadow:
    0 1px 0 rgba(255,255,255,.35),
    0 0 1px rgba(220,53,69,.35);
}

/* different tilt per rank */
.fp-podium.fp-rank-1 .fp-podium-badge{ transform: rotate(-14deg) scale(1.06); }
.fp-podium.fp-rank-2 .fp-podium-badge{ transform: rotate(-7deg); opacity:.95; }
.fp-podium.fp-rank-3 .fp-podium-badge{ transform: rotate(-3deg); opacity:.92; }

/* ===== Mini progress bar (clear even at 100%) ===== */

.fp-mini-wrap{ margin-top: 10px; }

.fp-mini-bar{
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.06);
  overflow: hidden;
  position: relative;
}

.fp-mini-bar-fill{
  height: 100%;
  border-radius: 999px;
  background: rgba(220,53,69,.55); /* red fill */
  box-shadow: inset 0 0 0 1px rgba(220,53,69,.30);
  position: relative;
}

/* subtle “shine” so full bar doesn't look flat */
.fp-mini-bar-fill::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  opacity: .65;
}

/* at 100% add stripes + stronger border */
.fp-mini-bar.is-full{
  border-color: rgba(220,53,69,.35);
  box-shadow: 0 0 0 2px rgba(220,53,69,.10);
}

.fp-mini-bar.is-full .fp-mini-bar-fill{
  background-image: repeating-linear-gradient(
    45deg,
    rgba(220,53,69,.55) 0 8px,
    rgba(220,53,69,.40) 8px 16px
  );
}

/* labels under bar */
.fp-mini-meta{
  margin-top: 6px;
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .82;
  font-weight: 700;
}

/* ===== Debrief Feed styling ===== */

.fp-df-card{
  border-radius: 16px;
  overflow: hidden;
}

.fp-df-header{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;

  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.fp-df-tools input{
  border-radius: 999px;
  padding-left: 12px;
  min-width: 240px;
}

.fp-df-table thead th{
  border-top: 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
}

.fp-df-when{
  font-weight: 700;
  letter-spacing: .2px;
}

/* reuse avatar look */
.fp-avatar{
  width: 34px; height: 34px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
  letter-spacing: .6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.fp-df-name{ font-weight: 700; }
.fp-df-sub{ font-size: 12px; opacity:.75; }

/* stamp chip */
.fp-chip{
  display:inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
}
.fp-chip-label{
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 650;
}
.fp-chip-val{
  font-weight: 700;
  letter-spacing: .3px;
}
.fp-chip-stamp{
  border-color: rgba(220,53,69,.25);
  box-shadow: inset 0 0 0 1px rgba(220,53,69,.10);
}

/* route pill */
.fp-route-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-weight: 700;
  letter-spacing: .3px;
}
.fp-route-icao{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.fp-route-arrow{ opacity:.65; }

.fp-df-stampname{ margin-top: 6px; font-weight: 700; }
.fp-df-stampdesc{ margin-top: 2px; font-size: 12px; max-width: 520px; white-space: normal; }

.fp-pirep-link{
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
}

.fp-pirep-link:hover{ text-decoration: underline; }

/* ===== Debrief Feed (cards) ===== */

.fp-df-card{
  border-radius: 16px;
  overflow: hidden;
}

.fp-df-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.fp-df-tools input{
  border-radius: 999px;
  padding-left: 12px;
  min-width: 260px;
}

/* Feed container */
.fp-df-feed{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Single item */
.fp-df-item{
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(900px 140px at 15% -20%, rgba(0,0,0,.05), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.45));
}

.fp-df-item:hover{
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}

/* left avatar */
.fp-avatar{
  width: 34px; height: 34px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
  letter-spacing: .6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.fp-avatar-lg{ width: 46px; height: 46px; font-size: 14px; }

.fp-df-main{ flex: 1; min-width: 0; }

/* top row */
.fp-df-top{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-df-pilot-name{
  font-weight: 1000;
  letter-spacing: .2px;
}

.fp-df-when{
  font-weight: 700;
  opacity: .8;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* chips */
.fp-chip{
  display:inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.70);
  text-decoration: none;
}
.fp-chip-label{
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 650;
}
.fp-chip-val{
  font-weight: 1000;
  letter-spacing: .3px;
}
.fp-chip-stamp{
  border-color: rgba(220,53,69,.28);
  box-shadow: inset 0 0 0 1px rgba(220,53,69,.10);
}
.fp-chip-link:hover{ text-decoration: none; box-shadow: 0 10px 22px rgba(0,0,0,.08); }

/* route pill */
.fp-route-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-weight: 1000;
  letter-spacing: .3px;
}
.fp-route-icao{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.fp-route-arrow{ opacity:.65; }

/* mid row: wrap chips nicely */
.fp-df-mid{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* description */
.fp-df-desc{ margin-top: 10px; }
.fp-df-stampname{ font-weight: 1000; letter-spacing:.2px; }
.fp-df-stampdesc{ margin-top: 2px; font-size: 12px; white-space: normal; max-width: 720px; }

/* actions */
.fp-df-actions{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* responsive: stack */
@media (max-width: 575px){
  .fp-df-item{ padding: 12px; }
  .fp-df-tools input{ min-width: 100%; }
}

/* ===== Passport Nav (pill) ===== */

.fp-nav{
  margin-top: 10px;
}

.fp-nav-inner{
  display: flex;
  gap: 10px;
  align-items: center;

  padding: 10px;
  border-radius: 16px;

  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(900px 140px at 12% -20%, rgba(0,0,0,.05), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.45));
}

/* items */
.fp-nav-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);

  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  color: inherit;

  transition: transform .12s ease, box-shadow .12s ease;
}

.fp-nav-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  text-decoration: none;
}

.fp-nav-ico{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  font-size: 14px;
  line-height: 1;
}

.fp-nav-item.is-active{
  border-color: rgba(220,53,69,.35);
  box-shadow: 0 0 0 3px rgba(220,53,69,.10);
}

.fp-nav-item.is-active .fp-nav-ico{
  border-color: rgba(220,53,69,.35);
  background: rgba(220,53,69,.10);
}

/* responsive: horizontal scroll on small screens */
@media (max-width: 575px){
  .fp-nav-inner{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .fp-nav-item{
    flex: 0 0 auto;
  }
}

/* ===== Home: Passport “Coming Soon” + Onboarding Hero ===== */

.home-hero{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(1200px 240px at 18% -30%, rgba(0,0,0,.06), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.44));
  position: relative;
}

.home-hero .card-body{ padding: 18px; }

.home-kicker{
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .75;
}

.home-title{
  margin: 6px 0 0;
  font-weight: 1000;
  letter-spacing: .2px;
}

.home-sub{
  margin-top: 8px;
  opacity: .85;
  line-height: 1.35;
}

.home-hero-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  font-weight: 700;
  font-size: 12px;
  opacity: .9;
  white-space: nowrap;
}
.home-badge-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(25,135,84,.8);
  box-shadow: 0 0 0 3px rgba(25,135,84,.12);
}

/* steps */
.home-steps{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-step{
  flex: 1 1 180px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.55);
}
.home-step-ico{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
}
.home-step-txt{
  font-weight: 700;
  opacity: .9;
}

/* actions */
.home-hero-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Coming soon stamp (red, dashed) */
.home-stamp{
  position:absolute;
  top: 14px;
  right: 14px;
  transform: rotate(-10deg);

  padding: 6px 10px;
  border-radius: 999px;

  border: 2px dashed rgba(220,53,69,.78);
  background: rgba(220,53,69,.10);
  color: rgba(220,53,69,.95);

  font-weight: 1000;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;

  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* Features list */
.home-feats{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.home-feat{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.55);
  font-weight: 700;
  opacity: .9;
}

.home-footnote{
  margin-top: 10px;
  font-size: 12px;
  opacity: .7;
}

/* small screens */
@media (max-width: 575px){
  .home-hero .card-body{ padding: 14px; }
}
/* stessa altezza per i due box */
.home-hero{
  height: 100%;
}
/* ============================
   Dark mode support (body.dark-mode)
   ============================ */

body.dark-mode .home-hero{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(1200px 240px at 18% -30%, rgba(255,255,255,.08), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(28,28,32,.92), rgba(18,18,22,.88));
  color: rgba(255,255,255,.92);
}

/* testi */
body.dark-mode .home-kicker{ opacity: .78; }
body.dark-mode .home-sub{ opacity: .86; }

/* badge “Supporto rapido” */
body.dark-mode .home-badge{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
body.dark-mode .home-badge-dot{
  box-shadow: 0 0 0 3px rgba(25,135,84,.18);
}

/* steps */
body.dark-mode .home-step{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
body.dark-mode .home-step-ico{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
body.dark-mode .home-step-txt{ opacity: .92; }

/* features list */
body.dark-mode .home-feat{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  opacity: .92;
}

/* coming soon stamp (rimane rosso ma su scuro più leggibile) */
body.dark-mode .home-stamp{
  border-color: rgba(220,53,69,.85);
  background: rgba(220,53,69,.14);
  color: rgba(255,120,120,.95);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

/* nota */
body.dark-mode .home-footnote{ opacity: .75; }

/* stessa altezza (resta valido anche in dark mode) */
body.dark-mode .home-hero{ height: 100%; }

/* ==========================================================
   DARK MODE SUPPORT for IVOPS Passport UI
   (attivo quando body ha classe: dark-mode)
   ========================================================== */

/* --- NAV (pill) --- */
body.dark-mode .fp-nav-inner{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(900px 140px at 12% -20%, rgba(255,255,255,.08), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(28,28,32,.92), rgba(18,18,22,.88));
}

body.dark-mode .fp-nav-item{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-nav-item:hover{
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

body.dark-mode .fp-nav-ico{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

body.dark-mode .fp-nav-item.is-active{
  border-color: rgba(220,53,69,.45);
  box-shadow: 0 0 0 3px rgba(220,53,69,.16);
}

body.dark-mode .fp-nav-item.is-active .fp-nav-ico{
  border-color: rgba(220,53,69,.45);
  background: rgba(220,53,69,.14);
}

/* --- Chips / Pills --- */
body.dark-mode .fp-chip{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-chip-label{ opacity: .75; }
body.dark-mode .fp-chip-val{ color: rgba(255,255,255,.95); }

body.dark-mode .fp-chip-stamp{
  border-color: rgba(220,53,69,.40);
  box-shadow: inset 0 0 0 1px rgba(220,53,69,.14);
}

body.dark-mode .fp-route-pill{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-route-arrow{ opacity: .70; }

/* --- Avatar --- */
body.dark-mode .fp-avatar{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

/* --- Debrief Feed card --- */
body.dark-mode .fp-df-card{
  border-color: rgba(255,255,255,.12);
}

body.dark-mode .fp-df-header{
  border-bottom-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}

body.dark-mode .fp-df-tools input{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-df-tools input::placeholder{
  color: rgba(255,255,255,.55);
}

body.dark-mode .fp-df-item{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(900px 160px at 15% -20%, rgba(255,255,255,.08), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(28,28,32,.92), rgba(18,18,22,.88));
}

body.dark-mode .fp-df-item:hover{
  box-shadow: 0 14px 32px rgba(0,0,0,.40);
}

body.dark-mode .fp-df-when{
  opacity: .82;
}

/* --- Leaderboard: row highlight --- */
body.dark-mode .fp-row-me{
  background: rgba(220,53,69,.08) !important;
}

/* --- Mini progress bar (week) --- */
body.dark-mode .fp-mini-bar{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

body.dark-mode .fp-mini-bar-fill{
  background: rgba(220,53,69,.60);
  box-shadow: inset 0 0 0 1px rgba(220,53,69,.25);
}

body.dark-mode .fp-mini-bar-fill::after{
  opacity: .45; /* shine meno forte su scuro */
}

body.dark-mode .fp-mini-bar.is-full{
  border-color: rgba(220,53,69,.50);
  box-shadow: 0 0 0 2px rgba(220,53,69,.18);
}

/* --- Rank stamp (podium badge) --- */
body.dark-mode .fp-podium-badge{
  /* mantiene rosso ma “stacca” sul dark */
  background: rgba(220,53,69,.16);
  border-color: rgba(220,53,69,.85);
  outline-color: rgba(220,53,69,.28);
  box-shadow:
    0 12px 28px rgba(0,0,0,.45),
    inset 0 0 0 3px rgba(0,0,0,.18);
}

body.dark-mode .fp-podium-r{
  color: rgba(255,140,140,.95);
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 0 1px rgba(220,53,69,.40);
}

.fp-podium{
  position: relative;
  border-radius: 18px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(0,0,0,.10);

  background:
    radial-gradient(1200px 180px at 20% -20%, rgba(0,0,0,.06), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.46));

  box-shadow:
    0 14px 28px rgba(0,0,0,.07),
    inset 0 1px 0 rgba(255,255,255,.55);

  overflow: hidden;
}

/* leggero “watermark” per dare look passport */
.fp-podium::after{
  content:"IV";
  position:absolute;
  right: 14px;
  bottom: 10px;
  font-weight: 1000;
  letter-spacing: 3px;
  font-size: 44px;
  opacity: .06;
  pointer-events:none;
}
body.dark-mode .fp-podium{
  border-color: rgba(255,255,255,.12);

  background:
    radial-gradient(900px 180px at 18% -20%, rgba(255,255,255,.09), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(28,28,32,.92), rgba(18,18,22,.88));

  box-shadow:
    0 18px 34px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);

  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-podium::after{
  opacity: .08; /* watermark leggermente più visibile su dark */
  color: rgba(255,255,255,.90);
}
/* ===== VISA BLOCK (light) ===== */
.visa-block{
  background:
    radial-gradient(900px 160px at 14% -20%, rgba(0,0,0,.06), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.46));
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px 14px;

  box-shadow:
    0 12px 26px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.55);

  position: relative;
  overflow: hidden;
}

/* micro “paper fiber” (molto leggero) */
.visa-block::after{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.35), rgba(255,255,255,0) 55%),
    radial-gradient(circle at 82% 80%, rgba(0,0,0,.04), rgba(0,0,0,0) 55%);
  opacity: .9;
}

/* ===== VISA BLOCK (dark-mode) ===== */
body.dark-mode .visa-block{
  background:
    radial-gradient(900px 160px at 14% -20%, rgba(255,255,255,.09), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(28,28,32,.92), rgba(18,18,22,.88));
  border-color: rgba(255,255,255,.12);

  box-shadow:
    0 18px 34px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.08);

  color: rgba(255,255,255,.92);
}

body.dark-mode .visa-block::after{
  opacity: .55; /* texture più soft su scuro */
}

/* ==========================================================
   PASSPORT THEME - DARK MODE OVERRIDES
   Attivo solo con: body.dark-mode
   ========================================================== */

body.dark-mode{
  /* variabili ottimizzate per dark */
  --paper: rgba(18,18,22,.96);
  --paper-2: rgba(12,12,16,.96);
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --edge: rgba(255,255,255,.12);
  --bind: rgba(255,255,255,.07);

  --stamp-blue-soft: rgba(77,163,255,.22);

  --earned-border: rgba(16,185,129,.32);
  --earned-green: rgba(52,211,153,.95);
  --earned-green-soft: rgba(16,185,129,.12);

  --seal-red: rgba(220,38,38,.68);
  --seal-red-strong: rgba(255,120,120,.94);
  --seal-red-soft: rgba(220,38,38,.12);

  --stamp-grey: rgba(156,163,175,.24);
}

/* ===== Shell / Page ===== */
body.dark-mode .passport-shell{
  border-color: var(--edge);
  background: linear-gradient(180deg, rgba(28,28,32,.96) 0%, rgba(16,16,20,.96) 100%);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

body.dark-mode .passport-topbar{
  background: linear-gradient(90deg, rgba(10,14,22,1) 0%, rgba(18,26,40,1) 100%);
  color: rgba(255,255,255,.94);
}

body.dark-mode .passport-page{
  background:
    /* righe “paper” più soft */
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.045) 0px,
      rgba(255,255,255,.045) 1px,
      transparent 1px,
      transparent 26px
    ),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.06), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

body.dark-mode .passport-page:before{
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)),
    linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-right-color: rgba(255,255,255,.10);
}

body.dark-mode .passport-watermark{
  color: rgba(255,255,255,.06);
}

/* Titoli */
body.dark-mode .passport-title{ color: rgba(255,255,255,.94); }
body.dark-mode .passport-sub{ color: var(--muted); }

/* ===== Visa blocks (coerente col resto) ===== */
body.dark-mode .visa-row,
body.dark-mode .visa-kpi{ color: rgba(255,255,255,.92); }

body.dark-mode .visa-label{ color: rgba(255,255,255,.68); }

body.dark-mode .visa-progress{
  background: rgba(255,255,255,.10);
}

body.dark-mode .visa-progress > div{
  background: linear-gradient(90deg, rgba(77,163,255,.85), rgba(77,163,255,.55));
}

/* ===== Hub stickers ===== */
body.dark-mode .hub-stickers .badge{
  border-color: rgba(255,255,255,.18);
  background: rgba(77,163,255,.10);
  color: rgba(170,210,255,.95);
}

/* ===== Stamp cards ===== */
body.dark-mode .passport-stamp{
  background: rgba(255,255,255,.05);
  border-color: var(--stamp-blue-soft);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

body.dark-mode .passport-stamp:hover{
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
}

/* ring base */
body.dark-mode .passport-stamp:before{
  border-color: rgba(77,163,255,.25);
}

/* mark + meta */
body.dark-mode .stamp-mark{ color: rgba(170,210,255,.92); }
body.dark-mode .stamp-name{ color: rgba(255,255,255,.94); }
body.dark-mode .stamp-desc{ color: var(--muted); }
body.dark-mode .stamp-meta{ color: rgba(255,255,255,.70); }

body.dark-mode .stamp-code{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

/* status pill */
body.dark-mode .stamp-status{
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.04);
}
body.dark-mode .stamp-status .dot{
  background: rgba(77,163,255,.90);
}

/* rules */
body.dark-mode .stamp-rules{
  border-top-color: rgba(255,255,255,.14);
}
body.dark-mode .stamp-rules .title,
body.dark-mode .stamp-rules ul{
  color: rgba(255,255,255,.68);
}

/* LOCKED */
body.dark-mode .passport-stamp.is-locked{
  border-color: var(--stamp-grey);
  filter: grayscale(.20);
  opacity: .88;
}
body.dark-mode .passport-stamp.is-locked:before{ border-color: rgba(156,163,175,.22); }
body.dark-mode .passport-stamp.is-locked .stamp-mark{ color: rgba(200,205,215,.70); }
body.dark-mode .passport-stamp.is-locked .stamp-status{ color: rgba(200,205,215,.70); }
body.dark-mode .passport-stamp.is-locked .stamp-status .dot{ background: rgba(200,205,215,.75); }

/* EARNED */
body.dark-mode .passport-stamp.is-earned{
  border-color: var(--earned-border);
  box-shadow:
    0 16px 38px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 30px rgba(220,38,38,.10);
}

body.dark-mode .passport-stamp.is-earned .stamp-ink{
  opacity: .45;
}

body.dark-mode .passport-stamp.is-earned:before{
  border-color: rgb(237 237 237 / 68%);
  box-shadow: 0 0 0 2px rgb(232 232 232 / 14%), 0 10px 22px rgba(0, 0, 0, .40), inset 0 0 16px rgb(247 247 247 / 12%), inset 0 0 0 14px rgb(247 242 242 / 10%), inset 0 0 0 32px rgb(255 250 250 / 6%);
}




body.dark-mode .passport-stamp.is-earned .stamp-mark{
  color: rgb(247 247 247 / 94%);
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 0 1px rgba(220,38,38,.35);
}

body.dark-mode .passport-stamp.is-earned .stamp-status{
  color: var(--earned-green);
  border-color: rgba(16,185,129,.45);
  background: rgba(16,185,129,.10);
}

/* APPROVED SVG: resta ok (rosso) */

/* ===== Modal vintage ===== */
body.dark-mode .fp-modal.fp-vintage .modal-content{
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

body.dark-mode .fp-modal.fp-vintage .modal-body,
body.dark-mode .fp-modal.fp-vintage .modal-footer,
body.dark-mode .fp-modal.fp-vintage .modal-footer.fp-doc-footer{
  background: rgba(18,18,22,.98);
}

body.dark-mode .fp-modal.fp-vintage .fp-vintage-paper{
  background:
    radial-gradient(800px 220px at 15% 0%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(0deg, rgba(255,255,255,.05), rgba(255,255,255,.05)),
    rgba(12,12,16,.98);
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

body.dark-mode .fp-modal.fp-vintage .fp-paper-watermark{
  color: rgba(255,255,255,.06);
}

body.dark-mode .fp-modal.fp-vintage .fp-icao-chip{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

body.dark-mode .fp-modal.fp-vintage .fp-icao-chip .mono{
  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-modal.fp-vintage .fp-icao-chip:hover{
  border-color: rgba(77,163,255,.35);
  box-shadow: 0 12px 24px rgba(0,0,0,.45);
}

body.dark-mode .fp-modal.fp-vintage .fp-doc-value{
  color: rgba(255,255,255,.92);
  border-bottom-color: rgba(255,255,255,.22);
}

/* badge info in modal (se usi .badge-info) */
body.dark-mode .modal .badge.badge-info{
  border-color: rgba(255,255,255,.18);
  background: rgba(77,163,255,.10);
  color: rgba(170,210,255,.95);
}
/* ===========================
   Discord / Fly Together card
   =========================== */

.fp-discord-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;

  border-radius: 16px;
  padding: 14px 14px;

  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(900px 160px at 12% -25%, rgba(0,0,0,.06), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.46));

  box-shadow:
    0 12px 26px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.55);

  position: relative;
  overflow:hidden;
}

/* watermark */
.fp-discord-card:after{
  content:"WINGMAN";
  position:absolute;
  right: 14px;
  top: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 34px;
  opacity: .06;
  pointer-events:none;
  transform: rotate(-6deg);
}

.fp-discord-left{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  min-width: 0;
}

.fp-discord-ico{
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display:flex;
  align-items:center;
  justify-content:center;

  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(88,101,242,.10); /* Discord blurple hint */
  color: rgba(88,101,242,.95);
  flex: 0 0 auto;
}

.fp-discord-copy{ min-width: 0; }

.fp-discord-kicker{
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .78;
  margin-bottom: 2px;
}

.fp-discord-title{
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.15;
}

.fp-discord-sub{
  margin-top: 4px;
  opacity: .85;
  font-size: 13px;
}

.fp-discord-steps{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.fp-step{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.16);
  background: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .3px;
}

.fp-step .n{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border: 1px solid rgba(0,0,0,.10);
  background: rgba(88,101,242,.12);
  color: rgba(88,101,242,.95);

  font-size: 11px;
  font-weight: 700;
}

.fp-discord-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.fp-discord-btn{
  border-radius: 999px;
  padding-left: 14px;
  padding-right: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.fp-discord-note{
  font-size: 12px;
  opacity: unset;
}

/* responsive */
@media (max-width: 576px){
  .fp-discord-card{ flex-direction:column; align-items:stretch; }
  .fp-discord-right{ align-items:stretch; }
  .fp-discord-right .btn{ width:100%; }
}

/* ===========================
   Dark mode
   =========================== */
body.dark-mode .fp-discord-card{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(900px 160px at 12% -25%, rgba(255,255,255,.09), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(28,28,32,.92), rgba(18,18,22,.88));
  box-shadow:
    0 18px 34px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

body.dark-mode .fp-discord-ico{
  border-color: rgba(255,255,255,.18);
  background: rgba(88,101,242,.14);
  color: rgba(170,180,255,.95);
}

body.dark-mode .fp-step{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

body.dark-mode .fp-step .n{
  border-color: rgba(255,255,255,.16);
  background: rgba(88,101,242,.18);
  color: rgba(210,215,255,.95);
}

/* =======================================================
   EARNED STAMP -> BLACK INK + CENTER LOGO (STAMP EFFECT)
   Incolla in FONDO a custom.css (override delle regole sopra)
   ======================================================= */

/* 1) Trasforma le variabili “red” in NERO (senza rinominare tutto) */
:root{
  --seal-red: rgba(0,0,0,.70);
  --seal-red-strong: rgba(0,0,0,.92);
  --seal-red-soft: rgba(0,0,0,.10);
}

/* 2) Overlay “inchiostro” (prima era rosso): ora NERO */
.passport-stamp .stamp-ink{
  background:
    radial-gradient(circle at 78% 20%, rgba(0,0,0,.22), transparent 52%),
    radial-gradient(circle at 70% 32%, rgba(0,0,0,.14), transparent 58%),

    radial-gradient(circle at 18% 22%, rgba(0,0,0,.16) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(0,0,0,.11) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 30%, rgba(0,0,0,.15) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 74%, rgba(0,0,0,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 72%, rgba(0,0,0,.10) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 68%, rgba(0,0,0,.09) 0 1px, transparent 2px),

    repeating-linear-gradient(
      18deg,
      rgba(0,0,0,.05) 0px,
      rgba(0,0,0,.05) 1px,
      transparent 1px,
      transparent 7px
    ),
    repeating-linear-gradient(
      -12deg,
      rgba(0,0,0,.035) 0px,
      rgba(0,0,0,.035) 1px,
      transparent 1px,
      transparent 9px
    );

  filter: blur(.22px) contrast(1.12) saturate(0);
}

/* 3) Toglie i “bleed” rossi nelle ombre del blocco earned */
.passport-stamp.is-earned{
  box-shadow:
    0 12px 28px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 0 30px rgba(0,0,0,.08),
    inset 0 0 0 999px rgba(0,0,0,.006);
}

.passport-stamp.is-earned:before{
  /* ring già diventa nero via --seal-red; qui sistemiamo solo le ombre interne */
  box-shadow:
    0 0 0 2px rgba(0,0,0,.12),
    0 8px 18px rgba(0,0,0,.06),
    inset 0 0 16px rgba(0,0,0,.12),
    inset 0 0 0 14px rgba(0,0,0,.10),
    inset 0 0 0 32px rgba(0,0,0,.06);

  filter: contrast(1.14) blur(.10px);
}

/* 4) “APPROVED” arcuato: cambia fill SVG a NERO */
.passport-stamp.is-earned::after{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3E%3Cdefs%3E%3Cpath%20id='a'%20d='M%2020%20125%20A%2080%2080%200%200%200%20180%20125'/%3E%3C/defs%3E%3Ctext%20fill='%23000000'%20fill-opacity='0.92'%20font-size='30'%20font-weight='900'%20font-family='Menlo,Monaco,Consolas,monospace'%20letter-spacing='5'%3E%3CtextPath%20href='%23a'%20startOffset='50%25'%20text-anchor='middle'%3EAPPROVED%3C/textPath%3E%3C/text%3E%3C/svg%3E");
}

/* 5) Scritta inclinata (COMPLETED/OPEN): ora nera */
.passport-stamp.is-earned .stamp-mark{
  color: var(--seal-red-strong);
  text-shadow:
    0 0 1px rgba(0,0,0,.30),
    0 1px 0 rgba(0,0,0,.06),
    -1px 0 rgba(0,0,0,.14);
}

/* 6) Hover: niente rosso */
.passport-stamp.is-earned:hover{
  box-shadow:
    0 14px 36px rgba(0,0,0,.12),
    0 0 0 7px rgba(0,0,0,.05),
    inset 0 0 36px rgba(0,0,0,.10),
    inset 0 0 0 999px rgba(0,0,0,.010);
}
.passport-stamp.is-earned:hover .stamp-ink{
  opacity: .54;
  filter: blur(.26px) contrast(1.16) saturate(0);
}

/* =======================================================
   LOGO al centro del timbro (richiede <span class="stamp-logo">)
   ======================================================= */

/* Imposta QUI il tuo logo (meglio SVG o PNG trasparente) */
.passport-stamp.is-earned{
  --stamp-logo-url: url("https://va.italianivolanti.it/Logo_Italiani_Volanti.svg"); /* <-- cambia questo */
}

.passport-stamp.is-earned .stamp-logo{
  position:absolute;
  top: var(--seal-off);
  right: var(--seal-off);
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 999px;
  pointer-events:none;
  z-index: 3;
  opacity: .82;
  mix-blend-mode: multiply;

  /* “inchiostro” dentro al logo */
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(0,0,0,.22), transparent 55%),
    repeating-linear-gradient(18deg, rgba(0,0,0,.10) 0 1px, transparent 1px 7px),
    rgba(0,0,0,.78);

  /* maschera = forma del logo */
  -webkit-mask-image: var(--stamp-logo-url);
  mask-image: var(--stamp-logo-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 56% 56%;
  mask-size: 56% 56%;

  filter: blur(.10px) contrast(1.15);
}

/* fallback se mask non supportata */
@supports not ((-webkit-mask-image: url("")) or (mask-image: url(""))){
  .passport-stamp.is-earned .stamp-logo{
    background: none;
    background-image: var(--stamp-logo-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56% 56%;
    opacity: .75;
    filter: grayscale(1) brightness(0) contrast(1.2) blur(.10px);
  }
}

.home-poster {
  width: 100%;
  height: auto;
  max-height: 220px;      /* regola a piacere */
  object-fit: cover;
  display: block;
}

.home-poster-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

body.dark-mode .passport-stamp.is-earned::after {

  filter: invert(1);
 
}

body.dark-mode .passport-stamp.is-earned .stamp-logo {
  filter: invert(1);
}
