.swal-modal {
    width: 650px;
}

/* Scadenze module — large centered title */
#kt_scadenze_cal .fc-center h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #343a40;
}

/* Delete button on user events */
.mc-event-del {
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 13px;
    line-height: 1;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}
.mc-event-del:hover {
    color: #fff;
}
.fc-event {
    position: relative;
}

/* FullCalendar today highlight */
.fc-day-grid .fc-today,
.fc-time-grid .fc-today {
    background: rgba(85, 120, 235, 0.08) !important;
}
.fc-day-grid .fc-today .fc-day-number {
    background: #5578eb;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* FullCalendar header buttons */
.fc-button {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
}
.fc-button-group .fc-button {
    padding: 4px 7px !important;
}

/* Color swatches */
.mc-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}
.mc-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.mc-swatch:hover,
.mc-swatch.mc-swatch-active {
    border-color: #333;
}
.mc-swatch-custom {
    background: linear-gradient(135deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f) !important;
    overflow: hidden;
    position: relative;
}
.mc-swatch-custom input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    padding: 0;
}

ul.nav-tabs li a {
    background-color: rgba(93, 120, 255, 0.1);
}

/*ul.nav-tabs li a.active {
    background-color: rgba(93, 120, 255, 1) !important;
    color: #fff !important;
}*/

.demoLinkButton {
    color: #fff;
    border: 1px solid #dedede;
    padding: 2px 8px;
    border-radius: 5px;
    margin: 0 3px;
    font-weight: bold;
}

.demoLinkButton:hover {
    background-color: #fff;
}

.customSwalBtn{
    background-color: #3085d6;
    border-left-color: #3085d6;
    border-right-color: #3085d6;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.0625em;
    margin: 30px 5px 0px 5px;
    padding: 10px 32px;
}

.customSwalBtnCancel{
    background-color: #aaa;
    border-left-color: #aaa;
    border-right-color: #aaa;
}

.competenze_column, .trattenute_column, .valore_column, .tempo_column {
    text-align: right;
}

.bustaPagaRowHeader {
    margin-top: 15px;
}

.bustaPagaRow .row {
    padding-bottom: 5px;
    border-bottom: 1px solid #dedede;
    padding-top: 5px;
}

.datepicker {
    z-index: 99999 !important;
}

.swal2-container {
    overflow-y: auto !important;
}

.row > div[class^="col-"] {
    margin-bottom: 15px;
}

.bustaPagaRow div[class^="col-"] {
    margin-bottom: 0 !important;
}

.kt-pricing-4 .kt-pricing-4__top .kt-pricing-4__top-container.kt-pricing-4__top-container--fixed .kt-pricing-4__top-body {
    margin-top: 0 !important;
}

.table tr.selected > td {
    background-color: #eef1ff !important;
}

.kt-form__actions.kt-form__actions--center button.button-submit {
    margin-bottom: 20px;
}

.homepage_banner button {
    width: 80%;
    font-size: 1.3em;
}

.bustapagaDayNameContainer, .bustapagaDayNameContainerJustClass {
    position: relative;
}

.bustapagaDayName, .bustapagaDayNameJustClass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.setRedColor {
    color: #ff0000;
}

.cedolino_right_column button {
    width: 100%;
}

.cedolino_right_column {
    padding-top: 20px;
}

.cedolino_right_column .btn_container {
    text-align: center;
    margin-bottom: 15px;
}

.pricing-item-custom {
    width: auto !important;
    text-align: center !important;
    font-weight: normal !important;
    color: #6c7293 !important;
}

.contract_subbox_container {
    border: 1px solid #dedede;
    padding: 20px;
    margin-left: 0px;
    margin-bottom: 20px;
}

.portlet-ticket {
    border: 1px solid #dedede;
}

.portlet-ticket .kt-portlet__body {
    overflow-wrap: break-word;
    word-break: break-word;
}

.riepilogo_busta_div_borders div[class^="col-"] {
    border: 1px solid #dedede;
}

.riepilogo_busta_div_nomargins div[class^="col-"] {
    margin: 0 !important;
}

