html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}



html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #0B0B0B;
    background-image: linear-gradient(135deg, #0B0B0B 0%, #1C1C1C 100%);
    background-attachment: fixed;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main[role="main"] {
    flex: 1; /* prende tutto lo spazio rimasto, spingendo il footer in basso */
}
.login-form {
    width: 450px;
}

/* Base Elite styles */
.bg-platinum {
    background-color: #6E6E6E;
}

.border-platinum {
    border-color: #6E6E6E;
}

.text-platinum {
    color: #6E6E6E;
}

/* Elite button base */
.btn-platinum {
    background-color: #6E6E6E;
    color: #ffffff;
    border: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

    /* Hover effect */
    .btn-platinum:hover {
        background-color: #5a5a5a;
        color: #ffffff;
        transform: scale(1.00);
    }

    /* Active (click) effect */
    .btn-platinum:active {
        background-color: #4a4a4a;
        transform: scale(1.0);
    }

    /* Optional: focus outline */
    .btn-platinum:focus {
        outline: 1px solid #aaa;
        outline-offset: 1px;
        box-shadow: 0 0 0 0.25rem rgba(110, 110, 110, 0.5);
    }



.th-fixed {
    width: 200px;
}

/* Sfondo pagina login */
.bg-login {
    background-color: #0B0B0B; /* nero profondo */
    background-image: linear-gradient(135deg, #0B0B0B 0%, #1C1C1C 100%); /* leggero gradiente */
    color: #FFFFFF; /* testi bianchi */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card login stile Binance */
.login-card {
    background-color: #1C1C1C; /* quasi nero */
    border: 2px solid #FFD700; /* bordo oro */
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); /* leggero bagliore oro */
    padding: 30px;
}

.login-card .card-header {
    background: rgba(255, 215, 0, 0.08); /* oro trasparente */
    backdrop-filter: blur(6px);          /* effetto vetro */
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;                       /* scritta oro */
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
}


.login-card .card-body {
    color: #FFFFFF; /* testo bianco */
}

.password-toggle-wrap {
    position: relative;
}

.password-toggle-wrap .form-control {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #ffd700;
    line-height: 1;
    padding: 0.25rem;
    cursor: pointer;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: #ffec70;
    outline: none;
}

.password-toggle-btn svg {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}

.password-toggle-btn .password-toggle-icon--hide {
    display: none;
}

.password-toggle-btn.is-revealed .password-toggle-icon--show {
    display: none;
}

.password-toggle-btn.is-revealed .password-toggle-icon--hide {
    display: block;
}

/* Bottone login */
.btn-login {
    background-color: #FFD700; /* oro */
    color: #000000; /* testo nero */
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #FFD700;
}

.btn-login:active {
    transform: scale(1);
    box-shadow: 0 0 5px #FFD700;
}

/* CTA globali: stesso stile Accedi / Registrati (oro → nero al hover) */
.btn.btn-login.landing-auth-btn {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD700;
    color: #000000;
    border: 1px solid #FFD700;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    --bs-btn-bg: #FFD700;
    --bs-btn-color: #000000;
    --bs-btn-border-color: #FFD700;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-border-color: #000000;
}

.btn.btn-login.landing-auth-btn:hover,
.btn.btn-login.landing-auth-btn:focus-visible,
.btn.btn-login.landing-auth-btn.show {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    outline: none;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 10px #FFD700;
}

.btn.btn-login.landing-auth-btn:active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: scale(1);
    box-shadow: 0 0 5px #FFD700;
}

.login-card a {
    color: #FFD700;          /* colore oro del link */
    font-weight: bold;        /* testo in grassetto */
    text-decoration: none;    /* togli il sottolineato normale */
}

.login-card a:hover {
    color: #FFEC70;           /* colore pi� chiaro quando passi sopra il mouse */
    text-decoration: underline; /* aggiunge sottolineatura solo al passaggio del mouse */
}

.text-gold {
    color: #FFD700; /* oro */
    font-weight: bold;
    text-decoration: none; /* niente sottolineatura normale */
}

.text-gold:hover {
    color: #FFEC70; /* oro chiaro al passaggio del mouse */
    text-decoration: underline;
}

/* Navbar oro */
.navbar {
    background-color: #1a1a1a; /* sfondo scuro elegante */
     padding-left: 1rem;   /* distanza dal bordo sinistro */
    padding-right: 1rem;  /* distanza dal bordo destro */
}

.navbar .nav-link {
    color: #d4af37; /* oro */
}

.navbar .nav-link:hover {
    color: #fff; /* bianco al passaggio del mouse */
}

.navbar .nav-link.active {
    color: #fff;
    background-color: #d4af37; /* sfondo oro link attivo */
}

.details-card {
    background-color: #1C1C1C;
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 30px;
    color: white;

    /* GLOW FORTE COME LOGIN */
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.55) !important;

    overflow: visible !important;
}

.invoice-card {
    background-color: #1C1C1C;
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 2px;
    color: white;
    /* GLOW FORTE COME LOGIN */
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.55) !important;
    overflow: visible !important;
}

.container {
    overflow: visible !important;
}


.details-card dt {
    color: #FFD700; /* label oro brillante */
}

.details-card dd {
    color: #FFFFFF; /* valori in bianco */
}

.details-card:hover {
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.4),
        0 0 25px rgba(255, 215, 0, 0.25),
        0 0 50px rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
}


/* Logout e email oro */
.user-email,
.logout-btn {
    color: #d4af37; /* oro */
}

.user-email:hover,
.logout-btn:hover {
    color: #fff; /* bianco al passaggio del mouse */
}

/* ============================= */
/* FOOTER TRADE ALCHEMY STYLE    */
/* ============================= */

footer {
    background-color: #0B0B0B; /* nero elegante */
    color: white;
}

/* Titoli LEGAL e SUPPORT */
footer h5,
footer .footer-hd {
    color: #FFD700; /* oro */
    font-weight: bold;
}

/* Link del footer */
footer a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}

/* Hover: oro */
footer a:hover {
    color: #FFD700 !important;
    text-decoration: underline;
}

/* Copyright */
footer .footer-copyright {
    color: white;
    font-size: 0.9rem;
}

/* === Fix navbar alignment per Client layout ===
   Questo mette la porzione di login a destra e uniforma gli spazi tra Hello e Logout. */
