/* =====================================================
   Platform Extras - CSS per nuove funzionalità ISDS
   ===================================================== */

/* ─────────────────────────────────────────────────────
   RICERCA LIVE GLOBALE
   ───────────────────────────────────────────────────── */
.tt-header-search-suggestion {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2e2e2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.search-suggestion-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    padding: 12px 18px !important;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-suggestion-item:hover {
    background: rgba(152,138,129,0.08);
    color: #fff;
}

.search-suggestion-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(152,138,129,0.1);
    border-radius: 8px;
    color: #988a81;
    font-size: 14px;
}

.search-suggestion-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.4;
}

.search-suggestion-type {
    flex-shrink: 0;
    font-size: 10px;
    color: #988a81;
    background: rgba(152,138,129,0.1);
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.search-suggestion-all {
    display: block;
    text-align: center;
    padding: 10px;
    color: #988a81;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background 0.15s;
}

.search-suggestion-all:hover {
    background: rgba(152,138,129,0.08);
}

/* ─────────────────────────────────────────────────────
   SALVATI (ex Preferiti)
   ───────────────────────────────────────────────────── */
.btn-favorite-toggle {
    transition: color 0.2s;
}

.btn-favorite-toggle.is-saved {
    color: #988a81 !important;
}

.btn-favorite-toggle.is-saved i {
    color: #988a81;
}

/* ─────────────────────────────────────────────────────
   SHARE OPTIONS ICON FIX
   ───────────────────────────────────────────────────── */
.tt-video-details__heading .right .share-options a,
.tt-video-details__heading .right .share-options a i,
.tt-video-details__heading .right .share-options a i::before {
    color: #ccc !important;
}
.tt-video-details__heading .right .share-options a:hover,
.tt-video-details__heading .right .share-options a:hover i,
.tt-video-details__heading .right .share-options a:hover i::before {
    color: #988a81 !important;
}

/* ─────────────────────────────────────────────────────
   NOTIFICATION POPUP POSITION FIX
   ───────────────────────────────────────────────────── */
.tt-notification-popup {
    right: 60px !important;
}

/* ─────────────────────────────────────────────────────
   VIDEO DETAILS - SIDEBAR TITLES
   ───────────────────────────────────────────────────── */
.tt-video-details__right-videos .tt-video__title,
.tt-video-details__right .tt-video__title,
.tt-video-horizontal .tt-video__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
}

.tt-video-details__right .tt-video-horizontal {
    overflow: hidden;
}

.tt-video-details__right .tt-video-horizontal > div:last-child {
    overflow: hidden;
    min-width: 0;
}

/* ─────────────────────────────────────────────────────
   CART DROPDOWN (HEADER)
   ───────────────────────────────────────────────────── */
.tt-cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #2e2e2e;
    border: 1px solid rgba(152,138,129,0.2);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
}
.tt-cart-dropdown.is-open {
    display: block;
    animation: cartDropIn 0.2s ease-out;
}
@keyframes cartDropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.tt-cart-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tt-cart-dropdown__header h6 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.tt-cart-dropdown__header span {
    color: #988a81;
    font-size: 12px;
}
.tt-cart-dropdown__items {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 0;
}
.tt-cart-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: background 0.15s;
}
.tt-cart-dropdown__item:hover {
    background: rgba(255,255,255,0.03);
}
.tt-cart-dropdown__item img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.tt-cart-dropdown__item-info {
    flex: 1;
    min-width: 0;
}
.tt-cart-dropdown__item-name {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-cart-dropdown__item-meta {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    margin-top: 2px;
}
.tt-cart-dropdown__item-price {
    color: #988a81;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.tt-cart-dropdown__empty {
    text-align: center;
    padding: 24px 16px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}
.tt-cart-dropdown__footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px;
}
.tt-cart-dropdown__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}
.tt-cart-dropdown__total strong {
    color: #fff;
    font-size: 16px;
}
.tt-cart-dropdown__btn {
    display: block;
    text-align: center;
    background: #988a81;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.tt-cart-dropdown__btn:hover {
    background: #8a7c73;
    color: #fff;
}

/* ─────────────────────────────────────────────────────
   SOCIAL LOGIN BUTTONS
   ───────────────────────────────────────────────────── */
.other-login-options .options .btn-social-login {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    text-decoration: none;
}
.other-login-options .options .btn-social-login:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.other-login-options .options .btn-social-login img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ─────────────────────────────────────────────────────
   SETTINGS - DETTAGLI AGGIUNTIVI
   ───────────────────────────────────────────────────── */
.tt-channel-customize-form select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    appearance: auto;
}

.tt-channel-customize-form select:focus {
    border-color: #988a81;
    outline: none;
}

.tt-channel-customize-form input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.tt-channel-customize-form input[type="date"]:focus {
    border-color: #988a81;
    outline: none;
}

.tt-channel-customize-form .row input,
.tt-channel-customize-form .row select {
    width: 100%;
}

/* ─────────────────────────────────────────────────────
   FORUM
   ───────────────────────────────────────────────────── */
.forum-topic-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.forum-topic-card:hover {
    border-color: rgba(152,138,129,0.3);
}

.forum-topic-card__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
}

.forum-topic-card__title:hover {
    color: #988a81;
}