#riepilogo_busta_container .ferie_footer_container .row > div[class^="col-"],
#riepilogo_busta_container .tfr_footer_container .row > div[class^="col-"]{
    border-bottom: none !important;
    border-top: none !important;
}

.riepilogo_busta_div_borders .row:not(:nth-child(1)) > div[class^="col-"] {
    border-top: none !important;
}

.ferie_footer_container, .tfr_footer_container {
    border-color: #a2a2a2 !important;
}

.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    display: none !important;
}

.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_info {
        display: block !important;
        float: none !important;
        text-align: center !important;
        width: 100% !important;
    }
    .dataTables_paginate .paginate_button {
        display: inline-block !important;
        float: none !important;
        padding: 4px 8px !important;
        font-size: 0.75em !important;
        margin: 1px !important;
        min-width: 0 !important;
    }
}

@media (min-width: 769px) {
    .riepilogo_busta_div_borders .row > div[class^="col-"]:not(:nth-child(1)) {
        border-left: none !important;
    }

    #riepilogo_busta_container .ferie_footer_container .row > div[class^="col-"]:nth-child(1) {
        border-left: none !important;
    }

    #riepilogo_busta_container .ferie_footer_container .row > div[class^="col-"]:last-child,
    #riepilogo_busta_container .tfr_footer_container .row > div[class^="col-"]:last-child {
        border-right: none !important;
    }

    #riepilogo_busta_container .tfr_footer_container .row > div[class^="col-"]:nth-child(1) {
        border-left: none !important;
    }
}

#swal2-content #data_licenziamento_inline .datepicker-inline {
    display: block;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
    color: #fff !important;
    background-color: #fff !important;
}

#contract_subbox_error {
    color: #fd397a;
}

#env_bottom_banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #ff0000;
    color: #ffffff;
    z-index: 999999;
    padding: 12px;
    font-weight: bold;
    font-size: 1.3em;
}

.tox-dialog {
    max-width: none !important;
    width: 50% !important;
}

.tox-dialog__body-nav {
    border-right: 1px solid #dedede !important;
}

.tag-el {
     cursor: pointer !important;
}

.tag-el > div {
    border: 1px solid #dedede !important;
    padding: 15px !important;
}

.tag-el-descr {
    font-size: 0.7em !important;
    font-style: italic !important;
}

.fc-list-empty {
    background-color: unset !important;
}

h4.module_section {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(93, 120, 255, 0.1);
}

/*
 * FORM VALIDATOR
 */

.mc-custom-form-error-element {
    border: 1px solid #fd397a;
}

.mc-custom-form-error-label {
    color: #fd397a;
}

.mc-custom-form-error-tab {
    background-color: #fbb8b8 !important;
    color: #fd397a !important;
}

.mc-custom-form-error-tab.active {
    background-color: #fbe3e3 !important;
}

.quickview_contributive_item, .quickview_contributive_header {
    text-align: center;
    padding: 0 !important;
}

.quickview_contributive div {
    padding: 5px;
}

.quickview_contributive_header {
    font-weight: bold;
    background-color: #1872BD;
    color: #ffffff;
    margin-bottom: 0px !important;
}

.quickview_contributive_item div:first-child {
    font-weight: bold;
    background-color: #FFF066;
}

.quickview_contributive_item div:last-child {
    background-color: #FFFFCC;
}

.kt-aside-menu .kt-menu__nav > .kt-menu__item > .kt-menu__heading .kt-menu__link-text,
.kt-aside-menu .kt-menu__nav > .kt-menu__item > .kt-menu__link .kt-menu__link-text,
.kt-aside-menu .kt-menu__nav > .kt-menu__section .kt-menu__section-text,
.kt-aside-menu .kt-menu__nav > .kt-menu__item > .kt-menu__heading .kt-menu__link-icon,
.kt-aside-menu .kt-menu__nav > .kt-menu__item > .kt-menu__link .kt-menu__link-icon,
.kt-aside-menu .kt-menu__nav > .kt-menu__item .kt-menu__submenu .kt-menu__item > .kt-menu__heading .kt-menu__link-text,
.kt-aside-menu .kt-menu__nav > .kt-menu__item .kt-menu__submenu .kt-menu__item > .kt-menu__link .kt-menu__link-text
{
    color: #eaebff !important;
}