@media (min-width: 992px) {
.client-navbar-fix .navbar-collapse {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0; /* assicurati che non aggiunga gap inaspettati */
}

/* fa s� che la parte dei link principali resti a sinistra */
.client-navbar-fix .navbar-nav.flex-grow-1 {
    display: flex;
    align-items: center;
    gap: 1rem; /* distanza tra Dashboard / Pricing / Invoices */
}

/* wrapper che contiene Hello + Logout, viene spinto a destra */
.client-navbar-fix .client-login-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem; /* distanza tra Hello e Logout */
     padding-right: 1rem; /* opzionale */
}
}

/* se il partial genera una UL -> gestiamo anche quel caso */
.client-navbar-fix .client-login-wrapper > ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
}

/* stile "visivo" per Hello e Logout (gi� presenti nelle tue classi) */
.client-login-wrapper .user-email,
.client-login-wrapper .logout-btn,
.client-login-wrapper .nav-link.logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
}

.client-login-wrapper .logout-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* sposta solo Hello/Logout a destra senza toccare il resto */
.navbar .collapse .client-login-wrapper {
    margin-left: auto;  /* spinge tutto a destra */
    display: flex;      /* tieni tutto allineato orizzontalmente */
    align-items: center;
    gap: 0.75rem;       /* distanza tra Hello e Logout */
}

.details-card dd {
    white-space: nowrap;
}

.center-rows .row > div {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Solo per i bottoni Manage Account */
a.btn-login {
    text-decoration: none !important;
}

/* Stato normale: oro con testo nero */
a.btn-login {
    background-color: #FFD700; /* oro */
    color: #000000; /* testo nero */
}

/* Hover / active: nero con testo bianco */
a.btn-login:hover,
a.btn-login:active {
    text-decoration: none !important;
    background-color: #000000; /* sfondo nero */
    color: #FFFFFF;             /* testo bianco */
    transform: scale(1.05);
    box-shadow: 0 0 10px #FFD700;
}

.login-card .text-success {
    color: #FFFFFF !important; /* Bianco */
    font-weight: bold;          /* opzionale, per uniformarlo allo stile */
}

/* Stile header per le card details (come Manage Account / Login) */
.details-card .card-header,
.details-card > .card-header {
    background: rgba(255, 215, 0, 0.08); /* oro trasparente */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 1.25rem;     /* leggermente pi� piccolo di login header se vuoi cambiare */
    text-align: center;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    margin: -30px 20px 15px 20px; /* solleva leggermente l'header rispetto alla card body */
    display: block;
}

.details-card .card-header1,
.details-card > .card-header1 {
    background: rgba(255, 215, 0, 0.08); /* oro trasparente */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 1.25rem; /* leggermente pi� piccolo di login header se vuoi cambiare */
    text-align: center;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
margin-bottom:30px;
    display: block;
}

/* Se per qualche motivo il tuo header � ancora dentro .card-body (fallback) */
.details-card .card-body > .card-header {
    margin-bottom: 12px;
    padding: 8px 12px;
}

/* Solleva leggermente l'header dal bordo superiore della card */
.details-card .card-header {
    margin-top: 10px;    /* aumenta lo spazio sopra l'header */
    margin-bottom: 5px; /* spazio tra header e body */
}

.details-card .card-header {
    color: #ffffff;  /* bianco */
   
}

/* aggiungi nel tuo file CSS principale, es. site.css */
.pricing-title {
    margin-bottom: 0.2rem; /* distanza dal blocco sottostante */
    margin-top: 2rem;  /* distanza dal menu sopra */
}

/* aggiungi nel tuo CSS */
.coupon-row {
    display: flex;
    justify-content: space-between; /* input a sinistra, bottone a destra */
    align-items: center;
    margin-bottom: 1rem;
}

.coupon-row input {
    max-width: 130px;
    text-align: center;
}

.login-card .login-header {
    color: #FFFFFF; /* bianco */
}

/* Landing homepage (navbar + hero) */
.landing-body {
    min-height: 100vh;
}

.landing-main {
    flex: 1 0 auto;
}

.tool-access-shell {
    position: relative;
}

.tool-access-shell.is-locked .tool-access-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.tool-access-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(11, 11, 11, 0.35);
}

.tool-access-overlay-card {
    max-width: 28rem;
    text-align: center;
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(18, 18, 18, 0.92);
}

.tool-access-overlay-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: #FFD700;
}

.fintech-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.fintech-calendar-day {
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
}

.fintech-calendar-day.is-profit {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.45);
}

.fintech-calendar-day.is-loss {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
}

.fintech-calendar-day.is-flat {
    background: rgba(255, 255, 255, 0.04);
}

.fintech-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.fintech-calendar-day {
    min-height: 5.5rem;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem;
    text-align: center;
}

.fintech-calendar-day strong {
    display: block;
    font-size: 0.8rem;
}

.fintech-calendar-day span {
    display: block;
    font-size: 0.7rem;
    color: #d1d5db;
}

.fintech-calendar,
.fintech-calendar-weekdays {
    width: 100%;
}

.fintech-calendar-day {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.institutional-page .report-chart-trigger-emoji {
    font-size: 2.25rem;
    line-height: 1;
    display: block;
}

.report-chart-calendar-host {
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .institutional-page .fintech-calendar,
    .institutional-page .fintech-calendar-weekdays {
        gap: 0.2rem;
    }

    .institutional-page .fintech-calendar-weekdays {
        font-size: 0.6rem;
    }

    .institutional-page .fintech-calendar-weekdays span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .institutional-page .fintech-calendar-day {
        aspect-ratio: auto;
        min-height: 3.65rem;
        height: auto;
        padding: 0.22rem 0.12rem;
    }

    .institutional-page .fintech-calendar-day strong {
        font-size: clamp(0.5rem, 2.5vw, 0.72rem);
        line-height: 1.12;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .institutional-page .fintech-calendar-day span {
        font-size: clamp(0.48rem, 2.1vw, 0.62rem);
        line-height: 1.1;
    }

    .report-chart-calendar-host .d-flex.flex-wrap.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
    }

    .report-chart-calendar-host .badge {
        font-size: 0.7rem;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .report-chart-overlay.is-mobile-landscape.is-active .report-chart-calendar-host {
        flex: 0 0 auto;
    }
}

.call-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.call-calendar-empty {
    min-height: 4.25rem;
}

.call-calendar-day {
    min-height: 4.25rem;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.call-calendar-day.is-available {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.58);
}

.call-calendar-day.is-unavailable {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.48);
    color: rgba(255, 255, 255, 0.46);
    cursor: not-allowed;
}

.call-calendar-day.is-disabled-notice {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.32);
    color: rgba(255, 255, 255, 0.38);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.call-calendar-day.is-available:hover,
.call-calendar-day.is-selected {
    transform: translateY(-2px);
    border-color: #FFD700;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.26);
}

.call-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.call-slot-btn {
    width: 100%;
    min-height: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.32);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.call-slot-btn:hover,
.call-slot-btn.is-selected {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
}

.call-slot-btn.is-disabled,
.call-slot-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.24);
    color: rgba(255, 255, 255, 0.52);
}