.forum-topic-card__meta {
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-topic-card__category {
    background: rgba(152,138,129,0.15);
    color: #988a81;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-reply {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid rgba(255,255,255,0.1);
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 0 6px 6px 0;
}

.forum-reply.is-answer {
    border-left-color: #198754;
    background: rgba(25,135,84,0.05);
}

.forum-reply-locked {
    background: rgba(152,138,129,0.05);
    border: 1px dashed rgba(152,138,129,0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #999;
}

.forum-reply-locked i {
    font-size: 24px;
    color: #988a81;
    display: block;
    margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────
   TICKETS
   ───────────────────────────────────────────────────── */
.ticket-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticket-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ticket-status--open { background: #0d6efd; color: #fff; }
.ticket-status--in_progress { background: #ffc107; color: #2e2e2e; }
.ticket-status--resolved { background: #198754; color: #fff; }
.ticket-status--closed { background: #6c757d; color: #fff; }

/* ─────────────────────────────────────────────────────
   OUTFIT VALUATION
   ───────────────────────────────────────────────────── */
.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.outfit-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.outfit-card__img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.outfit-card__body {
    padding: 14px;
}

.outfit-card__feedback {
    background: rgba(25,135,84,0.1);
    border-left: 3px solid #198754;
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #ccc;
}

/* ─────────────────────────────────────────────────────
   INSPIRATIONS
   ───────────────────────────────────────────────────── */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.inspiration-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.inspiration-card:hover {
    transform: translateY(-2px);
    border-color: rgba(152,138,129,0.3);
}

.inspiration-card__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.inspiration-card__body {
    padding: 16px;
}

.inspiration-card__title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.inspiration-card__desc {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────
   PREMIUM LOCK
   ───────────────────────────────────────────────────── */
.premium-lock-banner {
    background: linear-gradient(135deg, rgba(152,138,129,0.1), rgba(152,138,129,0.02));
    border: 1px dashed rgba(152,138,129,0.3);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin: 16px 0;
}

.premium-lock-banner i {
    font-size: 32px;
    color: #988a81;
    display: block;
    margin-bottom: 10px;
}

.premium-lock-banner h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.premium-lock-banner p {
    color: #999;
    font-size: 13px;
    margin-bottom: 14px;
}

.premium-lock-banner a {
    display: inline-block;
    background: #988a81;
    color: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.premium-lock-banner a:hover {
    background: #8a7c73;
}

/* ─────────────────────────────────────────────────────
   SIDEBAR - Nuova struttura con sezioni
   ───────────────────────────────────────────────────── */
.tt-sidebar__section {
    padding: 18px 12px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.25);
}
.tt-sidebar__section span { display: inline-block; }

.tt-sidebar__divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 10px 20px;
}

/* Coming Soon pill nella sidebar */
.tt-sidebar-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(152,138,129,0.15);
    color: #988a81;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

/* Voci Coming Soon nella sidebar */
.tt-sidebar-coming-soon {
    opacity: 0.5;
    cursor: default;
}
.tt-sidebar-coming-soon:hover {
    opacity: 0.65;
}

/* Bottom links (feedback, admin) in profile area */
.tt-sidebar-bottom-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    color: rgba(255,255,255,0.4) !important;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}
.tt-sidebar-bottom-link:hover {
    color: rgba(255,255,255,0.7) !important;
    background: rgba(255,255,255,0.03);
}
.tt-sidebar-bottom-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: rgba(255,255,255,0.25);
}

@media (max-width: 991px) {
    .tt-sidebar__section { padding: 14px 16px 4px; }
    .tt-sidebar__divider { margin: 8px 16px; }
}

/* ─────────────────────────────────────────────────────
   HEADER - Hidden on desktop, mobile only
   ───────────────────────────────────────────────────── */
.tt-header--mobile-only { display: none !important; }
@media (max-width: 991px) {
    .tt-header--mobile-only {
        display: flex !important; align-items: center;
        justify-content: space-between; padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .tt-header--mobile-only.tt-header { gap: 8px; margin-bottom: 0 !important; padding-bottom: 10px !important; }
    .tt-header--mobile-only .header-logo { height: 32px !important; width: auto !important; }
}
.tt-header-icon-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 36px !important; height: 36px !important; border-radius: 50% !important;
    background: rgba(255,255,255,0.06) !important; border: none !important;
    color: rgba(255,255,255,0.5) !important; font-size: 15px !important;
    cursor: pointer; transition: all 0.2s; text-decoration: none; padding: 0 !important;
}
.tt-header-icon-btn:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; }

/* ─────────────────────────────────────────────────────
   SIDEBAR - Utilities + Profile bottom
   ───────────────────────────────────────────────────── */
.tt-sidebar { display: flex !important; flex-direction: column !important; }
.tt-sidebar__nav { flex: 1 !important; overflow-y: auto !important; }
.tt-sidebar__heading { display: flex; justify-content: space-between; align-items: center; }

.tt-sidebar__utils { display: flex; flex-direction: column; gap: 0; padding: 4px 0 8px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 4px; }
.tt-sidebar-util-btn {
    display: flex; align-items: center; gap: 12px; padding: 8px 12px;
    color: rgba(255,255,255,0.5); font-size: 14px; text-decoration: none;
    background: none; border: none; cursor: pointer; transition: all 0.15s; width: 100%; text-align: left;
}
.tt-sidebar-util-btn:hover { color: #fff; background: rgba(255,255,255,0.04); }
.tt-sidebar-util-btn i { font-size: 16px; width: 20px; text-align: center; }

.tt-sidebar-close-btn { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; padding: 4px; }
.tt-sidebar-close-btn:hover { color: #fff; }

/* Profile section (fixed bottom) */
.tt-sidebar__profile { padding: 8px 10px 12px; margin-top: auto; position: relative; }
.tt-sidebar-profile-toggle {
    display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
}
.tt-sidebar-profile-toggle:hover, .tt-sidebar-profile-toggle.open { background: rgba(255,255,255,0.05); }
.tt-sidebar-profile__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tt-sidebar-profile__name { flex: 1; color: #fff; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-sidebar-profile__arrow { color: rgba(255,255,255,0.3); font-size: 10px; transition: transform 0.2s; }
.tt-sidebar-profile-toggle.open .tt-sidebar-profile__arrow { transform: rotate(180deg); }

.tt-sidebar-profile-menu {
    display: none; position: fixed;
    background: #2e2e2e; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 8px 0; box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    z-index: 1000; min-width: 200px; white-space: nowrap;
}
.tt-sidebar-profile-menu.open { display: block; }

/* Mobile: menu inline dentro la sidebar, non popup */
@media (max-width: 991px) {
    .tt-sidebar-profile-menu {
        position: static !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 4px 0 !important;
        margin: 4px 0 0 !important;
        min-width: auto !important;
    }
    .tt-sidebar-profile-menu a {
        padding: 8px 12px !important;
        border-radius: 6px;
    }
    /* Sidebar mobile: layout lineare, no flex tricks */
    .tt-sidebar.active {
        display: block !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding-bottom: 20px !important;
    }
    .tt-sidebar__nav {
        overflow: visible !important;
        flex: none !important;
    }
    .tt-sidebar__profile {
        position: static !important;
        margin-top: 0 !important;
        flex-shrink: 0;
    }
}
.tt-sidebar-profile-menu a {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px;
    color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none;
    transition: all 0.15s;
}
.tt-sidebar-profile-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.tt-sidebar-profile-menu a i { font-size: 13px; width: 16px; text-align: center; color: rgba(255,255,255,0.3); }

.tt-sidebar-profile-guest { display: flex; gap: 8px; }
.tt-sidebar-profile-guest__btn {
    flex: 1; text-align: center; padding: 8px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; text-decoration: none; background: #988a81; color: #fff;
}
.tt-sidebar-profile-guest__btn:hover { background: #8a7c73; color: #fff; }
.tt-sidebar-profile-guest__btn--outline { background: transparent; border: 1px solid rgba(152,138,129,0.4); color: #988a81; }
.tt-sidebar-profile-guest__btn--outline:hover { background: rgba(152,138,129,0.1); color: #fff; }

/* Notification popup position */
.tt-notification-popup { right: auto !important; left: 260px !important; top: 80px !important; }
@media (max-width: 991px) {
    .tt-notification-popup { left: 12px !important; right: 12px !important; top: auto !important; width: auto !important; }
}

/* ─────────────────────────────────────────────────────
   PROFILO - Link rapidi
   ───────────────────────────────────────────────────── */
.tt-profile-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.tt-profile-quick-link:hover {
    background: rgba(152,138,129,0.15);
    border-color: rgba(152,138,129,0.3);
    color: #fff;
}
.tt-profile-quick-link i {
    color: #988a81;
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────
   VIDEO DETAILS PAGE - Complete redesign
   ───────────────────────────────────────────────────── */
.tt-vd-page { padding: 20px 0 40px; }
.tt-vd-layout { display: flex; gap: 24px; align-items: flex-start; }
.tt-vd-main { flex: 1; min-width: 0; }
.tt-vd-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 20px; }

/* Top info */
.tt-vd-topinfo { margin-bottom: 14px; }
.tt-vd-title { color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.tt-vd-desc { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }

/* Actions */
.tt-vd-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-vd-action {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; color: rgba(255,255,255,0.55); font-size: 12px; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.tt-vd-action:hover { background: rgba(255,255,255,0.1); color: #fff; }
.tt-vd-action--info { cursor: default; }
.tt-vd-action.is-saved { background: rgba(152,138,129,0.15); border-color: rgba(152,138,129,0.3); color: #988a81; }

/* Category dropdown */
.tt-vd-cat-dropdown { position: relative; }
.tt-vd-cat-dropdown__menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 50;
    background: #2e2e2e; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 8px 0; min-width: 180px; max-height: 240px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); margin-top: 6px;
}
.tt-vd-cat-dropdown.open .tt-vd-cat-dropdown__menu { display: block; }
.tt-vd-cat-dropdown__menu a {
    display: block; padding: 6px 14px; color: rgba(255,255,255,0.6); font-size: 13px;
    text-decoration: none; transition: background 0.15s;
}
.tt-vd-cat-dropdown__menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.tt-vd-cat-dropdown__menu a.active { color: #988a81; font-weight: 600; }

/* Player */
.tt-vd-player { margin-bottom: 14px; border-radius: 12px; overflow: hidden; }

/* Outfit */
.tt-vd-outfit { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.tt-vd-outfit h5 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.tt-vd-outfit__grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.tt-vd-outfit__item { flex-shrink: 0; width: 140px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.tt-vd-outfit__item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.tt-vd-outfit__info { padding: 8px; }
.tt-vd-outfit__info a { color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; display: block; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-vd-outfit__price { font-size: 13px; font-weight: 700; color: #988a81; }
.tt-vd-outfit__price .old { text-decoration: line-through; color: #666; font-weight: 400; font-size: 11px; }
.tt-vd-outfit__btn { margin-top: 4px; width: 100%; background: #988a81; color: #fff; border: none; padding: 5px; border-radius: 5px; font-size: 11px; cursor: pointer; }

/* Discussion tabs */
.tt-vd-discussion { margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 18px; }
.tt-vd-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.tt-vd-tab {
    padding: 10px 18px; background: none; border: none; border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.tt-vd-tab:hover { color: rgba(255,255,255,0.7); }
.tt-vd-tab.active { color: #fff; border-bottom-color: #988a81; }
.tt-vd-tab-content { display: none; }
.tt-vd-tab-content.active { display: block; }

/* Chat */
.tt-vd-chat-form {
    display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tt-vd-chat-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tt-vd-chat-form input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 8px 14px; color: #fff; font-size: 13px; outline: none;
}
.tt-vd-chat-form input:focus { border-color: rgba(152,138,129,0.4); }
.tt-vd-chat-form input::placeholder { color: rgba(255,255,255,0.3); }
.tt-vd-chat-form button {
    background: #988a81; color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.tt-vd-chat-messages { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; }
.tt-vd-chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.tt-vd-chat-msg > div { flex: 1; min-width: 0; }
.tt-vd-chat-msg__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tt-vd-chat-msg__head strong { color: #fff; font-size: 13px; }
.tt-vd-chat-msg__head span { color: rgba(255,255,255,0.3); font-size: 11px; }
.tt-vd-chat-msg p { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.5; margin: 0; }

/* Notes */
.tt-vd-notes textarea {
    width: 100%; min-height: 150px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 14px; color: #fff; font-size: 13px; line-height: 1.6; resize: vertical; outline: none;
}
.tt-vd-notes textarea:focus { border-color: rgba(152,138,129,0.3); }
.tt-vd-notes textarea::placeholder { color: rgba(255,255,255,0.25); }
.tt-vd-notes__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.tt-vd-notes__save {
    background: #988a81; color: #fff; border: none; padding: 6px 16px; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer;
}

/* Sidebar */
.tt-vd-sidebar-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none;
    margin-bottom: 16px; transition: all 0.2s;
}
.tt-vd-sidebar-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.tt-vd-related h6 { color: rgba(255,255,255,0.5); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

/* Sidebar modules */
.tt-vd-module { border-bottom: 1px solid rgba(255,255,255,0.05); }
.tt-vd-module__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; cursor: pointer; transition: color 0.15s;
}
.tt-vd-module__header strong { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; }
.tt-vd-module__header span { color: rgba(255,255,255,0.3); font-size: 12px; }
.tt-vd-module__header:hover strong { color: #fff; }
.tt-vd-module__body { display: none; padding-bottom: 8px; }
.tt-vd-module.open .tt-vd-module__body { display: block; }
.tt-vd-module.open .tt-vd-module__header i { transform: rotate(180deg); }
.tt-vd-module__header i { transition: transform 0.2s; }

/* Active video highlight */
.tt-vd-related__item--active {
    background: rgba(152,138,129,0.12) !important;
    border-left: 3px solid #988a81;
    padding-left: 10px !important;
}
.tt-vd-related__item {
    display: flex; gap: 10px; padding: 8px 0; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04); transition: opacity 0.15s;
}
.tt-vd-related__item:hover { opacity: 0.8; }
.tt-vd-related__item img { width: 80px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.tt-vd-related__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: #ccc; font-size: 13px; line-height: 1.3;
}
.tt-vd-related__duration { color: rgba(255,255,255,0.35); font-size: 11px; display: block; margin-top: 2px; }

@media (max-width: 991px) {
    .tt-vd-layout { flex-direction: column; }
    .tt-vd-sidebar { width: 100%; position: static; }
}
@media (max-width: 767px) {
    .tt-vd-title { font-size: 17px; }
    .tt-vd-actions { gap: 4px; }
    .tt-vd-action { padding: 4px 8px; font-size: 11px; }
    .tt-vd-tab { padding: 8px 12px; font-size: 12px; }
}

/* Pulsante Riprendi il corso */
.tt-btn-resume-course {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #988a81;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.tt-btn-resume-course:hover {
    background: #8a7c73;
    color: #fff;
}
.tt-btn-resume-course i {
    font-size: 12px;
}

@media (max-width: 767px) {
    .tt-video-details__actions {
        gap: 6px;
    }
    .tt-video-action-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* ─────────────────────────────────────────────────────
   SEARCH MODAL - Full Page
   ───────────────────────────────────────────────────── */
.tt-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30,30,30,0.97);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 0;
}
.tt-search-modal.is-open {
    display: flex;
    flex-direction: column;
    animation: searchModalIn 0.2s ease-out;
}
@keyframes searchModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tt-search-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.tt-search-modal__input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 18px;
}
.tt-search-modal__input-wrapper i {
    color: rgba(255,255,255,0.3);
    font-size: 18px;
    flex-shrink: 0;
}
.tt-search-modal__input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
}
.tt-search-modal__input-wrapper input::placeholder {
    color: rgba(255,255,255,0.3);
}

.tt-search-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.tt-search-modal__close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.tt-search-modal__pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.tt-search-modal__pill {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(152,138,129,0.1);
    border: 1px solid rgba(152,138,129,0.15);
    border-radius: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.tt-search-modal__pill:hover {
    background: rgba(152,138,129,0.25);
    color: #fff;
}

.tt-search-modal__results {
    flex: 1;
    padding: 20px 32px;
    overflow-y: auto;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.tt-search-modal__empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.35);
    font-size: 15px;
}

.tt-search-modal__loading {
    text-align: center;
    padding: 40px;
}

.tt-search-modal__group {
    margin-bottom: 24px;
}
.tt-search-modal__group-title {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tt-search-modal__group-title i {
    font-size: 12px;
    color: #988a81;
}

.tt-search-modal__result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #ccc;
    transition: background 0.15s;
}
.tt-search-modal__result:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.tt-search-modal__result-img {
    width: 100px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.tt-search-modal__result-icon {
    width: 100px;
    height: 64px;
    border-radius: 8px;
    background: rgba(152,138,129,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #988a81;
    font-size: 18px;
}
.tt-search-modal__result-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-search-modal__view-all {
    display: block;
    text-align: center;
    padding: 14px;
    color: #988a81;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
    transition: color 0.2s;
}
.tt-search-modal__view-all:hover {
    color: #fff;
}

/* ─────────────────────────────────────────────────────
   HOME PAGE - Learnn Style
   ───────────────────────────────────────────────────── */
.tt-home-pills {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tt-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.tt-home-pill:hover {
    background: rgba(152,138,129,0.15);
    border-color: rgba(152,138,129,0.3);
    color: #fff;
}
.tt-home-pill i {
    font-size: 13px;
    color: #988a81;
}

.tt-home-section {
    margin-bottom: 32px;
}

/* Video cards (smaller) */
.tt-home-video-card--sm .tt-home-video-card__thumb {
    aspect-ratio: 16/9;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}
.tt-home-video-card--sm .tt-home-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.tt-home-video-card--sm:hover .tt-home-video-card__thumb img {
    transform: scale(1.03);
}
.tt-home-video-card__time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.tt-home-video-card__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.5);
}
.tt-home-video-card__progress > div {
    height: 100%;
    border-radius: 0 2px 2px 0;
}
.tt-home-video-card__body {
    padding: 8px 2px 0;
}
.tt-home-video-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}
.tt-home-video-card__title:hover {
    color: #988a81;
}
.tt-home-video-card__meta {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}
.tt-home-video-card__meta span + span {
    margin-left: 2px;
}

/* Slider navigation */
.tt-home-slider-nav {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}
.tt-home-slider-nav button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tt-home-slider-nav button:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* Course cards */
.tt-home-course-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(152,138,129,0.04);
    border: 1px solid rgba(152,138,129,0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.tt-home-course-card:hover {
    background: rgba(152,138,129,0.1);
    border-color: rgba(152,138,129,0.25);
}
.tt-home-course-card__icon {
    width: 40px;
    height: 40px;
    background: rgba(152,138,129,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tt-home-course-card__icon i {
    font-size: 18px;
    color: #988a81;
}
.tt-home-course-card__title {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.tt-home-course-card__count {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* CTA */
.tt-home-cta {
    margin: 32px 0;
    padding: 36px 28px;
    background: linear-gradient(135deg, rgba(152,138,129,0.1), rgba(152,138,129,0.03));
    border: 1px solid rgba(152,138,129,0.15);
    border-radius: 14px;
    text-align: center;
}
.tt-home-cta h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tt-home-cta p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.tt-home-cta__btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.tt-home-cta__btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.tt-home-cta__btn--primary {
    background: #988a81;
    color: #fff;
}
.tt-home-cta__btn--outline {
    background: transparent;
    color: #988a81;
    border: 1px solid rgba(152,138,129,0.4);
}

/* Blog cards */
.tt-home-blog-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}
.tt-home-blog-card:hover {
    border-color: rgba(152,138,129,0.25);
}
.tt-home-blog-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.tt-home-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.tt-home-blog-card:hover .tt-home-blog-card__img img {
    transform: scale(1.03);
}
.tt-home-blog-card__body {
    padding: 14px;
}
.tt-home-blog-card__body h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-home-blog-card__body span {
    color: #988a81;
    font-size: 11px;
}

/* ─────────────────────────────────────────────────────
   PAGINA SALVATI (Learnn-style)
   ───────────────────────────────────────────────────── */
.tt-salvati-page {
    padding: 0 0 40px;
}
.tt-salvati-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tt-salvati-tab {
    padding: 12px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.tt-salvati-tab:hover {
    color: rgba(255,255,255,0.7);
}
.tt-salvati-tab.active {
    color: #fff;
    border-bottom-color: #988a81;
    font-weight: 600;
}

/* Hero card (primo corso in corso) */
.tt-salvati-hero {
    display: flex;
    gap: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
}
.tt-salvati-hero__img {
    flex-shrink: 0;
    width: 320px;
}
.tt-salvati-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tt-salvati-hero__body {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tt-salvati-hero__body h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tt-salvati-hero__cat {
    color: #988a81;
    font-size: 13px;
    margin-bottom: 6px;
}
.tt-salvati-hero__desc {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.tt-salvati-hero__progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tt-salvati-hero__progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}
.tt-salvati-hero__progress-bar > div {
    height: 100%;
    background: #988a81;
    border-radius: 3px;
}
.tt-salvati-hero__progress span {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* Grid per video salvati */
.tt-salvati-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Empty state */
.tt-salvati-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
}
.tt-salvati-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}
.tt-salvati-empty h5 {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin-bottom: 6px;
}
.tt-salvati-empty p {
    font-size: 13px;
    max-width: 300px;
    margin: 0 auto;
}

/* Coming Soon tabs */
.tt-salvati-coming-soon {
    text-align: center;
    padding: 60px 20px;
}
.tt-salvati-coming-soon__icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.tt-salvati-coming-soon h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}
.tt-salvati-coming-soon p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

/* Path card in Salvati */
.tt-salvati-path-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.tt-salvati-path-card:hover {
    border-color: rgba(152,138,129,0.25);
}
.tt-salvati-path-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.tt-salvati-path-card__body {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .tt-salvati-hero {
        flex-direction: column;
    }
    .tt-salvati-hero__img {
        width: 100%;
        aspect-ratio: 16/9;
    }
    .tt-salvati-hero__body {
        padding: 16px;
    }
    .tt-salvati-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .tt-salvati-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Mobile full-screen */
@media (max-width: 767px) {
    .tt-search-modal__header {
        padding: 12px 16px;
    }
    .tt-search-modal__input-wrapper {
        padding: 10px 14px;
    }
    .tt-search-modal__input-wrapper input {
        font-size: 15px;
    }
    .tt-search-modal__pills {
        padding: 12px 16px;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .tt-search-modal__results {
        padding: 16px;
    }
    .tt-search-modal__result-img {
        width: 72px;
        height: 48px;
    }
    .tt-search-modal__result-title {
        font-size: 14px;
    }
}

/* ─────────────────────────────────────────────────────
   PERCORSI PAGE - Journey Style
   ───────────────────────────────────────────────────── */
.tt-percorsi-page {
    padding: 0 0 40px;
}
.tt-percorsi-header {
    text-align: center;
    padding: 32px 20px 32px;
}
.tt-percorsi-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tt-percorsi-header p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Journey timeline */
.tt-percorsi-journey {
    max-width: 700px;
    margin: 0 auto;
}
.tt-journey-step {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}
.tt-journey-step__indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}
.tt-journey-step__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 1;
}
.tt-journey-step__line {
    width: 2px;
    flex: 1;
    min-height: 20px;
}
.tt-journey-step__content {
    flex: 1;
    padding-bottom: 32px;
    min-width: 0;
}
.tt-journey-step__header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}
.tt-journey-step__header p {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.tt-journey-level-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress bar */
.tt-journey-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.tt-journey-progress__bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.tt-journey-progress__bar > div {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.tt-journey-progress span {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    flex-shrink: 0;
}

/* Items list */
.tt-journey-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}
.tt-journey-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #ccc;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tt-journey-item:last-child {
    border-bottom: none;
}
.tt-journey-item:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.tt-journey-item--done {
    opacity: 0.6;
}
.tt-journey-item--done .tt-journey-item__title {
    text-decoration: line-through;
    text-decoration-color: rgba(255,255,255,0.2);
}
.tt-journey-item__check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tt-journey-item__circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
}
.tt-journey-item__thumb {
    width: 56px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.tt-journey-item__icon {
    width: 56px;
    height: 36px;
    border-radius: 6px;
    background: rgba(152,138,129,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #988a81;
    font-size: 14px;
}
.tt-journey-item__info {
    flex: 1;
    min-width: 0;
}
.tt-journey-item__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tt-journey-item__type {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

/* Badge completamento (stile Spotify Wrapped) */
.tt-journey-badge {
    margin-top: 16px;
    text-align: center;
}
.tt-journey-badge__card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 24px;
    overflow: hidden;
}
.tt-journey-badge__glow {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}
.tt-journey-badge__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    position: relative;
}
.tt-journey-badge__card h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
}
.tt-journey-badge__card p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 4px;
    position: relative;
}
.tt-journey-badge__date {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    position: relative;
}
.tt-journey-badge__brand {
    margin-top: 16px;
    color: rgba(255,255,255,0.15);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}
.tt-journey-badge__share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: #988a81;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tt-journey-badge__share:hover {
    background: #8a7c73;
}

/* Path cards within a level */
.tt-journey-path-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
}
.tt-journey-path-card--completed {
    border-color: rgba(25,135,84,0.2);
}
.tt-journey-path-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.tt-journey-path-card__header h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.tt-journey-path-card__desc {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-bottom: 10px;
}

/* Thumbnail con progress bar */
.tt-journey-item__thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
}
.tt-journey-item__thumb-wrap .tt-journey-item__thumb {
    width: 100%;
    height: 100%;
}
.tt-journey-item__vidprogress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.5);
}
.tt-journey-item__vidprogress > div {
    height: 100%;
    border-radius: 0 2px 2px 0;
}

@media (max-width: 767px) {
    .tt-journey-step {
        gap: 14px;
    }
    .tt-journey-step__indicator {
        width: 30px;
    }
    .tt-journey-step__dot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .tt-journey-step__header h3 {
        font-size: 17px;
    }
    .tt-journey-item {
        padding: 8px 10px;
        gap: 8px;
    }
    .tt-journey-item__thumb,
    .tt-journey-item__thumb-wrap {
        width: 44px;
        height: 28px;
    }
    .tt-journey-path-card {
        padding: 14px;
    }
}

/* ─────────────────────────────────────────────────────
   RISORSE PAGE
   ───────────────────────────────────────────────────── */
.tt-risorse-page {
    padding: 0 0 40px;
}
.tt-risorse-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tt-risorse-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 20px;
}
.tt-risorse-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.tt-risorse-cat-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.tt-risorse-cat-pill:hover {
    background: rgba(152,138,129,0.15);
    color: #fff;
}
.tt-risorse-cat-pill.active {
    background: rgba(152,138,129,0.2);
    border-color: rgba(152,138,129,0.4);
    color: #fff;
    font-weight: 600;
}

.tt-risorse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.tt-risorse-card {
    display: block;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.tt-risorse-card:hover {
    border-color: rgba(152,138,129,0.25);
    transform: translateY(-2px);
}
.tt-risorse-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.tt-risorse-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.tt-risorse-card:hover .tt-risorse-card__img img {
    transform: scale(1.03);
}
.tt-risorse-card__body {
    padding: 16px;
}
.tt-risorse-card__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #988a81;
    margin-bottom: 6px;
}
.tt-risorse-card__body h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-risorse-card__body p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-risorse-card__meta {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

@media (max-width: 767px) {
    .tt-risorse-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .tt-risorse-cat-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    .tt-risorse-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────
   CONSULENZE PAGE
   ───────────────────────────────────────────────────── */
.tt-consulenze-page {
    padding: 0 0 40px;
}
.tt-consulenze-header {
    text-align: center;
    padding: 32px 20px 24px;
}
.tt-consulenze-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tt-consulenze-header p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}

.tt-consulenze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.tt-consulenza-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}
.tt-consulenza-card:hover {
    border-color: rgba(152,138,129,0.25);
}
.tt-consulenza-card--premium {
    border-color: rgba(152,138,129,0.3);
    background: linear-gradient(135deg, rgba(152,138,129,0.06), rgba(152,138,129,0.02));
}
.tt-consulenza-card__premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #988a81;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tt-consulenza-card__icon {
    margin-bottom: 16px;
}
.tt-consulenza-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tt-consulenza-card > p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.tt-consulenza-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}
.tt-consulenza-card__features li {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.tt-consulenza-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #988a81;
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────
   PARTNER PAGE
   ───────────────────────────────────────────────────── */
.tt-partner-page {
    padding: 0 0 40px;
}
.tt-partner-header {
    text-align: center;
    padding: 32px 20px 24px;
}
.tt-partner-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tt-partner-header p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}

.tt-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.tt-partner-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.2s;
}
.tt-partner-card:hover {
    border-color: rgba(152,138,129,0.25);
}
.tt-partner-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(152,138,129,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}
.tt-partner-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.tt-partner-card h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tt-partner-card__tag {
    display: inline-block;
    font-size: 11px;
    color: #988a81;
    margin-bottom: 8px;
}
.tt-partner-card p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Mappa Partner */
.tt-partner-map-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.tt-partner-map-section h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tt-partner-map-section p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 20px;
}
.tt-partner-map {
    width: 100%;
    height: 400px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 767px) {
    .tt-partner-map {
        height: 280px;
    }
}

/* ─────────────────────────────────────────────────────
   EVENTI PAGE
   ───────────────────────────────────────────────────── */
.tt-eventi-page {
    padding: 0 0 40px;
}
.tt-eventi-header {
    text-align: center;
    padding: 32px 20px 24px;
}
.tt-eventi-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tt-eventi-header p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────
   MOBILE RESPONSIVENESS FIXES
   ───────────────────────────────────────────────────── */

/* Compensare la mobile nav fissa in fondo */
@media (max-width: 767px) {
    .tt-container__right {
        padding-bottom: 70px;
    }
}

/* Sidebar overlay su mobile */
@media (max-width: 991px) {
    .tt-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }
    .tt-sidebar {
        z-index: 101 !important;
    }
}

/* Search modal sopra tutto */
.tt-search-modal {
    z-index: 9999;
}

/* Fix header minimale che non conflitti con vecchi stili */
.tt-header--minimal .tt-header__search-wrapper,
.tt-header--minimal .tt-header__search {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none !important;
    display: none !important;
}

/* Home pills scroll su mobile */
@media (max-width: 767px) {
    .tt-home-pills {
        padding: 12px 0;
        gap: 8px;
    }
    .tt-home-pill {
        padding: 7px 14px;
        font-size: 12px;
    }
    .tt-home-section {
        margin-bottom: 24px;
    }
}

/* Consulenze cards stack su mobile */
@media (max-width: 767px) {
    .tt-consulenze-grid {
        grid-template-columns: 1fr;
    }
    .tt-partner-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────
   PAGINE LEGALI
   ───────────────────────────────────────────────────── */
.tt-legal-page {
    padding: 8px 0 40px;
    max-width: 800px;
}
.tt-legal-page h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tt-legal-page h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}
.tt-legal-page h3 {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
}
.tt-legal-page h4 {
    color: #988a81;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
}
.tt-legal-page p {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
}
.tt-legal-page ul {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.7;
    padding-left: 20px;
    margin-bottom: 12px;
}
.tt-legal-page li {
    margin-bottom: 4px;
}
.tt-legal-page a {
    color: #988a81;
}
.tt-legal-page a:hover {
    color: #fff;
}
.tt-legal-table {
    overflow-x: auto;
    margin: 12px 0;
}
.tt-legal-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.tt-legal-table th,
.tt-legal-table td {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}
.tt-legal-table th {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────
   FOOTER OVERRIDE - rimuovere decorazioni template
   ───────────────────────────────────────────────────── */
.tt-container__right .tt-footer {
    margin: 0 !important;
    margin-top: auto !important;
}
.tt-footer::before,
.tt-footer::after {
    display: none !important;
    content: none !important;
}
.tt-footer {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    padding-top: 40px !important;
    padding-bottom: 0 !important;
}
.tt-footer * {
    background-image: none !important;
}
.tt-footer-bottom-copyright,
.tt-footer-bottom-links {
    clip-path: none !important;
}
.tt-footer-bottom-side {
    background-color: transparent !important;
    padding: 8px 0 !important;
}
.tt-footer-bottom-side a {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px;
}
.tt-footer-bottom-side a:hover {
    color: #988a81 !important;
}
.tt-footer-bottom .row {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.tt-footer-bottom-copyright {
    color: rgba(255,255,255,0.35) !important;
    font-size: 12px !important;
    text-align: left !important;
}
.tt-footer-socials {
    margin-bottom: 20px !important;
}
.tt-footer-socials a {
    border-color: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.5) !important;
    width: 40px !important;
}
.tt-footer-socials a::before {
    display: none !important;
}
.tt-footer-socials a:hover {
    border-color: #988a81 !important;
    color: #988a81 !important;
}
.tt-footer-top__links {
    margin-top: 14px !important;
}
.tt-footer-top__links a {
    color: rgba(255,255,255,0.6) !important;
    font-size: 14px;
}
.tt-footer-top__links a:hover {
    color: #fff !important;
}

/* ─────────────────────────────────────────────────────
   HOMEPAGE OVERRIDES - fix template conflicts
   ───────────────────────────────────────────────────── */
/* Section heading fix per dark mode */
.dark-mode .tt-section-heading {
    color: #fff !important;
}
.dark-mode .tt-section-title {
    color: #fff !important;
}
.dark-mode .tt-section-heading__btn {
    background-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
}
.dark-mode .tt-section-heading__btn:hover {
    background-color: rgba(152,138,129,0.15) !important;
    color: #fff !important;
}

/* Forza il search modal nascosto */
.tt-search-modal:not(.is-open) {
    display: none !important;
}

/* Home section spacing */
.tt-home-section .tt-section-heading {
    margin-bottom: 16px !important;
}

/* Fix Swiper slides per home carousels */
.tt-home-continue-slider .swiper-slide,
.tt-home-videos-slider .swiper-slide {
    width: auto;
}

/* Override video time badge dal template */
.tt-home-video-card__time {
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    background: rgba(0,0,0,0.75) !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    z-index: 2;
}

/* ─────────────────────────────────────────────────────
   PROFILO PUBBLICO (/channel/username)
   ───────────────────────────────────────────────────── */
.tt-profile-page {
    padding: 0 0 40px;
}

/* Banner */
.tt-profile-banner {
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(152,138,129,0.15), rgba(152,138,129,0.05));
    margin-bottom: -50px;
}
.tt-profile-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tt-profile-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5));
}

/* Info utente */
.tt-profile-info {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 16px;
    flex-wrap: wrap;
}
.tt-profile-avatar {
    flex-shrink: 0;
}
.tt-profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #2e2e2e;
    object-fit: cover;
    background: #2e2e2e;
}
.tt-profile-details {
    flex: 1;
    min-width: 200px;
    padding-top: 16px;
}
.tt-profile-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 2px;
}
.tt-profile-username {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}
.tt-profile-bio {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 500px;
}
.tt-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}
.tt-profile-meta i {
    font-size: 12px;
    margin-right: 4px;
    color: #988a81;
}
.tt-profile-meta__link {
    color: #988a81 !important;
    text-decoration: none;
}
.tt-profile-meta__link:hover {
    color: #fff !important;
}
.tt-profile-socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.tt-profile-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.tt-profile-socials a:hover {
    background: rgba(152,138,129,0.2);
    color: #fff;
}
.tt-profile-actions {
    padding-top: 20px;
}

/* Statistiche */
.tt-profile-stats {
    display: flex;
    gap: 0;
    margin: 24px 0;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
}
.tt-profile-stat {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.tt-profile-stat:last-child {
    border-right: none;
}
.tt-profile-stat strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.tt-profile-stat span {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* Sezioni */
.tt-profile-section {
    margin-bottom: 28px;
}
.tt-profile-section__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Badge */
.tt-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tt-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.tt-profile-badge__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #988a81;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #988a81;
    font-size: 16px;
    flex-shrink: 0;
}
.tt-profile-badge strong {
    display: block;
    color: #fff;
    font-size: 13px;
}
.tt-profile-badge span {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

@media (max-width: 767px) {
    .tt-profile-banner {
        height: 120px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }
    .tt-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .tt-profile-avatar img {
        width: 80px;
        height: 80px;
    }
    .tt-profile-details {
        padding-top: 0;
    }
    .tt-profile-meta {
        justify-content: center;
    }
    .tt-profile-socials {
        justify-content: center;
    }
    .tt-profile-bio {
        max-width: 100%;
    }
    .tt-profile-stats {
        flex-wrap: wrap;
    }
    .tt-profile-stat {
        flex: 1 1 33%;
    }
}