.kt-aside-menu .kt-menu__nav > .kt-menu__item.kt-menu__item--active > .kt-menu__heading .kt-menu__link-icon,
.kt-aside-menu .kt-menu__nav > .kt-menu__item.kt-menu__item--active > .kt-menu__link .kt-menu__link-icon
{
    color: #fff !important;
}

.kt-aside-menu .kt-menu__nav > .kt-menu__item.kt-menu__item--active > .kt-menu__heading,
.kt-aside-menu .kt-menu__nav > .kt-menu__item.kt-menu__item--active > .kt-menu__link
{
    background-color: #5d78ff !important;
    border-radius: 10px;
    margin: 3px 15px;
    padding: 10px;
}

.calcolo_costo_dipendente_header {
    font-weight: bold;
    background-color: #5d78ff;
    color: #ffffff;
    margin-bottom: 0 !important;
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
}

.calcolo_costo_dipendente_header div {
    margin-bottom: 0 !important;
}

.calcolo_costo_dipendente_maincol {
    font-weight: bold;
    background-color: rgba(93, 120, 255, 0.1);
    margin-bottom: 0 !important;
    padding: 10px;
    text-align: right;
    color: #444;
}

.calcolo_costo_dipendente_rowdata {
    background-color: #FFFFCC;
    text-align: center;
    margin: auto;
    padding: 10px 0;
    margin-bottom: 0 !important;
}

body.fromFastEditor {
    background: #fff;
    height: auto;
}

body.fromFastEditor #kt_aside,
body.fromFastEditor #kt_footer,
body.fromFastEditor #kt_header,
body.fromFastEditor #kt_header_mobile,
body.fromFastEditor #kt_subheader {
    display: none;
}

body.fromFastEditor #kt_wrapper,
body.fromFastEditor #kt_content {
    padding: 0;
}

body.fromFastEditor .kt-portlet {
    margin-bottom: 0;
}

body.fromFastEditor .kt-portlet__body {
    padding: 0;
    overflow-x: hidden;
}

.contratto_per_ore_lavorate_in_presenza_notturna_descr div {
    margin-bottom: 10px;
}

.toast {
    opacity: 1 !important;
}

.customSortable {
    border: 1px solid #eee;
    width: 100%;
    min-height: 20px;
    list-style-type: none;
    padding: 10px;
    float: left;
    margin: 0 10px 0 0;
    cursor: pointer;
}

.customSortable li {
    margin: 0 5px 5px 5px;
    padding: 5px;
    font-size: 1.2em;
    position: relative;
    float: left;
    text-align: center;
}

.customSortable li.separator {
    width: 50px;
}

.sortableDelete {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fd397a;
    border-radius: 20px;
    height: 20px;
    width: 20px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    font-weight: bold;
    z-index: 999;
    color: #fff;
}

.table-maturazione-tfr th, .table-maturazione-tfr td {
    vertical-align: middle;
    text-align: center;
}

/* ===== TICKET MODULE ===== */

#ticketMessages {
    padding: 10px;
}

.ticket-type-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.ticket-type-card {
    flex: 1;
    min-width: 220px;
    border: 2px solid #ebedf2;
    border-radius: 8px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    margin: 0;
    font-weight: normal;
}

.ticket-type-card:hover {
    border-color: #5d78ff;
    box-shadow: 0 2px 10px rgba(93,120,255,0.12);
}

.ticket-type-card.active {
    border-color: #5d78ff;
    background: #f5f7ff;
}

.ticket-type-card input[type="radio"] {
    display: none;
}

.ticket-type-card .tcard-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(93,120,255,0.08);
    color: #5d78ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.ticket-type-card.active .tcard-icon {
    background: #5d78ff;
    color: #fff;
}

.ticket-type-card .tcard-body {
    flex: 1;
}