.call-slot-btn.is-disabled:hover,
.call-slot-btn:disabled:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.24);
    color: rgba(255, 255, 255, 0.52);
}

.call-duration-switch {
    width: 100%;
}

.call-legal-disclaimer {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(255, 215, 0, 0.65);
    border-radius: 0.35rem;
    background: rgba(15, 23, 42, 0.55);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.45;
}

.freeze-toggle {
    width: 54px;
    height: 30px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 999px;
    background: #2d2d2d;
    padding: 3px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.freeze-toggle span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: transform 0.2s ease, background 0.2s ease;
}

.freeze-toggle.is-on {
    background: #3a3420;
    border-color: #FFD700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.22);
}

.freeze-toggle.is-on span {
    transform: translateX(24px);
    background: #FFD700;
}

.call-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #d1d5db;
}

.call-legend::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.call-legend--available::before {
    background: #22c55e;
}

.call-legend--unavailable::before {
    background: #ef4444;
}

@media (max-width: 575.98px) {
    .call-calendar-grid {
        gap: 0.28rem;
    }

    .call-calendar-empty,
    .call-calendar-day {
        min-height: 2.8rem;
        border-radius: 9px;
        font-size: 0.82rem;
    }
}

.fintech-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-height: 180px;
    padding-top: 0.5rem;
}

.fintech-chart-bar {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #FFD700 0%, #b8960f 100%);
}

.fintech-chart-bar.is-negative {
    background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
}

.landing-navbar .landing-brand,
.landing-navbar .navbar-brand.landing-brand {
    color: #FFD700 !important;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: none;
}

.landing-navbar.is-scrolled {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(15, 15, 15, 0.78) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.landing-navbar .landing-actions .landing-auth-btn {
    white-space: nowrap;
}

.landing-hero .details-card {
    margin-bottom: 0;
}

/* Lingue sempre visibili: evita che il collapse della navbar tagli il menu lingue */
@media (min-width: 992px) {
    .navbar.client-navbar-fix .navbar-collapse {
        overflow: visible !important;
    }

    .landing-navbar .landing-actions,
    .client-navbar-fix .client-login-wrapper {
        overflow: visible !important;
    }
}

.lang-switcher-dropdown .dropdown-menu {
    min-width: 10rem;
    z-index: 1080;
}

.landing-main-nav .dropdown-menu {
    min-width: 12rem;
    z-index: 1090;
}

.lang-switcher-dropdown .dropdown-item.active {
    font-weight: 600;
}

.account-hub-page .details-card .card-body {
    min-height: unset;
}

.account-hub-actions .btn-login.landing-auth-btn {
    min-width: 0;
    width: auto;
    min-height: 2.15rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.account-hub-page .details-card {
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.22) !important;
    padding: 1.5rem;
}

.account-telegram-hint {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
}

.account-telegram-hint-link {
    color: #FFD700;
    font-weight: 500;
    text-decoration: none;
}

.account-telegram-hint-link:hover {
    color: #FFEC70;
    text-decoration: underline;
}

.account-hub-page .details-card:hover {
    transform: none;
}

.auth-page {
    max-width: 26rem;
}

.auth-page.change-password-page {
    max-width: 100%;
}

.change-password-page .change-password-card {
    width: 100%;
    min-width: min(100%, 22rem);
}

.change-password-page .form-label,
.change-password-page p,
.change-password-page a,
.change-password-page button {
    overflow-wrap: normal;
    word-break: normal;
}

.auth-page-col {
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

.auth-page .details-card.auth-card {
    padding: 0;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.18) !important;
}

.auth-card {
    padding: 0;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.18) !important;
}

.auth-card:hover {
    transform: none;
}

.auth-card-body {
    padding: 1.25rem 1.15rem;
}

.auth-input {
    background-color: #101010;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    color: #ffffff;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
}

.landing-body .form-control:not(.fintech-input):not(.form-select),
.login-card .form-control,
.password-toggle-field,
.login-form .admin-datetime-picker,
.login-form input[type="datetime-local"].form-control {
    background-color: #101010;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    color: #ffffff;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
}

.login-form input[type="datetime-local"].admin-datetime-picker::-webkit-calendar-picker-indicator,
.login-form input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(1) saturate(4) hue-rotate(5deg);
    cursor: pointer;
}

.login-form input[type="datetime-local"].admin-datetime-picker::-webkit-datetime-edit-fields-wrapper,
.login-form input[type="datetime-local"].form-control::-webkit-datetime-edit-fields-wrapper {
    color: #ffffff;
}

.landing-body .form-control:not(.fintech-input):not(.form-select)::placeholder,
.login-card .form-control::placeholder,
.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.landing-body .form-control:not(.fintech-input):not(.form-select):focus,
.login-card .form-control:focus,
.auth-input:focus {
    background-color: #101010;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.15rem rgba(255, 215, 0, 0.15);
    color: #ffffff;
}

.landing-body .form-control:not(.fintech-input):not(.form-select):-webkit-autofill,
.login-card .form-control:-webkit-autofill,
.auth-input:-webkit-autofill,
.password-toggle-field:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px #101010 inset;
    transition: background-color 9999s ease-out 0s;
}

.auth-text-link {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
}

.auth-text-link:hover {
    color: #ffec70;
    text-decoration: underline;
}

.lang-switcher-dropdown .dropdown-menu {
    background: #151515;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.lang-switcher-dropdown .dropdown-item {
    color: #e8e8e8;
}

.lang-switcher-dropdown .dropdown-item:hover,
.lang-switcher-dropdown .dropdown-item:focus {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.12);
}

.lang-switcher-dropdown .dropdown-item.active,
.lang-switcher-dropdown .dropdown-item:active {
    color: #000000;
    background: #FFD700;
}

.auth-divider {
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-actions .auth-btn-compact {
    width: 100%;
    max-width: 13.5rem;
    min-height: 2.15rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-btn-secondary {
    background-color: transparent !important;
    color: #ffd700 !important;
    border-color: rgba(255, 215, 0, 0.55) !important;
}

.auth-btn-secondary:hover,
.auth-btn-secondary:focus-visible {
    background-color: rgba(255, 215, 0, 0.08) !important;
    color: #ffffff !important;
    border-color: #ffd700 !important;
}

/* Modifica password: forza tema oro (Bootstrap / bundle Identity non devono vincere sul submit) */
.change-password-card button[type="submit"].btn.btn-login.landing-auth-btn,
.change-password-card .btn.btn-login.landing-auth-btn:not(.auth-btn-secondary) {
    background-color: #ffd700 !important;
    color: #000000 !important;
    border: 1px solid #ffd700 !important;
    --bs-btn-bg: #ffd700;
    --bs-btn-color: #000000;
    --bs-btn-border-color: #ffd700;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-border-color: #000000;
}

.change-password-card .btn.btn-login.landing-auth-btn.auth-btn-secondary {
    color: #ffd700 !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 215, 0, 0.75) !important;
    font-weight: 600;
}

.change-password-card .btn.btn-login.landing-auth-btn.auth-btn-secondary:hover,
.change-password-card .btn.btn-login.landing-auth-btn.auth-btn-secondary:focus-visible {
    color: #ffffff !important;
    background-color: rgba(255, 215, 0, 0.12) !important;
    border-color: #ffd700 !important;
}

.auth-google-form {
    margin: 0;
    display: flex;
    justify-content: center;
}

.auth-google-btn {
    width: 100%;
    max-width: 13.5rem;
    margin-left: auto;
    margin-right: auto;
    min-height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.auth-google-btn:hover {
    background: #f5f5f5;
}

.auth-google-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.landing-user-nav .btn-login {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar.landing-navbar .landing-user-nav .btn-login {
    color: #000000;
}

/* Logo sempre cliccabile (link alla home) */
.landing-navbar a.landing-brand {
    cursor: pointer;
    text-decoration: none;
}

/* Variabili Bootstrap dropdown nel tema oro (niente highlight blu / azzurro) */
.landing-navbar {
    --bs-dropdown-bg: #141414;
    --bs-dropdown-border-color: rgba(255, 215, 0, 0.35);
    --bs-dropdown-link-color: #e8e8e8;
    --bs-dropdown-link-hover-color: #FFD700;
    --bs-dropdown-link-hover-bg: rgba(255, 215, 0, 0.12);
    --bs-dropdown-link-active-color: #FFD700;
    --bs-dropdown-link-active-bg: rgba(255, 215, 0, 0.22);
}

.landing-navbar .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.landing-navbar .dropdown-menu .dropdown-item {
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.landing-navbar .dropdown-menu .dropdown-item:hover,
.landing-navbar .dropdown-menu .dropdown-item:focus {
    outline: none;
    background-color: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    transform: translateX(3px);
    box-shadow: inset 3px 0 0 rgba(255, 215, 0, 0.75);
}

.landing-navbar .dropdown-menu .dropdown-item:active {
    transform: translateX(2px);
}

/* Voce lingua selezionata (.active): stesso tema oro, niente azzurro Bootstrap */
.landing-navbar .dropdown-menu .dropdown-item.active,
.landing-navbar .dropdown-menu .dropdown-item.active:focus {
    background-color: rgba(255, 215, 0, 0.22) !important;
    color: #FFD700 !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 rgba(255, 215, 0, 0.95);
}

.landing-navbar .dropdown-menu .dropdown-item.active:hover {
    background-color: rgba(255, 215, 0, 0.3) !important;
    color: #FFEC70 !important;
}

.landing-navbar .landing-actions .btn-login.dropdown-toggle::after {
    vertical-align: 0.15em;
}

/* Navbar: lingua / Accedi / Registrati / Ciao / Esci — stesso hover dei CTA landing (nero + bianco + neon) */
.landing-navbar .landing-actions .btn-login.landing-auth-btn,
.landing-navbar .landing-user-nav .btn-login.landing-auth-btn {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD700;
    color: #000000;
    border: 1px solid #FFD700;
    --bs-btn-bg: #FFD700;
    --bs-btn-color: #000000;
    --bs-btn-border-color: #FFD700;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-border-color: #000000;
}

.landing-navbar .landing-actions .btn-login.landing-auth-btn:hover,
.landing-navbar .landing-actions .btn-login.landing-auth-btn:focus-visible,
.landing-navbar .landing-actions .btn-login.landing-auth-btn.show,
.landing-navbar .landing-user-nav .btn-login.landing-auth-btn:hover,
.landing-navbar .landing-user-nav .btn-login.landing-auth-btn:focus-visible,
.landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn:hover,
.landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn:focus-visible,
.landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn.show {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    outline: none;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 10px #FFD700;
}

.landing-navbar .landing-actions .btn-login.landing-auth-btn:active,
.landing-navbar .landing-user-nav .btn-login.landing-auth-btn:active,
.landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn:active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: scale(1);
    box-shadow: 0 0 5px #FFD700;
}

/* Sala segnali / Bot Copy — toggle fatturazione stile TradingView */
.pricing-billing-shell {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(20, 20, 20, 0.85);
}

.pricing-billing-toggle label {
    margin: 0;
    cursor: pointer;
    color: #e8e8e8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pricing-billing-toggle input {
    accent-color: #FFD700;
}

.pricing-billing-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.pricing-plan-card .pricing-card-title {
    font-size: 2.35rem;
    font-weight: 700;
}

.pricing-plan-card .pricing-per-month {
    font-size: 1rem;
    font-weight: 600;
    color: #FFD700;
}

.pricing-plan-card .pricing-billing-note,
.pricing-plan-card .pricing-save-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.pricing-plan-card ul li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-plan-card ul li:last-child {
    border-bottom: none;
}

.pricing-plan-row {
    max-width: 920px;
}

/* Desktop: apri tendina anche al passaggio del mouse */
@media (min-width: 992px) {
    .landing-navbar .landing-main-nav > li.nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .landing-navbar .client-login-wrapper .lang-switcher-dropdown:hover > .dropdown-menu.dropdown-menu-end {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Institutional / fintech tool pages */
.institutional-page {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.institutional-page .fintech-card {
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.25rem;
    color: #f5f5f5;
}

.institutional-page .fintech-card:hover {
    transform: none;
    box-shadow: none !important;
}

.institutional-page .fintech-card--accent-top {
    border-top: 2px solid #d4af37;
}

.institutional-page .fintech-metric-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 0.35rem;
}

.institutional-page .fintech-metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f5f5f5;
    line-height: 1.1;
}

.institutional-page [data-dashboard-stats] > [class*="col-"] > .fintech-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.institutional-page .dashboard-goal-card .fintech-metric-label,
.institutional-page .dashboard-gap-card .fintech-metric-label {
    letter-spacing: 0.06em;
    flex: 0 0 auto;
}

.institutional-page .dashboard-goal-input {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    text-align: left;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    min-height: 2.75rem;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: none;
}

.institutional-page .dashboard-goal-input::-webkit-outer-spin-button,
.institutional-page .dashboard-goal-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.institutional-page .dashboard-goal-input:focus {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.12);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.institutional-page .dashboard-goal-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.institutional-page .dashboard-gap-card [data-gap-to-goal-value] {
    margin-top: auto;
    flex: 0 0 auto;
}

.institutional-page .fintech-metric-value--hero {
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    line-height: 1.2;
    word-break: break-word;
}

.institutional-page [data-dashboard-stats] .fintech-card {
    min-height: 6.5rem;
    overflow: hidden;
}

.fintech-calendar-badge {
    background: #1f2937;
    color: #f9fafb;
    border: 1px solid rgba(255, 215, 0, 0.45);
}

.fintech-chart-wrap {
    position: relative;
}

.institutional-page [data-equity-chart] .fintech-chart-wrap {
    overflow: hidden;
}

.fintech-chart-tooltip {
    position: absolute;
    z-index: 3;
    min-width: 12rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #2d2d2d;
    background: rgba(18, 18, 18, 0.96);
    color: #fff;
    font-size: 0.8rem;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fintech-chart-tooltip-head {
    padding: 0.45rem 0.75rem;
    margin: -0.65rem -0.75rem 0.5rem;
    border-bottom: 1px solid #2d2d2d;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #d1d5db;
}

.fintech-chart-tooltip-body {
    display: grid;
    gap: 0.35rem;
}

.fintech-chart-tooltip-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    background: #60a5fa;
    vertical-align: middle;
}

.fintech-chart-tooltip-dot--muted {
    background: #111827;
    border: 1px solid #4b5563;
}

.institutional-page [data-journal-stats] .fintech-metric-label {
    color: #d1d5db;
}

.institutional-page .fintech-input,
.institutional-page .fintech-input.form-select {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    color: #f5f5f5;
    border-radius: 8px;
}

.institutional-page .fintech-input:focus {
    background-color: #1a1a1a;
    border-color: #4a4a4a;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.institutional-page .fintech-input option,
.institutional-page .fintech-input.form-select option {
    background: #141414;
    color: #f5f5f5;
}

.institutional-page .fintech-input option:checked,
.institutional-page .fintech-input.form-select option:checked,
.institutional-page .fintech-input option:hover,
.institutional-page .fintech-input.form-select option:hover {
    background: rgba(255, 215, 0, 0.18);
    color: #ffd700;
}

.institutional-page .pricing-plan-card--featured {
    border-color: rgba(212, 175, 55, 0.55);
}

.institutional-page .pricing-plan-card {
    padding: 0;
    overflow: hidden;
}

.institutional-page .pricing-plan-card .card-body {
    padding: 2rem 2rem 1.75rem;
}

.institutional-page .pricing-plan-card .card-header {
    padding: 1.75rem 2rem 0;
}

.institutional-page .pricing-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.institutional-page .pricing-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
    color: #e8e8e8;
}

.institutional-page .pricing-feature-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    text-align: center;
    color: #d4af37;
    font-weight: 700;
}

.institutional-page .pricing-feature-icon--pro {
    color: #c4a5f5;
}

.institutional-page .pricing-feature-icon--gift {
    color: #7dd3a8;
}

.institutional-page .pricing-plan-card--featured {
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18);
}

.institutional-page .pricing-plan-card .pricing-cta {
    margin-top: auto;
    width: 100%;
    max-width: 16rem;
}

.institutional-page .botcopy-sales-card .card-body {
    padding: 2.25rem 2rem 2rem;
}

.institutional-page .botcopy-promo-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
}

.institutional-page .botcopy-addon-note {
    color: #bdbdbd;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.institutional-page .botcopy-plan-title {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
}

.institutional-page .botcopy-plan-title:hover {
    color: #ffd700;
    text-decoration: none;
}

.institutional-page .botlotti-benefit-card,
.institutional-page .botlotti-control-section,
.institutional-page .botlotti-footer-card {
    padding: 2rem;
}

.institutional-page .botlotti-control-section {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.institutional-page .botlotti-control-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.institutional-page .botlotti-control-heading-icon {
    color: #ffd700;
    font-size: 1.35rem;
    line-height: 1;
}

.institutional-page .botlotti-control-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.institutional-page .botlotti-control-card h3 {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.institutional-page .botlotti-control-card p {
    color: #e8e8e8;
    line-height: 1.6;
}

.institutional-page .botlotti-benefit-card h2 {
    color: #ffd700;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.institutional-page .botlotti-benefit-card p,
.institutional-page .botlotti-commands-card p,
.institutional-page .botlotti-commands-card li {
    color: #e8e8e8;
    line-height: 1.6;
}

.institutional-page .botlotti-commands-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.institutional-page .botlotti-commands-list code {
    color: #ffd700;
    font-weight: 600;
}

.institutional-page .botlotti-footer-card {
    text-align: center;
}

.institutional-page .pricing-plan-card .card-header,
.institutional-page .pricing-plan-card .card-body {
    background: transparent;
}

.institutional-page .pricing-plan-card .card-header h3 {
    color: #f5f5f5;
    font-weight: 600;
}

.institutional-page .pricing-plan-card .pricing-per-month {
    color: #bdbdbd;
}

.institutional-page .pricing-billing-toggle {
    border: 1px solid #2d2d2d;
    background: rgba(18, 18, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.institutional-page .pricing-billing-badge {
    border: 1px solid #2d2d2d;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
}

.institutional-page .fintech-chart {
    min-height: 280px;
    background: #101010;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
}

.institutional-page .fintech-chart--lg {
    min-height: 340px;
}

.institutional-page .journal-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.institutional-page .journal-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    display: inline-block;
}

.institutional-page .journal-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.institutional-page .journal-toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #2d2d2d;
    border-radius: 999px;
    transition: background 0.25s ease;
}

.institutional-page .journal-toggle-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #f5f5f5;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.institutional-page .journal-toggle input:checked + .journal-toggle-slider {
    background: #3a3420;
}

.institutional-page .journal-toggle input:checked + .journal-toggle-slider::before {
    transform: translateX(24px);
    background: #d4af37;
}

.institutional-page .metric-mode-switch {
    font-size: 0.75rem;
    gap: 0.35rem;
}

.institutional-page .journal-toggle--compact {
    width: 2.5rem;
    height: 1.25rem;
}

.institutional-page .journal-toggle--compact .journal-toggle-slider::before {
    width: 0.9rem;
    height: 0.9rem;
}

.institutional-page .journal-toggle--compact input:checked + .journal-toggle-slider::before {
    transform: translateX(1.1rem);
}

.institutional-page .journal-panel {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.institutional-page .journal-panel.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.institutional-page .journal-table-wrap {
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(16, 16, 16, 0.85);
}

.institutional-page .journal-table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    --bs-table-color: #e8e8e8;
    --bs-table-border-color: #2d2d2d;
}

.institutional-page .journal-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9a9a9a;
    border-bottom: 1px solid #2d2d2d;
    padding: 0.85rem 0.75rem;
}

.institutional-page .journal-table tbody td {
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
}

.institutional-page .journal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.institutional-page .pl-positive {
    color: #2ecc9a;
    font-weight: 600;
}

.institutional-page .pl-negative {
    color: #c75c5c;
    font-weight: 600;
}

.institutional-page .journal-note-row td {
    background: rgba(255, 255, 255, 0.02);
    border-top: none;
}

.institutional-page .report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.institutional-page .report-tab {
    border: 1px solid #2d2d2d;
    background: rgba(20, 20, 20, 0.8);
    color: #bdbdbd;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.institutional-page .report-tab.active {
    border-color: #d4af37;
    color: #f5f5f5;
    background: rgba(212, 175, 55, 0.12);
}

.institutional-page .report-tab--challenge {
    min-width: 12rem;
    text-align: center;
    line-height: 1.25;
}

.institutional-page .report-tab-title {
    display: block;
}

.institutional-page .report-tab-subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.institutional-page .report-timeline-scroll {
    max-height: 420px;
    min-height: 420px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.trade-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.trade-photo-lightbox-card {
    position: relative;
    max-width: min(96vw, 960px);
    max-height: 92vh;
}

.trade-photo-lightbox-card img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
}

.trade-photo-lightbox-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
}

.institutional-page .report-timeline-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #242424;
}

.institutional-page .report-timeline-meta {
    display: contents;
}

.institutional-page .report-timeline-ticks {
    white-space: nowrap;
    color: #f5f5f5;
    font-weight: 500;
}

.institutional-page .report-badge-win,
.institutional-page .report-badge-loss,
.institutional-page .report-badge-neutral {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.institutional-page .report-badge-win {
    background: rgba(46, 204, 154, 0.15);
    color: #2ecc9a;
    border: 1px solid rgba(46, 204, 154, 0.35);
}

.institutional-page .report-badge-loss {
    background: rgba(199, 92, 92, 0.15);
    color: #c75c5c;
    border: 1px solid rgba(199, 92, 92, 0.35);
}

.institutional-page .report-badge-neutral {
    background: rgba(240, 166, 73, 0.16);
    color: #f0a649;
    border: 1px solid rgba(240, 166, 73, 0.4);
}

.institutional-page .report-chart-col {
    display: none;
}

.institutional-page .report-chart-col.is-visible {
    display: block;
}

.institutional-page .report-chart-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.25rem;
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    color: #f5f5f5;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.institutional-page .report-chart-trigger:hover,
.institutional-page .report-chart-trigger:focus-visible {
    border-color: rgba(212, 175, 55, 0.65);
    background: rgba(24, 24, 24, 0.92);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
    outline: none;
}

.institutional-page .report-chart-trigger-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    width: 100%;
}

.institutional-page .report-chart-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
}