.ticket-type-card .tcard-title {
    display: block;
    font-weight: 600;
    color: #434556;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.ticket-type-card .tcard-desc {
    display: block;
    color: #74788d;
    font-size: 0.84em;
    line-height: 1.45;
}

/* Credits banner */
.ticket-credits-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 6px;
    background: rgba(10,187,135,0.07);
    border: 1px solid rgba(10,187,135,0.25);
}

.ticket-credits-banner.no-credits {
    background: rgba(253,57,122,0.07);
    border-color: rgba(253,57,122,0.25);
}

.ticket-credits-count {
    font-size: 2em;
    font-weight: 700;
    color: #0abb87;
    line-height: 1;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.ticket-credits-banner.no-credits .ticket-credits-count {
    color: #fd397a;
}

.ticket-credits-info { font-size: 0.85em; color: #74788d; margin-top: 3px; }

/* Admin sidebar */
.ticket-admin-user-card {
    background: #f8f9fc;
    border: 1px solid #ebedf2;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #5d78ff;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticket-admin-user-name {
    font-weight: 600;
    color: #434556;
    font-size: 0.93em;
    line-height: 1.3;
}

.ticket-admin-user-email {
    font-size: 0.8em;
    color: #74788d;
    word-break: break-all;
}

#ticketSidebar {
    border-left: 2px solid #e2e7f0;
    padding-left: 20px !important;
}

.ticket-admin-section {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #dde3ee;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ticket-admin-section:last-child {
    margin-bottom: 0;
}

.ticket-admin-section-title {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #93a0b4;
    margin-bottom: 10px;
}

.ticket-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    color: #595d6e;
    margin-bottom: 5px;
}

.ticket-info-row i {
    width: 16px;
    color: #93a0b4;
    flex-shrink: 0;
}

.ticket-credits-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fc;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ticket-credits-admin .credits-num {
    font-size: 1.6em;
    font-weight: 700;
    color: #5d78ff;
    line-height: 1;
}

.ticket-credits-admin .credits-label {
    font-size: 0.78em;
    color: #74788d;
}

.ticket-github-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ebedf2;
    border-radius: 6px;
    font-size: 0.88em;
    background: #fff;
}

.ticket-other-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f4f5fb;
    font-size: 0.85em;
}

.ticket-other-item:last-child { border-bottom: none; }