.institutional-page .report-chart-trigger-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: #f5f5f5;
}

.report-chart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-chart-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.report-chart-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.report-chart-overlay.is-active .report-chart-backdrop {
    opacity: 1;
}

.report-chart-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1051;
    width: min(980px, 94vw);
    max-height: min(92vh, 860px);
    margin: 0;
    padding: 1.35rem 1.5rem 1.15rem;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.99) 0%, rgba(12, 12, 12, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-top: 2px solid #d4af37;
    border-radius: 16px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85) translate3d(0, 0, 0);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
    will-change: transform, opacity;
}

.report-chart-overlay.is-active .report-chart-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) translate3d(0, 0, 0);
}

.report-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    padding-bottom: 0.85rem;
    margin-bottom: 0.15rem;
}

.report-chart-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
}

.report-chart-canvas.fintech-chart--lg {
    flex: 1 1 auto;
    min-height: 340px;
    margin-bottom: 0.35rem;
    pointer-events: auto !important;
}

.report-chart-canvas .fintech-chart-wrap {
    min-height: 340px;
    height: 100%;
    pointer-events: auto !important;
    touch-action: pan-y;
}

.report-chart-canvas svg {
    cursor: crosshair;
    pointer-events: auto !important;
    touch-action: pan-y;
}

.report-chart-canvas .fintech-chart-tooltip {
    z-index: 12;
    pointer-events: none;
}

.report-chart-rotate-hint {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.35rem 0 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.05);
    text-align: center;
    pointer-events: none;
    visibility: hidden;
    z-index: -1;
    position: relative;
}

.report-chart-rotate-hint[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.report-chart-rotate-hint.is-visible:not([hidden]) {
    display: flex;
    visibility: visible;
    z-index: 1;
    pointer-events: none;
}

.report-chart-rotate-icon {
    width: 3.25rem;
    height: 3.25rem;
    color: #d4af37;
}

.report-chart-rotate-phone {
    transform-origin: 32px 32px;
    animation: report-chart-phone-rotate 2.4s ease-in-out infinite;
}

.report-chart-rotate-arrow--left {
    animation: report-chart-arrow-pulse 2.4s ease-in-out infinite;
}

.report-chart-rotate-arrow--right {
    animation: report-chart-arrow-pulse 2.4s ease-in-out infinite 0.35s;
}

.report-chart-rotate-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #c9b896;
    max-width: 16rem;
}

@keyframes report-chart-phone-rotate {
    0%, 18% { transform: rotate(0deg); }
    45%, 58% { transform: rotate(90deg); }
    78%, 100% { transform: rotate(0deg); }
}

@keyframes report-chart-arrow-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@media (max-width: 768px) and (orientation: portrait) {
    .report-chart-rotate-hint.is-visible:not([hidden]) {
        display: flex;
        visibility: visible;
        pointer-events: none;
    }

    .report-chart-canvas.fintech-chart--lg {
        min-height: 220px;
    }

    .report-chart-canvas .fintech-chart-wrap {
        min-height: 220px;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .report-chart-rotate-hint,
    .report-chart-rotate-hint.is-visible {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }

    .report-chart-overlay.is-active {
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        padding: 20px 10px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .report-chart-overlay.is-active .report-chart-panel {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        height: auto !important;
        max-height: none !important;
        margin: 0;
        padding: 0.65rem 0.85rem 40px !important;
        overflow-x: hidden;
        overflow-y: visible;
        flex-shrink: 0;
    }

    .report-chart-canvas.fintech-chart--lg {
        flex: 0 0 auto;
        min-height: 220px;
        margin-bottom: 0.35rem;
    }

    .report-chart-canvas .fintech-chart-wrap {
        min-height: 220px;
        height: auto;
    }

    .report-chart-canvas svg {
        height: 220px !important;
        min-height: 220px;
    }

    .report-chart-header {
        position: relative;
        top: auto;
        z-index: 100;
        background: transparent;
        padding-bottom: 0.55rem;
        margin-bottom: 0;
    }

    .report-chart-footer {
        display: block;
        flex-shrink: 0;
    }

    .report-chart-body {
        flex: 0 0 auto;
        min-height: auto;
    }
}

.report-chart-overlay.is-mobile-landscape.is-active {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.report-chart-overlay.is-mobile-landscape.is-active .report-chart-panel {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    padding-bottom: 40px !important;
    overflow-y: visible;
}

.report-chart-overlay.is-mobile-landscape.is-active .report-chart-footer {
    display: block;
}

.report-chart-overlay.is-mobile-landscape.is-active .report-chart-canvas.fintech-chart--lg,
.report-chart-overlay.is-mobile-landscape.is-active .report-chart-canvas .fintech-chart-wrap {
    min-height: 220px;
    flex: 0 0 auto;
}

.report-chart-dot {
    fill: rgba(245, 245, 245, 0.35);
    stroke: rgba(212, 175, 55, 0.55);
    stroke-width: 1.5;
    transition: fill 0.18s ease, stroke 0.18s ease, r 0.18s ease;
}

.report-chart-dot.is-active {
    fill: #ffd700;
    stroke: #fff;
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.75));
}

.report-chart-line {
    fill: none;
    stroke: rgba(245, 236, 210, 0.95);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-chart-footer {
    flex: 0 0 auto;
    margin-top: 0;
}

.report-chart-calc,
.report-chart-stats-wrap {
    padding: 0.75rem 0.85rem;
    background: rgba(14, 14, 14, 0.85);
    border: 1px solid #2a2a2a;
}

.report-chart-calc .fintech-metric-label,
.report-chart-stats-wrap .fintech-metric-label {
    margin-bottom: 0.35rem !important;
    font-size: 0.68rem;
}

.report-chart-calc-result {
    font-size: clamp(1.2rem, 2.8vw, 1.65rem);
    font-weight: 700;
    color: #34d399;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem !important;
}

.report-chart-return {
    margin-top: 0.15rem;
}

.report-chart-return-stat {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.06);
}

.report-chart-return-stat .report-chart-stat-value {
    font-size: 1.05rem;
}

.report-chart-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.report-chart-stat {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    border: 1px solid #2d2d2d;
    background: rgba(255, 255, 255, 0.02);
}

.report-chart-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 0.25rem;
}