/* ticket status indicator (lista ticket) */
.tsi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.78em;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.tsi__icon  { font-size: 1.4em; }
.tsi__label { line-height: 1.2; }
.tsi--warning { background: #fff8e6; color: #c87d00; }
.tsi--info    { background: #eef2ff; color: #3d5af1; }
.tsi--success { background: #e6faf4; color: #0a8a62; }
.tsi--danger  { background: #fff0f3; color: #c0002e; }

/* ticket list cell */
.tkt-meta    { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.tkt-num     { font-size: 0.78em; color: #93a0b4; font-weight: 600; }
.tkt-type-badge { font-size: 0.7em !important; }
.tkt-title   { font-size: 0.97em; font-weight: 700; color: #3d4465; margin-bottom: 3px; }
.tkt-preview { font-size: 0.8em; color: #74788d; line-height: 1.4; margin-bottom: 3px; }
.tkt-user    { font-size: 0.78em; color: #93a0b4; margin-top: 2px; }

/* Help suggestions panel */
.help-suggestions-box {
    border: 1px solid rgba(93,120,255,0.2);
    border-radius: 6px;
    background: #f8f9ff;
    overflow: hidden;
}

.help-suggestions-header {
    padding: 9px 14px;
    font-weight: 600;
    font-size: 0.85em;
    color: #5d78ff;
    border-bottom: 1px solid rgba(93,120,255,0.12);
    background: rgba(93,120,255,0.05);
    display: flex;
    align-items: center;
    gap: 7px;
}

.help-suggestions-header .help-suggestions-hint {
    font-weight: 400;
    color: #93a0b4;
    font-size: 0.9em;
}

.help-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(93,120,255,0.07);
    transition: background 0.15s;
    text-decoration: none;
}

.help-suggestion-item:last-child { border-bottom: none; }

.help-suggestion-item:hover { background: rgba(93,120,255,0.06); text-decoration: none; }

.help-suggestion-item .help-suggestion-icon {
    color: #5d78ff;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.85em;
}

.help-suggestion-title {
    font-weight: 600;
    color: #434556;
    font-size: 0.88em;
    display: block;
}

.help-suggestion-item:hover .help-suggestion-title { color: #5d78ff; }

.help-suggestion-desc {
    font-size: 0.8em;
    color: #74788d;
    margin-top: 2px;
    line-height: 1.4;
    display: block;
}

/* ===== DASHBOARD ===== */

/* Abbonamento — header colorato */
.abb-card-header {
    background: linear-gradient(135deg, #b8bec7 0%, #8d96a3 100%);
    border-radius: 4px 4px 0 0;
    padding: 24px 28px 20px;
    margin: -20px -20px 20px -20px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.abb-card-header-info { flex: 1; }

.abb-card-header .abb-plan-label {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.abb-card-header .abb-plan-name {
    font-size: 1.9em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.abb-expiry-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.85em;
    font-weight: 500;
}

.abb-expiry-pill.is-expired  { background: rgba(253,57,122,0.35); }
.abb-expiry-pill.is-expiring { background: rgba(255,184,34,0.35); }

.abb-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.abb-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: #595d6e;
    border-bottom: 1px solid #f4f5fb;
    font-size: 0.92em;
}

.abb-feature-list li:last-child { border-bottom: none; }

.abb-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(93,120,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #5d78ff;
    font-size: 0.78em;
}

/* Aggiungi primo datore */
.abb-add-datore {
    text-align: center;
    padding: 16px 0 20px;
    cursor: pointer;
    border-top: 1px solid #ebedf2;
    margin-top: 8px;
}

.abb-add-datore-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(93,120,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3em;
    color: #5d78ff;
}

.abb-add-datore-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #48465b;
    margin-bottom: 4px;
}

.abb-add-datore-desc {
    font-size: 0.82em;
    color: #74788d;
    margin-bottom: 12px;
}

/* Statistiche */
.stat-widget-items {
    display: flex;
    margin-bottom: 20px;
}

.stat-widget-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-right: 1px solid #f4f5fb;
    border-radius: 6px;
}

.stat-widget-item:last-child { border-right: none; }

.stat-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.stat-icon-circle.brand   { background: rgba(93,120,255,0.1);  color: #5d78ff; }
.stat-icon-circle.success { background: rgba(10,187,135,0.1);  color: #0abb87; }
.stat-icon-circle.warning { background: rgba(255,184,34,0.1);  color: #ffb822; }

.stat-widget-number {
    font-size: 2em;
    font-weight: 700;
    color: #434556;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-widget-label {
    font-size: 0.72em;
    color: #93a0b4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
}

.stat-widget-links { display: flex; gap: 8px; }
.stat-widget-links .btn { flex: 1; font-size: 0.82em; }

/* Suggerimento */
.tip-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tip-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,184,34,0.12);
    color: #ffb822;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.tip-card-title {
    font-size: 1em;
    font-weight: 600;
    color: #434556;
    margin: 0;
    line-height: 1.3;
}

.tip-card-content {
    font-size: 0.9em;
    color: #74788d;
    line-height: 1.6;
}

.tip-card-footer { margin-top: 16px; text-align: right; }

/* Demo banner */
.demo-banner-header {
    background: linear-gradient(135deg, #5d78ff 0%, #3d5af1 100%);
    border-radius: 4px 4px 0 0;
    padding: 14px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.demo-banner-header-info { flex: 1; }

.demo-banner-label {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.demo-banner-title {
    font-size: 1.4em;
    font-weight: 700;
}

.demo-banner-expiry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8em;
}

.demo-banner-cta { flex-shrink: 0; }

.demo-banner-body {
    padding: 10px 20px;
    font-size: 0.93em;
    color: #3d4465;
    border-bottom: 1px solid #ebedf2;
}

.demo-banner-body p { margin-bottom: 4px; }
.demo-banner-body p:last-child { margin-bottom: 0; }

.demo-banner-actions {
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-action-card {
    flex: 1;
    min-width: 180px;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.demo-action-card > i {
    font-size: 1.6em;
    color: #5d78ff;
    margin-bottom: 4px;
}

.demo-action-card h4 {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
    color: #48465b;
}

.demo-action-card p {
    font-size: 0.82em;
    color: #74788d;
    margin: 0;
}

.demo-action-card .btn { margin-top: 8px; }

/* ===== CREDITI CONSULENZA ===== */

.cc-credits-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--t-pf, #f4f7ff);
    border: 1px solid var(--t-pb, #dde3f5);
    border-left: 4px solid var(--t-p, #5d78ff);
    border-radius: 8px;
    padding: 16px 20px;
}

.cc-credits-bar__icon {
    font-size: 2em;
    color: var(--t-p, #5d78ff);
    flex-shrink: 0;
}

.cc-credits-bar__body {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
}

.cc-credits-bar__count {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--t-p, #5d78ff);
    line-height: 1;
}

.cc-credits-bar__label {
    font-size: 0.9em;
    color: var(--t-p, #5d78ff);
    font-weight: 600;
}

.cc-credits-bar__desc {
    font-size: 0.85em;
    color: #74788d;
    border-left: 1px solid var(--t-pb, #dde3f5);
    padding-left: 20px;
}

.cc-pack-card {
    border: 2px solid #e2e7f0;
    border-radius: 12px;
    padding: 30px 24px 24px;
    text-align: center;
    position: relative;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cc-pack-card:hover {
    box-shadow: 0 6px 24px rgba(93,120,255,0.12);
    border-color: #b0bef8;
}

.cc-pack-card--featured {
    border-color: #5d78ff;
    box-shadow: 0 4px 20px rgba(93,120,255,0.15);
}

.cc-pack-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #5d78ff;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.cc-pack-card__icon {
    font-size: 2.4em;
    color: #5d78ff;
    margin-bottom: 10px;
}

.cc-pack-card__name {
    font-size: 1.1em;
    font-weight: 700;
    color: #3d4465;
    margin-bottom: 14px;
}

.cc-pack-card__credits {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.cc-pack-card__credits-num {
    font-size: 3.2em;
    font-weight: 800;
    color: #5d78ff;
    line-height: 1;
}

.cc-pack-card__credits-label {
    font-size: 1em;
    color: #74788d;
    font-weight: 600;
}

.cc-pack-card__price {
    font-size: 2em;
    font-weight: 800;
    color: #3d4465;
    margin: 12px 0;
    line-height: 1.1;
}

.cc-pack-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    font-size: 0.85em;
    color: #5a5e7a;
}

.cc-pack-card__features li {
    padding: 4px 0;
}

.cc-pack-card__features li i {
    color: #0abb87;
    margin-right: 6px;
}

.cc-pack-card__btn {
    margin-top: auto;
    margin-bottom: 12px;
    font-weight: 600;
}

.cc-pack-card__secure {
    font-size: 0.75em;
    color: #adb5bd;
}

.cc-pack-card__secure i {
    color: #0abb87;
}

/* ===== ABBONAMENTI ===== */

.abb-card {
    border: 2px solid #e2e7f0;
    border-radius: 12px;
    padding: 30px 22px 22px;
    text-align: center;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.abb-card:hover {
    box-shadow: 0 6px 24px rgba(93,120,255,0.1);
    border-color: #b0bef8;
}

.abb-card--featured {
    border-color: #5d78ff;
    box-shadow: 0 4px 20px rgba(93,120,255,0.15);
}

.abb-card--current {
    border-color: #0abb87;
    box-shadow: 0 4px 16px rgba(10,187,135,0.12);
}

.abb-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #5d78ff;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.abb-card__badge--current {
    background: #0abb87;
}

.abb-card__icon {
    font-size: 2em;
    color: #5d78ff;
    margin-bottom: 8px;
}

.abb-card--current .abb-card__icon { color: #0abb87; }

.abb-card__name {
    font-size: 1.2em;
    font-weight: 700;
    color: #3d4465;
    margin-bottom: 4px;
}

.abb-card__descr {
    font-size: 0.82em;
    color: #74788d;
}

.abb-card__price {
    font-size: 2em;
    font-weight: 800;
    color: #3d4465;
    margin: 12px 0;
    line-height: 1.1;
}

.abb-card__period {
    font-size: 0.45em;
    font-weight: 400;
    color: #74788d;
    vertical-align: middle;
}

.abb-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    font-size: 0.83em;
    color: #5a5e7a;
    flex: 1;
}

.abb-card__features li {
    padding: 7px 0;
    border-bottom: 1px solid #f4f5f8;
}

.abb-card__features li:last-child { border-bottom: none; }

.abb-card__features li i.fa-check { color: #0abb87; margin-right: 6px; width: 14px; }
.abb-card__features li i.fa-times { color: #fd397a; margin-right: 6px; width: 14px; }

.abb-card__feature--no { color: #b0b8c8; }

.abb-card__btn {
    font-weight: 600;
    margin-bottom: 10px;
}

.abb-card__secure {
    font-size: 0.72em;
    color: #adb5bd;
}

.abb-card__secure i { color: #0abb87; }

/* ===== PAYWAY ===== */

.pw-summary-box {
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.pw-summary-box__title {
    background: var(--t-pf, #f4f7ff);
    border-bottom: 1px solid #e2e7f0;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.9em;
    color: #3d4465;
}

.pw-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #f4f5f8;
    font-size: 0.88em;
}

.pw-summary-row:last-child { border-bottom: none; }

.pw-summary-row__label { color: #74788d; }
.pw-summary-row__value { font-weight: 600; color: #3d4465; }

.pw-summary-row--total {
    background: var(--t-pf, #f4f7ff);
}

.pw-summary-row__value--price {
    font-size: 1.2em;
    color: var(--t-p, #5d78ff);
    font-weight: 800;
}

.pw-summary-box__note {
    padding: 10px 18px;
    font-size: 0.78em;
    color: #74788d;
    border-top: 1px solid #e2e7f0;
    background: var(--t-pf, #fafbff);
}

.pw-secure-box {
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    padding: 16px 18px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.pw-secure-box__item {
    padding: 8px 0;
    font-size: 0.85em;
    color: #5a5e7a;
    border-bottom: 1px solid #f4f5f8;
    flex: 1;
    display: flex;
    align-items: center;
}

.pw-secure-box__item:last-child { border-bottom: none; }

.pw-secure-box__item i {
    color: #0abb87;
    width: 18px;
    margin-right: 6px;
    flex-shrink: 0;
}

.pw-method-group {
    margin-bottom: 24px;
}

.pw-method-group__title {
    font-size: 0.88em;
    font-weight: 700;
    color: #3d4465;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-method-group__badge {
    background: #0abb87;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.2px;
}

.pw-method-group__badge--slow {
    background: #ffb822;
    color: #111;
}

.pw-method-card {
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pw-method-card:hover {
    border-color: #5d78ff;
    box-shadow: 0 2px 12px rgba(93,120,255,0.1);
}

.pw-method-card--featured {
    border-color: #0abb87;
}

.pw-method-card__logo {
    text-align: center;
    margin-bottom: 12px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-method-card__logo img {
    max-height: 36px;
    max-width: 160px;
    object-fit: contain;
}

.pw-method-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pw-method-card__name {
    font-weight: 700;
    font-size: 0.9em;
    color: #3d4465;
}

.pw-method-card__time {
    font-size: 0.8em;
    color: #74788d;
    margin-top: 2px;
}

.pw-method-card__btn {
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

.pw-bank-details {
    border: 1px solid #e2e7f0;
    border-radius: 8px;
    overflow: hidden;
}

.pw-bank-row {
    display: flex;
    padding: 10px 16px;
    font-size: 0.87em;
    border-bottom: 1px solid #f4f5f8;
    gap: 20px;
}

.pw-bank-row:last-child { border-bottom: none; }

.pw-bank-row span {
    color: #74788d;
    min-width: 100px;
    flex-shrink: 0;
}

.pw-bank-row strong { color: #3d4465; word-break: break-all; }