.report-chart-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f5;
    line-height: 1.3;
}

.report-chart-stat-value.is-positive {
    color: #34d399;
}

.report-chart-stat-value.is-negative {
    color: #f87171;
}

.report-chart-calc-result.is-negative {
    color: #f87171;
}

.report-chart-stat--wide {
    grid-column: 1 / -1;
}

.report-chart-close {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
    z-index: 9999;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    margin: -0.15rem -0.1rem 0 0;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e5e5;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.report-chart-close:hover,
.report-chart-close:focus-visible {
    border-color: rgba(212, 175, 55, 0.65);
    color: #ffd700;
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
    outline: none;
}

body.report-chart-modal-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .report-chart-stats-grid {
        grid-template-columns: 1fr;
    }

    .report-chart-stat--wide {
        grid-column: auto;
    }
}

.institutional-page .faq-institutional {
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.08) !important;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
}

.institutional-page .faq-institutional .accordion-item {
    border: 0 !important;
    border-bottom: 1px solid #242424 !important;
    padding: 0.35rem 0;
}

.institutional-page .faq-institutional .accordion-item:last-child {
    border-bottom: 0 !important;
}

.institutional-page .faq-institutional .accordion-button {
    padding: 1rem 0.25rem;
    font-weight: 500;
}

.institutional-page .faq-institutional .accordion-button:not(.collapsed) {
    color: #d4af37;
    background: transparent;
    box-shadow: none;
}

.institutional-page .faq-institutional .accordion-button::after {
    transition: transform 0.25s ease;
    filter: brightness(0) invert(0.85);
}

.institutional-page .faq-institutional .accordion-body {
    padding: 0 0.25rem 1.1rem;
    line-height: 1.65;
    color: #bdbdbd;
}

@media (max-width: 767.98px) {
    .institutional-page .report-timeline-item {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.45rem;
    }

    .institutional-page .report-timeline-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 0.75rem;
        width: 100%;
    }

    .institutional-page .report-timeline-main {
        width: 100%;
    }
}

/* Mobile: navigazione, layout e contenuti */
@media (max-width: 991.98px) {
    .landing-navbar .navbar-toggler {
        border-color: rgba(212, 175, 55, 0.45);
        padding: 0.4rem 0.55rem;
    }

    .landing-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.35);
    }

    /* Transizione morbida sul menu mobile (Bootstrap .collapsing): non forzare height:0 */
    .landing-navbar .navbar-collapse.collapsing {
        transition:
            height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            border-top-color 0.32s ease !important;
        overflow: hidden !important;
    }

    .landing-navbar.client-navbar-fix .navbar-collapse {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.35rem;
        padding-top: 0;
        padding-bottom: 0;
        max-height: calc(100dvh - 4.5rem);
        overflow: hidden !important;
        background: #141414;
        border-top: 1px solid transparent;
        position: relative;
        z-index: 1040;
    }

    .landing-navbar.client-navbar-fix .navbar-collapse.show,
    .landing-navbar.client-navbar-fix .navbar-collapse.collapsing:not(.is-menu-closing) {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        border-top-color: rgba(212, 175, 55, 0.2);
    }

    .landing-navbar.client-navbar-fix .navbar-collapse.is-menu-closing.collapsing {
        border-top-color: transparent;
    }

    .landing-navbar.client-navbar-fix .navbar-collapse.show {
        overflow-y: auto !important;
    }

    .landing-navbar .navbar-brand {
        font-size: 1rem;
        max-width: calc(100% - 3.5rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .landing-navbar .landing-main-nav {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .landing-navbar .landing-main-nav .nav-link {
        padding: 0.65rem 0.35rem;
        width: 100%;
    }

    .landing-navbar .landing-main-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0.15rem 0 0.35rem;
        border: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        padding: 0;
        display: block !important;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, padding 0.38s ease, visibility 0s linear 0.35s;
    }

    .landing-navbar .landing-main-nav .dropdown-menu.show {
        max-height: min(70vh, 720px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0.35rem 0 0.35rem 0.5rem;
        transition: max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, padding 0.38s ease, visibility 0s linear 0s;
    }

    .landing-navbar .landing-main-nav .dropdown-item {
        padding-left: 0.75rem;
    }

    .landing-navbar .client-login-wrapper,
    .landing-navbar .landing-actions {
        margin-left: 0 !important;
        width: 100%;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        overflow: visible;
    }

    .landing-navbar .landing-actions .btn-login.landing-auth-btn,
    .landing-navbar .landing-user-nav .btn-login.landing-auth-btn,
    .landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn {
        width: 100%;
        border-radius: 10px !important;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, border-radius 0.2s ease !important;
    }

    .landing-navbar .landing-actions .btn-login.landing-auth-btn:hover,
    .landing-navbar .landing-actions .btn-login.landing-auth-btn:focus-visible,
    .landing-navbar .landing-actions .btn-login.landing-auth-btn.show,
    .landing-navbar .landing-user-nav .btn-login.landing-auth-btn:hover,
    .landing-navbar .landing-user-nav .btn-login.landing-auth-btn:focus-visible,
    .landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn:hover,
    .landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn:focus-visible,
    .landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn.show {
        border-radius: 10px !important;
        transform: scale(1.02) !important;
    }

    .landing-navbar .landing-actions .btn-login.landing-auth-btn:active,
    .landing-navbar .landing-user-nav .btn-login.landing-auth-btn:active,
    .landing-navbar .lang-switcher-dropdown > .btn-login.landing-auth-btn:active {
        border-radius: 10px !important;
        transform: scale(0.99) !important;
    }

    /* Lingue: stessa logica morbida delle tendine del menu (no “pop” secco) */
    .landing-navbar .lang-switcher-dropdown .dropdown-menu.dropdown-menu-end {
        position: static !important;
        float: none;
        transform: none !important;
        width: 100%;
        margin: 0.15rem 0 0.35rem;
        border: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 10px;
        padding: 0;
        display: block !important;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, padding 0.38s ease, visibility 0s linear 0.35s;
    }

    .landing-navbar .lang-switcher-dropdown .dropdown-menu.dropdown-menu-end.show {
        max-height: 320px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0.35rem 0;
        transition: max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, padding 0.38s ease, visibility 0s linear 0s;
    }

    .landing-navbar .lang-switcher-dropdown .dropdown-menu {
        width: 100%;
    }

    .landing-hero .display-5 {
        font-size: calc(1.35rem + 1.2vw);
    }

    .login-form {
        width: 100%;
        max-width: 100%;
    }

    .th-fixed,
    .th-fixed-1,
    .th-fixed-2,
    .th-fixed-3 {
        width: 100%;
        max-width: 100%;
    }

    footer .col-md-3 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .institutional-page .fintech-metric-value--hero {
        font-size: 1.75rem;
    }

    .institutional-page .pricing-plan-card .pricing-card-title {
        font-size: 1.85rem;
    }

    .institutional-page .journal-table thead th,
    .institutional-page .journal-table tbody td {
        font-size: 0.78rem;
        padding: 0.55rem 0.45rem;
    }
}

/* Enfasi copy istituzionale (es. Chi siamo) */
.institutional-page .home-highlight {
    color: #ffd700;
    font-weight: 700;
}

/* Legal documents (/terms, future /privacy refresh) */
.legal-doc-page {
    color: #e8e8e8;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.legal-doc-shell {
    max-width: 52rem;
}

.legal-doc-kicker {
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.legal-doc-title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.legal-doc-subtitle {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

.legal-doc-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.legal-doc-note {
    background: rgba(255, 255, 255, 0.06) !important;
}

.legal-doc-body {
    padding: 1.5rem 1.35rem;
}

.legal-doc-section + .legal-doc-section {
    margin-top: 0;
}

.legal-doc-h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.legal-doc-h3 {
    color: #f3f3f3;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.35rem 0 0.75rem;
}

.legal-doc-body p,
.legal-doc-body li {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.legal-doc-body p {
    margin-bottom: 0.85rem;
}

.legal-doc-ul,
.legal-doc-ol {
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
}

.legal-doc-ul li + li,
.legal-doc-ol li + li {
    margin-top: 0.35rem;
}

.legal-doc-owner {
    list-style: none;
    padding-left: 0;
}

.legal-doc-owner li {
    margin-bottom: 0.35rem;
}

.legal-doc-link {
    color: #ffd700;
    text-decoration: none;
}

.legal-doc-link:hover {
    color: #ffe566;
    text-decoration: underline;
}

.legal-doc-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.75rem 0;
    opacity: 1;
}

.legal-doc-table {
    --bs-table-bg: rgba(18, 18, 18, 0.72);
    --bs-table-color: rgba(255, 255, 255, 0.88);
    --bs-table-border-color: rgba(255, 255, 255, 0.14);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
    --bs-table-hover-bg: rgba(255, 215, 0, 0.06);
    font-size: 0.9rem;
}

.legal-doc-table thead th {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.legal-doc-callout {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-left: 3px solid rgba(212, 175, 55, 0.75);
    border-radius: 0.35rem;
    background: rgba(15, 23, 42, 0.55);
}

.legal-doc-callout--warning {
    border-left-color: rgba(255, 193, 7, 0.85);
    background: rgba(255, 193, 7, 0.08);
}

.legal-doc-callout p {
    color: rgba(255, 255, 255, 0.9);
}

.legal-doc-body code {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.88em;
}

.legal-doc-footer {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 575.98px) {
    .legal-doc-body {
        padding: 1.1rem 0.95rem;
    }

    .legal-doc-table {
        font-size: 0.78rem;
    }
}