﻿/* =========================================================
   ROOT / THEME
========================================================= */
:root {
    --bg: #EEF6F6;
    --card: #FFFFFF;
    --text: #121826;
    --muted: #6B7280;
    --line: rgba(17,24,39,.08);
    --shadow: 0 10px 30px rgba(17,24,39,.10);
    --shadow-soft: 0 8px 18px rgba(17,24,39,.08);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --pill: rgba(246,182,166,.92);
    --accent: #FF8A6A;
    --accent-600: #FF7A57;
    --accent-soft: rgba(255,138,106,.18);
    --green-soft: #DFF7EA;
    --green-text: #137A4B;
    --blue-soft: #DFF0FF;
    --blue-text: #1166C2;
}

/* =========================================================
   RESET / BASE
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* evita zoom input iOS */
input, textarea, select {
    font-size: 16px;
}

/* =========================================================
   APP WRAPPER
========================================================= */
.app-bg {
    background: var(--bg);
}

.app-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 16px env(safe-area-inset-bottom);
}

/* spazio per bottom nav */
.pb-nav {
    padding-bottom: 120px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
.app-h1 {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.4px;
    margin: 0;
}

.app-h2 {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.2px;
    margin: 0;
}

.text-muted {
    color: var(--muted) !important;
}

/* =========================================================
   HORIZONTAL SCROLL (touch) + hidden scrollbar
========================================================= */
.scroll-x {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* IMPORTANT: niente a capo */
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto; /* scroll vero */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x; /* IMPORTANT: swipe orizzontale */
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox hide */
    padding: 6px 2px 10px; /* +altezza utile per outline/ombra */
    margin: 0 -2px; /* recupera il padding laterale */
}

    .scroll-x::-webkit-scrollbar {
        display: none; /* Chrome/Safari hide */
    }

    /* IMPORTANT: ogni item non deve restringersi */
    .scroll-x > * {
        flex: 0 0 auto; /* IMPORTANT: forza overflow */
    }

    .scroll-x.is-dragging {
        cursor: grabbing;
    }

.scroll-x {
    cursor: grab;
    user-select: none; /* evita selezione testo mentre trascini */
}

/* =========================================================
   BRAND TOP BAR (BLU FUNSPORT)
========================================================= */
.brand-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient( 135deg, var(--primary), var(--primary-600) ); /* BLU BRAND */
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* separazione elegante dal contenuto */
    box-shadow: 0 6px 18px rgba(17,24,39,.12);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

/* Logo bianco */
.brand-logo {
    height: 32px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* sicurezza se SVG non è puro bianco */
}

/* Spazio tra brand bar e header */
.brand-bar + header {
    margin-top: 14px;
}

/* =========================================================
   CATEGORY CARDS
========================================================= */
.cat-card {
    width: 110px;
    flex: 0 0 auto;
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .cat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.cat-ic {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(255,255,255,.7);
}

.cat-name {
    margin-top: 10px;
    font-weight: 700;
    font-size: 14px;
}

/* colori soft */
.cat-purple {
    background: #EFE6FF;
}

.cat-lilac {
    background: #ECECFF;
}

.cat-green {
    background: #E4F7EF;
}

.cat-blue {
    background: #E6F2FF;
}

/* =========================================================
   POINT CHIPS
========================================================= */
.chip {
    border: 0;
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 800;
    font-size: 13px;
    color: #FFF;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .chip:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.chip-1,
.chip-2,
.chip-3,
.chip-4 {
    background: var(--accent);
}

/* =========================================================
   ACTIVITY CARDS
========================================================= */
.activity-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .activity-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.activity-title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

/* thumbnail */
.thumb {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 30% 20%, rgba(0,0,0,.07), transparent 45%), radial-gradient(circle at 65% 70%, rgba(0,0,0,.06), transparent 52%), linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.01));
}

/* =========================================================
   BADGES
========================================================= */
.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.badge-green {
    background: var(--green-soft);
    color: var(--green-text);
}

.badge-blue {
    background: var(--blue-soft);
    color: var(--blue-text);
}

/* =========================================================
   SEARCH BAR (per pagina lista)
========================================================= */
.search-bar {
    background: var(--card);
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

    .search-bar input {
        border: 0;
        outline: 0;
        width: 100%;
        font-weight: 600;
    }

/* =========================================================
   CALENDAR STRIP
========================================================= */
.day-chip {
    width: 54px;
    padding: 10px 0;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    box-shadow: var(--shadow-soft);
}

    .day-chip.active {
        background: var(--accent);
    }

/* =========================================================
   BOTTOM NAV PILL
========================================================= */
.bottom-pill {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    width: min(520px, calc(100vw - 26px));
    background: var(--pill);
    border-radius: 26px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.pill-btn {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    border: 0;
    background: transparent;
    font-size: 18px;
    opacity: .85;
    transition: background .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.pill-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pill-ic {
    font-size: 18px;
    line-height: 1;
}

.pill-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2px;
    opacity: .7;
}

.pill-btn.is-active .pill-label {
    opacity: 1;
}

.pill-btn.is-active .pill-ic {
    transform: scale(1.05);
}

.pill-btn.is-active {
    background: rgba(255,255,255,.55);
    box-shadow: 0 8px 18px rgba(17,24,39,.10);
    opacity: 1;
}

/* =========================================================
   PROFILE
========================================================= */

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--primary-soft, rgba(0,0,0,.05));
    display: grid;
    place-items: center;
    font-size: 26px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    margin-bottom: 12px;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .profile-item:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.profile-ic {
    font-size: 18px;
}

.profile-chevron {
    font-size: 18px;
    opacity: .4;
}

/* logout specific */
.profile-logout {
    background: #fff;
    border: 1px solid rgba(255,0,0,.15);
    color: #c0392b;
}

    .profile-logout .profile-ic {
        opacity: .9;
    }

/* =========================================================
   TABS SOFT
========================================================= */

/* Tabs soft (Bootstrap nav-link) */
.tabs-soft {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,.55);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 6px;
    box-shadow: var(--shadow-soft);
}

    .tabs-soft .nav-item {
        flex: 1;
    }

.tab-soft {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    padding: 10px 0;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    color: var(--muted) !important;
    transition: .15s ease;
}

    .tab-soft.active {
        background: var(--card) !important;
        color: var(--text) !important;
        box-shadow: 0 8px 18px rgba(17,24,39,.08);
    }


/* =========================================================
   BOOKINGS
========================================================= */
.booking-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .booking-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.booking-title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.booking-thumb {
    width: 74px;
    height: 74px;
    border-radius: 18px;
}

/* status pills */
.status-pill {
    font-size: 11px;
    font-weight: 900;
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-confirmed {
    background: var(--green-soft);
    color: var(--green-text);
}

.status-waiting {
    background: var(--blue-soft);
    color: var(--blue-text);
}

.status-cancelled {
    background: rgba(255,0,0,.10);
    color: #c0392b;
}

/* empty state */
.empty-state {
    text-align: center;
    background: rgba(255,255,255,.55);
    border: 1px dashed rgba(17,24,39,.18);
    border-radius: var(--radius-xl);
    padding: 18px;
}

.empty-ic {
    font-size: 30px;
}

/* =========================================================
   AVATAR UPLOAD
========================================================= */
.avatar-wrap {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background: rgba(255,255,255,.7);
    flex: 0 0 auto;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

* ========================================================= ACTIVITY DETAIL (HERO + SLOTS + STICKY CTA) ========================================================= */ .hero-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #e9eef2;
}

.hero-back {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(17,24,39,.12);
}

.hero-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(17,24,39,.12);
    font-size: 13px;
}

/* Title/meta in detail */
.detail-title {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.2px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

/* Slots grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.slot-btn {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.75);
    border-radius: 18px;
    padding: 14px 12px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: .15s ease;
}

    .slot-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

    .slot-btn.is-selected {
        border-color: rgba(0,0,0,0);
        background: var(--accent-soft, rgba(0,0,0,.08));
        outline: 2px solid var(--accent);
    }

.slot-time {
    font-weight: 900;
    font-size: 16px;
}

.slot-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Extra safe bottom for detail (hero page has sticky CTA + bottom nav) */
.detail-safe-bottom {
    padding-bottom: 190px; /* CTA sticky + bottom nav */
}

/* Sticky CTA above bottom nav */
.cta-sticky {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(18px + 86px); /* spazio sopra bottom-pill */
    width: min(520px, calc(100vw - 26px));
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 1100;
}

.cta-summary {
    min-width: 0;
}

.cta-title {
    font-weight: 900;
    letter-spacing: -0.2px;
}

.cta-sub {
    font-size: 12px;
}

.cta-btn {
    border-radius: 16px !important;
    font-weight: 900 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hero-img {
        height: 260px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   DETAIL SCREEN (hero + sheet like iOS)
========================================================= */
.detail-shell {
    padding-top: 0; /* per far “attaccare” la hero in alto */
}

.detail-hero {
    position: relative;
    height: 360px;
    border-radius: 0 0 34px 34px;
    overflow: hidden;
    background: #dfe7ea;
}

.detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-hero-btn {
    position: absolute;
    top: 14px;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 0;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

    .detail-hero-btn.left {
        left: 14px;
    }

    .detail-hero-btn.right1 {
        right: 58px;
    }

    .detail-hero-btn.right2 {
        right: 14px;
    }

.detail-sheet {
    background: #fff;
    border-radius: 34px 34px 0 0;
    margin-top: -54px; /* fa salire la card sopra la foto */
    padding: 20px 16px 0;
    border-top: 1px solid rgba(17,24,39,.06);
    box-shadow: 0 -18px 30px rgba(17,24,39,.08);
    min-height: calc(100vh - 280px);
}

.detail-title2 {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.detail-rating {
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.detail-desc {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.detail-box {
    background: rgba(17,24,39,.04);
    border-radius: 22px;
    padding: 14px;
    border: 1px solid rgba(17,24,39,.06);
}

.detail-pin {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: rgba(255,255,255,.8);
    display: grid;
    place-items: center;
    border: 1px solid rgba(17,24,39,.06);
}

.detail-textarea {
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: none;
}

.detail-cta-btn {
    border-radius: 999px !important; /* come nello screen */
    font-weight: 900 !important;
    padding: 16px 18px !important;
}

/* Suggerimenti orari */
/* Suggerimenti orari con badge posti */
.time-chip {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    border-radius: 18px;
    padding: 10px 12px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    transition: .15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 14px; /* leggermente più alti */
}

    .time-chip:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

    .time-chip.is-active {
        outline: 2px solid var(--accent);
        background: var(--accent-soft, rgba(0,0,0,.06));
    }

.time-chip__time {
    font-size: 14px;
    letter-spacing: -0.2px;
}

.time-chip__badge {
    font-size: 11px;
    font-weight: 900;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(17,24,39,.06);
    color: var(--text);
    border: 1px solid rgba(17,24,39,.06);
}

    /* quando i posti sono pochi */
    .time-chip__badge.is-low {
        background: rgba(255, 122, 87, .14); /* puoi sostituire con var(--accent-soft) */
        border-color: rgba(255, 122, 87, .18);
        color: #b13b22;
    }

/* =========================================================
   SCHEDULE / PRENOTAZIONE (no map) - screen-like
========================================================= */
.search-pill {
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-ic {
    opacity: .55;
}

.search-input {
    border: 0;
    outline: none;
    width: 100%;
    background: transparent;
    font-weight: 700;
    color: var(--text);
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.filter-pill {
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 12px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.day-chip2 {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.85);
    border-radius: 18px;
    width: 74px;
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

    .day-chip2 .day-num {
        font-weight: 900;
        font-size: 18px;
    }

    .day-chip2 .day-sub {
        font-size: 12px;
        color: var(--muted);
        font-weight: 800;
        margin-top: 2px;
    }

    .day-chip2.is-active {
        background: var(--accent);
        color: #fff;
        border-color: transparent;
    }

        .day-chip2.is-active .day-sub {
            color: rgba(255,255,255,.85);
        }

/* Card availability */
.availability-card {
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 14px;
    color: var(--text);
    transition: .15s ease;
}

    .availability-card:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.availability-thumb {
    width: 86px;
    height: 70px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(17,24,39,.06);
    background: #e9eef2;
}

    .availability-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.availability-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.availability-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.availability-rating {
    font-weight: 900;
    font-size: 13px;
    opacity: .9;
}

/* =========================================================
   DAY BAR CONTROLS (prev/next/calendar)
========================================================= */
.daybar {
    display: grid;
    grid-template-columns: 42px 1fr 42px 42px;
    gap: 10px;
    align-items: center;
}

.daybar-ctrl {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.75);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--text);
}

    .daybar-ctrl.cal {
        font-size: 18px;
    }

.date-picker-hidden {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: 2000;
    border: 0;
    background: transparent;
}

.cal-wrap {
    position: relative;
    width: 42px;
    height: 42px;
}

.date-picker-overlay {
    position: absolute;
    inset: 0;
    width: 42px;
    height: 42px;
    opacity: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
}

/* Strip days inside daybar */
.daystrip {
    padding: 6px 2px 10px;
    overflow-y: visible;
}

/* Date picker hidden but usable */
.date-picker-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   UTILITIES
========================================================= */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.no-tap-highlight {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   RESPONSIVE TWEAKS
========================================================= */
@media (min-width: 768px) {
    .app-h1 {
        font-size: 28px;
    }

    .app-shell {
        padding-top: 28px;
    }
}

/* =========================================================
   FORM SAFE BOTTOM (avoid bottom nav overlap)
========================================================= */
.form-safe-bottom {
    padding-bottom: 100px; /* > altezza bottom nav */
}

/* =========================================================
   HOME PREMIUM / FUNSPORT DASHBOARD
========================================================= */
.home-premium {
    position: relative;
    padding-top: 12px;
}

    .home-premium::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 14% 8%, rgba(43,179,192,.22), transparent 30%), radial-gradient(circle at 86% 4%, rgba(63,125,255,.18), transparent 28%), radial-gradient(circle at 50% 100%, rgba(43,179,192,.12), transparent 35%);
        z-index: -1;
    }

.home-hero-wow {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 22px 18px 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(18,24,38,.96), rgba(22,152,164,.92)), radial-gradient(circle at 85% 20%, rgba(255,255,255,.25), transparent 32%);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    border: 1px solid rgba(255,255,255,.18);
    isolation: isolate;
}

    .home-hero-wow::after {
        content: "";
        position: absolute;
        right: -42px;
        bottom: -56px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        z-index: -1;
    }

.home-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.home-hero-glow-1 {
    top: -34px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.home-hero-glow-2 {
    left: -38px;
    bottom: 36px;
    width: 96px;
    height: 96px;
    background: rgba(43,179,192,.34);
}

.home-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.74);
    margin-bottom: 8px;
}

.home-title {
    margin: 0;
    max-width: 310px;
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -1px;
    font-weight: 950;
}

.home-subtitle {
    margin: 12px 0 0;
    max-width: 330px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.home-avatar-link {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.home-primary-cta,
.home-secondary-cta {
    min-height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 950;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-primary-cta {
    flex: 1;
    gap: 8px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 16px 30px rgba(0,0,0,.16);
}

.home-primary-cta__icon {
    width: 28px;
    height: 28px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
}

.home-secondary-cta {
    padding: 0 13px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}

    .home-primary-cta:hover,
    .home-secondary-cta:hover {
        transform: translateY(-1px);
    }

.home-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.home-mini-stat {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

    .home-mini-stat strong,
    .home-mini-stat span {
        display: block;
    }

    .home-mini-stat strong {
        font-size: 16px;
        line-height: 1;
        font-weight: 950;
    }

    .home-mini-stat span {
        margin-top: 5px;
        font-size: 11px;
        color: rgba(255,255,255,.72);
        font-weight: 800;
    }

.home-search-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-search-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
}

.home-search-text {
    flex: 1;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.home-search-arrow {
    font-size: 26px;
    line-height: 1;
    color: rgba(17,24,39,.32);
    font-weight: 300;
}

.home-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.home-see-all {
    flex: 0 0 auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    padding-top: 2px;
}

.home-cat-scroll {
    gap: 14px;
    padding-top: 8px;
}

.home-cat-card {
    position: relative;
    width: 138px;
    min-height: 158px;
    overflow: hidden;
    border-radius: 28px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,.72);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .home-cat-card::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: -34px;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: rgba(255,255,255,.46);
    }

    .home-cat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

.home-cat-ic {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: rgba(255,255,255,.70);
    box-shadow: 0 12px 22px rgba(17,24,39,.08);
}

.home-cat-name {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.3px;
}

.home-cat-meta {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    color: rgba(17,24,39,.56);
    font-size: 12px;
    font-weight: 800;
}

.home-cat-aqua {
    background: linear-gradient(145deg, #DDF8F6, #F7FFFF);
}

.home-cat-blue {
    background: linear-gradient(145deg, #E3EDFF, #FBFCFF);
}

.home-cat-orange {
    background: linear-gradient(145deg, #FFE7D8, #FFF8F2);
}

.home-cat-green {
    background: linear-gradient(145deg, #E1F8EA, #FBFFFD);
}

.home-feature-card {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text);
    backdrop-filter: blur(14px);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .home-feature-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.home-feature-media {
    position: relative;
    height: 142px;
    background: radial-gradient(circle at 24% 24%, rgba(255,255,255,.86), transparent 18%), radial-gradient(circle at 78% 32%, rgba(255,255,255,.42), transparent 20%), linear-gradient(135deg, rgba(43,179,192,.88), rgba(63,125,255,.86));
}

.home-feature-yoga::after {
    content: "🧘";
    position: absolute;
    right: 26px;
    bottom: 18px;
    font-size: 62px;
    filter: drop-shadow(0 18px 18px rgba(17,24,39,.16));
}

.home-feature-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    backdrop-filter: blur(10px);
}

.home-feature-body {
    padding: 15px;
}

.home-feature-title {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.3px;
}

.home-feature-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.home-time-pill {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-600);
    font-size: 12px;
    font-weight: 950;
}

.home-feature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

    .home-feature-footer strong {
        color: var(--text);
        font-weight: 950;
    }

.home-activity-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text);
    backdrop-filter: blur(14px);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .home-activity-row:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.home-row-thumb {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 20px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.40);
}

.home-row-pilates {
    background: linear-gradient(135deg, #E9E7FF, #DDF8F6);
}

    .home-row-pilates::before {
        content: "🤸";
        font-size: 28px;
    }

.home-row-boxing {
    background: linear-gradient(135deg, #FFE0D1, #EEF6F6);
}

    .home-row-boxing::before {
        content: "🥊";
        font-size: 28px;
    }

.home-row-content {
    min-width: 0;
    flex: 1;
}

.home-row-title {
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.2px;
}

.home-row-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.home-row-chip {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-text);
    font-size: 11px;
    font-weight: 950;
}

.home-row-chip-low {
    background: rgba(255,122,87,.14);
    color: #b13b22;
}

.home-benefit-card {
    display: flex;
    gap: 13px;
    padding: 15px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
    border: 1px solid rgba(255,255,255,.74);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-benefit-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    font-size: 22px;
}

.home-benefit-title {
    font-weight: 950;
    letter-spacing: -0.2px;
}

.home-benefit-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 370px) {
    .home-title {
        font-size: 27px;
    }

    .home-secondary-cta {
        display: none;
    }

    .home-cat-card {
        width: 128px;
    }
}

@media (min-width: 768px) {
    .home-title {
        font-size: 34px;
    }

    .home-feature-media {
        height: 170px;
    }
}

/* =========================================================
   ACTIVITY DETAIL PREMIUM / FUNSPORT
   Aggiungere in fondo ad app.css
========================================================= */

.activity-detail-premium {
    position: relative;
    margin: 0 auto;
    max-width: 520px;
}

    .activity-detail-premium::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 18% 4%, rgba(43,179,192,.22), transparent 28%), radial-gradient(circle at 92% 12%, rgba(63,125,255,.16), transparent 28%), radial-gradient(circle at 52% 96%, rgba(43,179,192,.12), transparent 34%);
        z-index: -1;
    }

    .ad-empty-times-card {
    width: 100%;
    min-width: 100%;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.ad-empty-times-card::before {
    content: "";
    position: absolute;
    inset: -40px auto auto -40px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(20,184,166,.12);
    pointer-events: none;
}

.ad-empty-times-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(59,130,246,.12));
    color: var(--accent-600);
    position: relative;
    z-index: 1;
}

.ad-empty-times-icon i {
    font-size: 24px;
    line-height: 1;
}

.ad-empty-times-content {
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.ad-empty-times-content strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -.02em;
}

.ad-empty-times-content span {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
    font-weight: 700;
}

.ad-empty-times-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--accent-600), #3b82f6);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(37,99,235,.22);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.ad-empty-times-link:hover,
.ad-empty-times-link:focus {
    color: #fff;
    text-decoration: none;
}

.ad-empty-times-link i {
    font-size: 14px;
}

@media (max-width: 430px) {
    .ad-empty-times-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .ad-empty-times-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 18px;
    }

    .ad-empty-times-link {
        width: 100%;
        margin-top: 2px;
    }
}

/* HERO */
.ad-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    background: #dfe7ea;
    box-shadow: 0 24px 46px rgba(17,24,39,.18);
}

.ad-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.ad-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.22) 0%, rgba(17,24,39,.06) 34%, rgba(17,24,39,.86) 100%), radial-gradient(circle at 78% 18%, rgba(63,125,255,.26), transparent 34%), radial-gradient(circle at 18% 78%, rgba(43,179,192,.28), transparent 34%);
}

.ad-hero-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px 0;
}

.ad-hero-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 17px;
    background: rgba(255,255,255,.16);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    transition: transform .15s ease, background .15s ease;
}

    .ad-hero-btn:hover {
        color: #fff;
        background: rgba(255,255,255,.24);
        transform: translateY(-1px);
    }

.ad-hero-content {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 74px;
    color: #fff;
}

.ad-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .2px;
    margin-bottom: 12px;
}

.ad-title {
    margin: 0;
    max-width: 360px;
    font-size: 34px;
    line-height: .98;
    font-weight: 950;
    letter-spacing: -1px;
}

.ad-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

    .ad-hero-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.16);
        color: rgba(255,255,255,.86);
        font-size: 12px;
        font-weight: 850;
        backdrop-filter: blur(10px);
    }

/* SHEET */
.ad-sheet {
    position: relative;
    z-index: 3;
    margin-top: -48px;
    padding: 0 16px 26px;
}

.ad-overview-card,
.ad-info-card,
.ad-content-card,
.ad-policy-card,
.ad-cta-card {
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.74);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.ad-overview-card {
    padding: 18px;
}

.ad-section-eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .45px;
    margin-bottom: 7px;
}

.ad-main-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.5px;
    color: var(--text);
}

.ad-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    margin-bottom: 0;
}

.ad-rating-card {
    width: 72px;
    min-width: 72px;
    border-radius: 22px;
    padding: 10px 8px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,255,255,.62));
    border: 1px solid var(--line);
    box-shadow: 0 12px 22px rgba(17,24,39,.08);
}

    .ad-rating-card i {
        color: #FFB020;
        font-size: 15px;
    }

    .ad-rating-card strong {
        display: block;
        font-size: 18px;
        font-weight: 950;
        line-height: 1.05;
        margin-top: 2px;
    }

    .ad-rating-card span {
        display: block;
        color: var(--muted);
        font-size: 10px;
        font-weight: 850;
    }

.ad-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 950;
}

.ad-badge-success {
    background: var(--green-soft);
    color: var(--green-text);
}

.ad-badge-info {
    background: var(--blue-soft);
    color: var(--blue-text);
}

/* STATS */
.ad-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ad-stat {
    min-height: 112px;
    border-radius: 24px;
    padding: 12px 10px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.70);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.ad-stat-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-600);
    margin-bottom: 10px;
}

.ad-stat strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.4px;
}

.ad-stat small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

/* SECTION HEAD */
.ad-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ad-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.3px;
    color: var(--text);
}

.ad-section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.ad-see-all {
    flex: 0 0 auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    padding-top: 2px;
}

/* TIME CARDS */
.ad-time-strip {
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 12px;
}

.ad-time-card {
    width: 132px;
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-soft);
    text-align: left;
    color: var(--text);
    backdrop-filter: blur(14px);
    transition: transform .16s ease, box-shadow .16s ease, outline .16s ease;
}

    .ad-time-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .ad-time-card.is-active {
        outline: 2px solid var(--accent);
        background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(63,125,255,.09));
    }

.ad-time-main {
    display: block;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.5px;
}

.ad-time-range {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ad-time-card {
    min-width: 126px;
    padding: 16px 14px;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,24,39,.07);
    box-shadow: 0 18px 42px rgba(15,23,42,.08);
    color: #0f172a;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ad-time-card:hover,
.ad-time-card:focus {
    color: #0f172a;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15,23,42,.12);
    border-color: rgba(20,184,166,.24);
}

.ad-time-card.is-active {
    border-color: rgba(20,184,166,.45);
    box-shadow: 0 22px 54px rgba(20,184,166,.18);
}

.ad-time-main {
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
    color: #0f172a;
    text-decoration: none !important;
}

.ad-time-range {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
    color: #64748b;
    text-decoration: none !important;
}

.ad-availability-chip {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
    text-decoration: none !important;
}

.ad-availability-ok,
.ad-availability-good {
    background: rgba(34,197,94,.14);
    color: #047857;
}

.ad-availability-low,
.ad-availability-last {
    background: rgba(245,158,11,.16);
    color: #b45309;
}

.ad-availability-full {
    background: rgba(239,68,68,.14);
    color: #b91c1c;
}

.ad-time-occupancy {
    width: 100%;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 13px;
    background: rgba(15,23,42,.045);
    border: 1px solid rgba(15,23,42,.055);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 11.5px;
    font-weight: 850;
    text-decoration: none !important;
    white-space: nowrap;
}

.ad-time-occupancy i {
    font-size: 13px;
    color: var(--accent-600);
    line-height: 1;
}

.ad-time-occupancy strong {
    color: #0f172a;
    font-weight: 950;
}

.ad-time-card span,
.ad-time-card strong,
.ad-time-card i {
    text-decoration: none !important;
}

.ad-availability-chip {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    padding: 7px 9px;
    font-size: 11px;
    font-weight: 950;
}

.ad-availability-ok {
    background: var(--green-soft);
    color: var(--green-text);
}

.ad-availability-good {
    background: var(--blue-soft);
    color: var(--blue-text);
}

.ad-availability-low {
    background: rgba(255, 176, 32, .17);
    color: #9A5B00;
}

.ad-availability-last {
    background: rgba(255, 83, 83, .13);
    color: #B42318;
}

/* INFO CARD */
.ad-info-card {
    padding: 8px;
}

.ad-info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 20px;
}

    .ad-info-row + .ad-info-row {
        border-top: 1px solid var(--line);
    }

.ad-info-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 18px;
}

.ad-info-row strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
}

.ad-info-row span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

/* CONTENT */
.ad-content-card {
    padding: 16px;
}

.ad-benefit-list {
    display: grid;
    gap: 10px;
}

.ad-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

    .ad-benefit i {
        width: 26px;
        height: 26px;
        flex: 0 0 auto;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background: var(--green-soft);
        color: var(--green-text);
    }

/* POLICY */
.ad-policy-card {
    display: flex;
    gap: 12px;
    padding: 15px;
}

.ad-policy-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 19px;
}

.ad-policy-card strong {
    display: block;
    font-weight: 950;
    letter-spacing: -0.2px;
}

.ad-policy-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

/* CTA */
.ad-cta-card {
    padding: 15px;
}

.ad-cta-title {
    font-weight: 950;
    font-size: 17px;
    letter-spacing: -0.25px;
}

.ad-cta-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.ad-cta-button {
    min-height: 52px;
    margin-top: 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(63,125,255,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .ad-cta-button:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 20px 36px rgba(63,125,255,.30);
    }

/* RESPONSIVE */
@media (max-width: 370px) {
    .ad-title {
        font-size: 30px;
    }

    .ad-hero {
        min-height: 410px;
    }

    .ad-stats-grid {
        gap: 8px;
    }

    .ad-stat {
        padding: 11px 8px;
    }

        .ad-stat small {
            font-size: 10px;
        }
}

@media (min-width: 768px) {
    .ad-hero {
        min-height: 470px;
    }

    .ad-title {
        font-size: 40px;
    }

    .ad-main-title {
        font-size: 23px;
    }
}

/* =========================================================
   ACTIVITY SCHEDULER PREMIUM / FUNSPORT
   Incollare in fondo ad app.css
========================================================= */
.scheduler-page {
    position: relative;
    padding-bottom: 120px;
}

    .scheduler-page::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 12% 5%, rgba(43,179,192,.20), transparent 28%), radial-gradient(circle at 88% 12%, rgba(63,125,255,.16), transparent 30%), radial-gradient(circle at 50% 100%, rgba(43,179,192,.11), transparent 38%);
        z-index: -1;
    }

.scheduler-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 20px 17px 17px;
    color: #fff;
    background: linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)), radial-gradient(circle at 82% 18%, rgba(255,255,255,.28), transparent 34%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

    .scheduler-hero::after {
        content: "";
        position: absolute;
        right: -55px;
        bottom: -70px;
        width: 190px;
        height: 190px;
        border-radius: 999px;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.15);
        z-index: -1;
    }

.scheduler-hero-glow {
    position: absolute;
    border-radius: 999px;
    opacity: .72;
    z-index: -1;
}

.scheduler-hero-glow-1 {
    top: -44px;
    right: 18px;
    width: 118px;
    height: 118px;
    background: rgba(63,125,255,.42);
    filter: blur(2px);
}

.scheduler-hero-glow-2 {
    left: -42px;
    bottom: 30px;
    width: 96px;
    height: 96px;
    background: rgba(43,179,192,.35);
    filter: blur(3px);
}

.scheduler-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.scheduler-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.scheduler-title {
    margin: 0;
    max-width: 330px;
    font-size: 29px;
    line-height: 1.03;
    letter-spacing: -1px;
    font-weight: 950;
}

.scheduler-subtitle {
    margin: 12px 0 0;
    max-width: 340px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
}

.scheduler-hero-action {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

.scheduler-mini-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.scheduler-mini-item {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

    .scheduler-mini-item strong,
    .scheduler-mini-item span {
        display: block;
    }

    .scheduler-mini-item strong {
        font-size: 16px;
        line-height: 1;
        font-weight: 950;
    }

    .scheduler-mini-item span {
        margin-top: 5px;
        color: rgba(255,255,255,.72);
        font-size: 11px;
        font-weight: 800;
    }

.scheduler-control-card,
.scheduler-date-card,
.scheduler-results {
    border-radius: 28px;
    padding: 14px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.74);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.scheduler-search {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,24,39,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.80);
}

.scheduler-search-ic {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
}

.scheduler-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-weight: 800;
}

    .scheduler-search-input::placeholder {
        color: rgba(107,114,128,.92);
        font-weight: 750;
    }

.scheduler-clear-search {
    display: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 13px;
    color: var(--muted);
    background: rgba(17,24,39,.06);
}

    .scheduler-clear-search.is-visible {
        display: grid;
        place-items: center;
    }

.scheduler-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.scheduler-filter-pill {
    min-height: 46px;
    border: 1px solid rgba(17,24,39,.07);
    border-radius: 18px;
    padding: 8px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .scheduler-filter-pill:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.scheduler-section-head,
.scheduler-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.scheduler-section-sub,
.scheduler-results-label {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.scheduler-today-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    background: var(--accent-soft);
    color: var(--accent-600);
    font-size: 12px;
    font-weight: 950;
}

.scheduler-daybar {
    display: grid;
    grid-template-columns: 42px 1fr 42px 42px;
    align-items: center;
    gap: 10px;
}

.scheduler-daybar-ctrl {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(17,24,39,.07);
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-soft);
    font-weight: 950;
}

.scheduler-cal-wrap {
    position: relative;
    width: 42px;
    height: 42px;
}

.scheduler-daybar-cal {
    position: absolute;
    inset: 0;
}

.scheduler-date-picker-overlay {
    position: absolute;
    inset: 0;
    width: 42px;
    height: 42px;
    opacity: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
}

.scheduler-daystrip {
    padding: 7px 2px 11px;
    margin: 0 -2px;
}

    /* Miglioria compatibile con HTML già generato dal server */
    .scheduler-daystrip .day-chip2,
    .scheduler-daystrip [data-iso] {
        cursor: pointer;
        transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

        .scheduler-daystrip .day-chip2:hover,
        .scheduler-daystrip [data-iso]:hover {
            transform: translateY(-1px);
        }

        .scheduler-daystrip .day-chip2.is-active,
        .scheduler-daystrip [data-iso].is-active,
        .scheduler-daystrip .day-chip2.active,
        .scheduler-daystrip [data-iso].active {
            background: linear-gradient(135deg, var(--accent), var(--accent-600));
            color: #fff;
            border-color: transparent;
            box-shadow: 0 14px 24px rgba(63,125,255,.24);
        }

            .scheduler-daystrip .day-chip2.is-active .day-sub,
            .scheduler-daystrip .day-chip2.active .day-sub {
                color: rgba(255,255,255,.82);
            }

.scheduler-results-label {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .35px;
    font-size: 11px;
    font-weight: 950;
}

.scheduler-results-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
}

.scheduler-cards {
    display: grid;
    gap: 12px;
}

    /* Supporta sia le card già esistenti che quelle future renderizzate dall'handler */
    .scheduler-cards .availability-card {
        border-radius: 24px;
        background: rgba(255,255,255,.86);
        border: 1px solid rgba(255,255,255,.78);
        box-shadow: var(--shadow-soft);
    }

    .scheduler-cards .availability-thumb {
        width: 88px;
        height: 76px;
        border-radius: 20px;
    }

    .scheduler-cards .availability-title {
        font-size: 16px;
        font-weight: 950;
    }

    .scheduler-cards .availability-meta {
        gap: 8px 10px;
        font-weight: 700;
    }

.scheduler-state-card {
    text-align: center;
    border-radius: 26px;
    padding: 22px 16px;
    background: rgba(255,255,255,.72);
    border: 1px dashed rgba(17,24,39,.16);
    box-shadow: var(--shadow-soft);
}

.scheduler-state-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
    font-size: 24px;
}

.scheduler-state-btn {
    border: 0;
    border-radius: 16px;
    padding: 11px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 950;
}

.scheduler-loading-card {
    border-style: solid;
}

.scheduler-loader {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border-radius: 999px;
    border: 4px solid rgba(63,125,255,.16);
    border-top-color: var(--accent);
    animation: schedulerSpin .75s linear infinite;
}

@keyframes schedulerSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Classi consigliate per le card generate da GetCourses.ashx */
.course-premium-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .course-premium-card:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.course-premium-thumb {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    border: 1px solid rgba(17,24,39,.06);
}

    .course-premium-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.course-premium-body {
    min-width: 0;
    flex: 1;
}

.course-premium-title {
    font-size: 16px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.25px;
}

.course-premium-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.course-premium-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.availability-status-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 9px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.availability-status-high {
    background: var(--green-soft);
    color: var(--green-text);
}

.availability-status-medium {
    background: var(--blue-soft);
    color: var(--blue-text);
}

.availability-status-low {
    background: rgba(255,122,87,.16);
    color: #b13b22;
}

.availability-status-full {
    background: rgba(220,38,38,.12);
    color: #b91c1c;
}

.course-book-btn {
    min-height: 36px;
    border: 0;
    border-radius: 14px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

    .course-book-btn.is-disabled,
    .course-book-btn[disabled] {
        background: rgba(17,24,39,.10);
        color: rgba(17,24,39,.42);
        pointer-events: none;
    }

@media (max-width: 370px) {
    .scheduler-title {
        font-size: 26px;
    }

    .scheduler-filter-pill {
        font-size: 12px;
        gap: 5px;
    }

    .scheduler-mini-item {
        padding: 11px 8px;
    }
}

@media (min-width: 768px) {
    .scheduler-title {
        font-size: 34px;
    }

    .scheduler-control-card,
    .scheduler-date-card,
    .scheduler-results {
        padding: 16px;
    }
}

/* =========================================================
   SCHEDULER PATCH - calendario accanto a oggi
========================================================= */

.scheduler-date-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

    .scheduler-date-actions .scheduler-today-btn {
        height: 42px;
        padding: 0 13px;
    }

    .scheduler-date-actions .scheduler-cal-wrap {
        position: relative;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
    }

.scheduler-daybar-wide {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.scheduler-date-actions .scheduler-daybar-cal {
    position: absolute;
    inset: 0;
}

.scheduler-date-actions .scheduler-date-picker-overlay {
    position: absolute;
    inset: 0;
    width: 42px;
    height: 42px;
    opacity: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
}

/* =========================================================
   SCHEDULER COURSE CARDS - PATCH DEFINITIVA
   Mettere in fondo ad app.css
========================================================= */

#coursesContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    #coursesContainer .course-list-card {
        width: 100% !important;
        display: block !important;
        border-radius: 24px !important;
        padding: 12px !important;
        background: rgba(255,255,255,.90) !important;
        border: 1px solid rgba(255,255,255,.80) !important;
        box-shadow: var(--shadow-soft) !important;
        color: var(--text) !important;
        text-decoration: none !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        overflow: hidden;
    }

    #coursesContainer .course-list-main {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    #coursesContainer .course-list-icon {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        flex: 0 0 54px !important;
        border-radius: 19px !important;
        display: grid !important;
        place-items: center !important;
        color: var(--accent-600) !important;
        background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)) !important;
        font-size: 23px !important;
        border: 1px solid rgba(17,24,39,.06) !important;
    }

        #coursesContainer .course-list-icon i {
            font-size: 23px !important;
            line-height: 1 !important;
        }

    #coursesContainer .course-list-body {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    #coursesContainer .course-list-title {
        font-size: 16px !important;
        line-height: 1.15 !important;
        font-weight: 950 !important;
        letter-spacing: -.25px !important;
        color: var(--text) !important;
        margin: 0 !important;
    }

    #coursesContainer .course-list-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 7px 10px !important;
        margin-top: 8px !important;
        color: var(--muted) !important;
        font-size: 12px !important;
        font-weight: 750 !important;
    }

        #coursesContainer .course-list-meta span {
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
            white-space: nowrap;
        }

        #coursesContainer .course-list-meta i {
            color: rgba(17,24,39,.42) !important;
            font-size: 13px !important;
            line-height: 1 !important;
        }

    #coursesContainer .course-list-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-top: 11px !important;
        width: 100% !important;
    }

    #coursesContainer .availability-status-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 32px !important;
        padding: 7px 10px !important;
        border-radius: 999px !important;
        font-size: 11px !important;
        font-weight: 950 !important;
        white-space: nowrap !important;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #coursesContainer .availability-status-high {
        background: var(--green-soft) !important;
        color: var(--green-text) !important;
    }

    #coursesContainer .availability-status-medium {
        background: var(--blue-soft) !important;
        color: var(--blue-text) !important;
    }

    #coursesContainer .availability-status-low {
        background: rgba(255, 138, 106, .16) !important;
        color: #b13b22 !important;
    }

    #coursesContainer .availability-status-full {
        background: rgba(220, 38, 38, .12) !important;
        color: #b91c1c !important;
    }

    #coursesContainer .course-book-btn {
        min-height: 36px !important;
        min-width: 84px !important;
        padding: 0 14px !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        background: var(--accent) !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 950 !important;
        box-shadow: 0 10px 18px rgba(63,125,255,.20) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

        #coursesContainer .course-book-btn:hover {
            background: var(--accent-600) !important;
            color: #fff !important;
        }

        #coursesContainer .course-book-btn.is-disabled {
            pointer-events: none !important;
            background: rgba(17,24,39,.12) !important;
            color: rgba(17,24,39,.42) !important;
            box-shadow: none !important;
        }

        #coursesContainer .course-list-img {
    padding: 0 !important;
    overflow: hidden;
    background: #e9eef2 !important;
}

#coursesContainer .course-list-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 370px) {
    #coursesContainer .course-list-main {
        gap: 10px !important;
    }

    #coursesContainer .course-list-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        flex-basis: 48px !important;
        border-radius: 17px !important;
        font-size: 21px !important;
    }

    #coursesContainer .course-list-title {
        font-size: 15px !important;
    }

    #coursesContainer .course-list-meta {
        gap: 6px 8px !important;
    }

    #coursesContainer .availability-status-chip {
        max-width: 130px;
    }

    #coursesContainer .course-book-btn {
        min-width: 78px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* =========================================================
   MY BOOKINGS PREMIUM
========================================================= */

.bookings-premium-page {
    position: relative;
    padding-top: 4px;
}

    .bookings-premium-page::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 12% 8%, rgba(43,179,192,.18), transparent 30%), radial-gradient(circle at 88% 4%, rgba(63,125,255,.14), transparent 28%), radial-gradient(circle at 50% 100%, rgba(43,179,192,.10), transparent 35%);
        z-index: -1;
    }

/* HERO */
.bookings-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)), radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

    .bookings-hero::after {
        content: "";
        position: absolute;
        right: -42px;
        bottom: -54px;
        width: 176px;
        height: 176px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        z-index: -1;
    }

.bookings-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.bookings-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.bookings-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.bookings-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.bookings-back-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
}

.bookings-hero-copy {
    min-width: 0;
    flex: 1;
}

.bookings-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 7px;
}

.bookings-title {
    margin: 0;
    font-size: 29px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.bookings-subtitle {
    margin: 10px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.bookings-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 17px;
}

.bookings-primary-cta,
.bookings-secondary-cta {
    min-height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.bookings-primary-cta {
    flex: 1;
    gap: 9px;
    color: var(--text);
    background: #fff;
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(0,0,0,.16);
}

    .bookings-primary-cta span {
        width: 28px;
        height: 28px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: var(--accent-soft);
        color: var(--accent-600);
    }

.bookings-secondary-cta {
    width: 48px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}

    .bookings-primary-cta:hover,
    .bookings-secondary-cta:hover {
        transform: translateY(-1px);
    }

/* STATS */
.bookings-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.bookings-stat-card {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

    .bookings-stat-card strong,
    .bookings-stat-card span {
        display: block;
    }

    .bookings-stat-card strong {
        font-size: 18px;
        line-height: 1;
        font-weight: 950;
    }

    .bookings-stat-card span {
        margin-top: 5px;
        font-size: 11px;
        color: rgba(255,255,255,.72);
        font-weight: 800;
    }

/* INFO CARD */
.bookings-info-card {
    display: flex;
    gap: 13px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.bookings-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
    font-size: 19px;
}

.bookings-info-title {
    font-weight: 950;
    letter-spacing: -.2px;
}

.bookings-info-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    font-weight: 600;
}

/* SECTION */
.bookings-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bookings-section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* TABS */
.bookings-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 22px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.bookings-tab {
    border: 0;
    min-width: 0;
    min-height: 48px;
    border-radius: 17px;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-weight: 900;
    transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}

    .bookings-tab span {
        font-size: 12px;
        line-height: 1;
    }

    .bookings-tab strong {
        min-width: 22px;
        min-height: 20px;
        padding: 3px 7px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(17,24,39,.06);
        font-size: 11px;
        font-weight: 950;
    }

    .bookings-tab.is-active {
        background: #fff;
        color: var(--text);
        box-shadow: 0 10px 18px rgba(17,24,39,.09);
    }

        .bookings-tab.is-active strong {
            background: var(--accent);
            color: #fff;
        }

/* PANELS */
.bookings-panel {
    display: none;
}

    .bookings-panel.is-active {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

/* CARD */
.booking-premium-card {
    width: 100%;
    border-radius: 26px;
    padding: 13px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .booking-premium-card:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.booking-card-muted {
    opacity: .92;
}

.booking-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.booking-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex: 0 0 56px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 24px;
    border: 1px solid rgba(17,24,39,.06);
}

.booking-icon-water {
    color: var(--accent-600);
    background: linear-gradient(135deg, #DDF8F6, #E3EDFF);
}

.booking-icon-soft {
    color: #6D5BD0;
    background: linear-gradient(135deg, #E9E7FF, #F7FFFF);
}

.booking-icon-energy {
    color: #B13B22;
    background: linear-gradient(135deg, #FFE0D1, #EEF6F6);
}

.booking-icon-muted {
    color: #6B7280;
    background: rgba(17,24,39,.06);
}

.booking-card-body {
    min-width: 0;
    flex: 1;
}

.booking-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
}

.booking-card-title {
    font-size: 16px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.25px;
}

.booking-card-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.booking-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

    .booking-card-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .booking-card-meta i {
        color: rgba(17,24,39,.42);
        font-size: 13px;
        line-height: 1;
    }

/* STATUS */
.booking-status {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.booking-status-confirmed {
    background: var(--green-soft);
    color: var(--green-text);
}

.booking-status-waiting {
    background: var(--blue-soft);
    color: var(--blue-text);
}

.booking-status-completed {
    background: rgba(43,179,192,.14);
    color: var(--primary-600);
}

.booking-status-cancelled {
    background: rgba(220,38,38,.12);
    color: #b91c1c;
}

/* ACTIONS */
.booking-card-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
}

.booking-action-primary,
.booking-action-secondary,
.booking-action-danger {
    min-height: 38px;
    border-radius: 14px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.booking-action-primary {
    flex: 1;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 18px rgba(63,125,255,.20);
}

    .booking-action-primary:hover {
        background: var(--accent-600);
        color: #fff;
    }

.booking-action-secondary {
    flex: 1;
    background: rgba(17,24,39,.05);
    color: var(--text);
}

    .booking-action-secondary:hover {
        color: var(--text);
    }

.booking-action-danger {
    flex: 1;
    background: rgba(220,38,38,.09);
    color: #b91c1c;
}

    .booking-action-danger:hover {
        color: #b91c1c;
    }

/* EMPTY */
.bookings-empty-state {
    text-align: center;
    padding: 22px 16px;
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    border: 1px dashed rgba(17,24,39,.16);
    box-shadow: var(--shadow-soft);
}

.bookings-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green-text);
    font-size: 24px;
}

.bookings-empty-title {
    margin-top: 12px;
    font-weight: 950;
    letter-spacing: -.2px;
}

.bookings-empty-text {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* MOBILE TWEAKS */
@media (max-width: 370px) {
    .bookings-title {
        font-size: 26px;
    }

    .booking-card-main {
        gap: 10px;
    }

    .booking-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        flex-basis: 50px;
        border-radius: 18px;
        font-size: 22px;
    }

    .booking-status {
        padding-left: 8px;
        padding-right: 8px;
    }

    .booking-card-footer {
        gap: 7px;
    }

    .booking-action-primary,
    .booking-action-secondary,
    .booking-action-danger {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 768px) {
    .bookings-title {
        font-size: 32px;
    }
}

/* =========================================================
   PERSONAL DATA PREMIUM
========================================================= */

.personal-premium-page {
    position: relative;
    padding-top: 4px;
}

    .personal-premium-page::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 12% 8%, rgba(43,179,192,.18), transparent 30%), radial-gradient(circle at 88% 4%, rgba(63,125,255,.14), transparent 28%), radial-gradient(circle at 50% 100%, rgba(43,179,192,.10), transparent 35%);
        z-index: -1;
    }

/* HERO */
.personal-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)), radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

    .personal-hero::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -54px;
        width: 176px;
        height: 176px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        z-index: -1;
    }

.personal-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.personal-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.personal-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.personal-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.personal-back-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
}

    .personal-back-btn:hover {
        color: #fff;
    }

.personal-hero-copy {
    min-width: 0;
    flex: 1;
}

.personal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 7px;
}

.personal-title {
    margin: 0;
    font-size: 29px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.personal-subtitle {
    margin: 10px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

/* HERO STATS */
.personal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.personal-stat-card {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

    .personal-stat-card strong,
    .personal-stat-card span {
        display: block;
    }

    .personal-stat-card strong {
        font-size: 17px;
        line-height: 1;
        font-weight: 950;
    }

    .personal-stat-card span {
        margin-top: 5px;
        font-size: 11px;
        color: rgba(255,255,255,.72);
        font-weight: 800;
    }

/* AVATAR CARD */
.personal-avatar-card {
    border-radius: 28px;
    padding: 15px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.personal-avatar-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.personal-avatar-frame {
    position: relative;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 14px 26px rgba(17,24,39,.10);
}

.personal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.personal-avatar-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    border: 2px solid #fff;
    font-size: 13px;
}

.personal-avatar-copy {
    min-width: 0;
    flex: 1;
}

.personal-card-title {
    font-weight: 950;
    letter-spacing: -.2px;
}

.personal-card-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.38;
    font-weight: 600;
}

.personal-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.personal-btn-light,
.personal-btn-accent {
    min-height: 38px;
    border-radius: 14px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.personal-btn-light {
    background: rgba(17,24,39,.05);
    color: var(--text);
}

.personal-btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 18px rgba(63,125,255,.20);
}

.personal-avatar-msg {
    margin-top: 8px;
    display: block;
    font-size: 12px;
    font-weight: 700;
}

/* FORM CARD */
.personal-form-card {
    border-radius: 30px;
    padding: 16px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.personal-form-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.42;
}

.personal-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.personal-field {
    display: block;
}

.personal-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 950;
    color: var(--text);
}

.personal-input-wrap {
    min-height: 52px;
    border-radius: 18px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 8px 18px rgba(17,24,39,.05);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .personal-input-wrap:focus-within {
        border-color: rgba(63,125,255,.42);
        box-shadow: 0 0 0 4px rgba(63,125,255,.10);
        background: #fff;
    }

    .personal-input-wrap i {
        flex: 0 0 auto;
        color: rgba(17,24,39,.42);
        font-size: 17px;
    }

.personal-input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
    padding: 0;
}

    .personal-input::placeholder {
        color: rgba(107,114,128,.70);
    }

.personal-input-disabled {
    background: rgba(17,24,39,.04);
}

    .personal-input-disabled .personal-input {
        color: rgba(17,24,39,.58);
        -webkit-text-fill-color: rgba(17,24,39,.58);
        opacity: 1;
    }

.personal-help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

/* SAVE AREA */
.personal-save-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.personal-save-btn,
.personal-cancel-btn {
    min-height: 52px;
    width: 100%;
    border-radius: 18px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.personal-save-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 24px rgba(63,125,255,.22);
}

    .personal-save-btn:hover {
        background: var(--accent-600);
        color: #fff;
    }

.personal-cancel-btn {
    background: rgba(17,24,39,.05);
    color: var(--text);
}

    .personal-cancel-btn:hover {
        color: var(--text);
    }

/* RESPONSIVE */
@media (max-width: 370px) {
    .personal-title {
        font-size: 26px;
    }

    .personal-avatar-main {
        align-items: flex-start;
        gap: 12px;
    }

    .personal-avatar-frame {
        width: 74px;
        height: 74px;
        flex-basis: 74px;
        border-radius: 24px;
    }

    .personal-btn-light,
    .personal-btn-accent {
        padding-left: 11px;
        padding-right: 11px;
    }
}

@media (min-width: 768px) {
    .personal-title {
        font-size: 32px;
    }
}

/* =========================================================
   PROFILE PREMIUM
========================================================= */

.profile-premium-page {
    position: relative;
    padding-top: 4px;
}

    .profile-premium-page::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 12% 8%, rgba(43,179,192,.18), transparent 30%), radial-gradient(circle at 88% 4%, rgba(63,125,255,.14), transparent 28%), radial-gradient(circle at 50% 100%, rgba(43,179,192,.10), transparent 35%);
        z-index: -1;
    }

/* HERO */
.profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)), radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

    .profile-hero::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -54px;
        width: 176px;
        height: 176px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        z-index: -1;
    }

.profile-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.profile-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.profile-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.profile-hero-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-hero-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 18px 30px rgba(0,0,0,.18);
}

.profile-hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,.16);
}

.profile-avatar-edit {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 29px;
    height: 29px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    border: 2px solid rgba(255,255,255,.92);
    font-size: 13px;
}

.profile-hero-copy {
    min-width: 0;
    flex: 1;
}

.profile-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 7px;
}

.profile-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.profile-subtitle {
    margin: 5px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-edit-pill {
    margin-top: 11px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    font-size: 12px;
    font-weight: 950;
    backdrop-filter: blur(10px);
}

    .profile-edit-pill:hover {
        color: #fff;
    }

/* STATS */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.profile-stat-card {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

    .profile-stat-card strong,
    .profile-stat-card span {
        display: block;
    }

    .profile-stat-card strong {
        font-size: 18px;
        line-height: 1;
        font-weight: 950;
    }

    .profile-stat-card span {
        margin-top: 5px;
        font-size: 11px;
        color: rgba(255,255,255,.72);
        font-weight: 800;
    }

/* QUICK ACTION */
.profile-quick-card {
    border-radius: 26px;
    padding: 12px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.profile-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 22px;
    padding: 13px;
}

.profile-quick-primary {
    background: linear-gradient(135deg, rgba(43,179,192,.14), rgba(63,125,255,.12));
    border: 1px solid rgba(17,24,39,.05);
}

.profile-quick-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 12px 22px rgba(63,125,255,.22);
}

.profile-quick-text {
    min-width: 0;
    flex: 1;
}

    .profile-quick-text strong,
    .profile-quick-text small {
        display: block;
    }

    .profile-quick-text strong {
        font-weight: 950;
        letter-spacing: -.2px;
    }

    .profile-quick-text small {
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
    }

.profile-quick-chevron {
    color: rgba(17,24,39,.34);
}

/* SECTIONS */
.profile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* MENU */
.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 13px;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    text-decoration: none;
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .profile-menu-item:hover {
        color: var(--text);
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.profile-menu-disabled {
    opacity: .82;
}

.profile-menu-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 20px;
    border: 1px solid rgba(17,24,39,.06);
}

.profile-menu-icon-blue {
    color: var(--blue-text);
    background: var(--blue-soft);
}

.profile-menu-icon-green {
    color: var(--green-text);
    background: var(--green-soft);
}

.profile-menu-icon-purple {
    color: #6D5BD0;
    background: #E9E7FF;
}

.profile-menu-icon-muted {
    color: #6B7280;
    background: rgba(17,24,39,.06);
}

.profile-menu-copy {
    min-width: 0;
    flex: 1;
}

    .profile-menu-copy strong,
    .profile-menu-copy small {
        display: block;
    }

    .profile-menu-copy strong {
        font-size: 15px;
        line-height: 1.15;
        font-weight: 950;
        letter-spacing: -.2px;
    }

    .profile-menu-copy small {
        margin-top: 4px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.32;
        font-weight: 650;
    }

.profile-menu-chevron {
    color: rgba(17,24,39,.32);
    font-size: 16px;
}

.profile-menu-badge,
.profile-soon-badge {
    flex: 0 0 auto;
    min-width: 28px;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.profile-menu-badge {
    background: var(--accent);
    color: #fff;
}

.profile-soon-badge {
    background: rgba(17,24,39,.06);
    color: var(--muted);
}

/* HELP */
.profile-help-card {
    display: flex;
    gap: 13px;
    padding: 15px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.profile-help-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 20px;
}

.profile-help-copy {
    min-width: 0;
    flex: 1;
}

.profile-help-title {
    font-weight: 950;
    letter-spacing: -.2px;
}

.profile-help-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    font-weight: 600;
}

.profile-help-link {
    margin-top: 10px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(17,24,39,.05);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

    .profile-help-link:hover {
        color: var(--text);
    }

/* LOGOUT */
.profile-system-section {
    padding-bottom: 18px;
}

.profile-logout-premium {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 13px;
    border-radius: 24px;
    text-align: left;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(220,38,38,.16);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    color: #b91c1c;
}

.profile-logout-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(220,38,38,.10);
    color: #b91c1c;
    font-size: 20px;
}

.profile-logout-copy {
    min-width: 0;
    flex: 1;
}

    .profile-logout-copy strong,
    .profile-logout-copy small {
        display: block;
    }

    .profile-logout-copy strong {
        font-size: 15px;
        line-height: 1.15;
        font-weight: 950;
    }

    .profile-logout-copy small {
        margin-top: 4px;
        color: rgba(185,28,28,.72);
        font-size: 12px;
        line-height: 1.32;
        font-weight: 650;
    }

/* RESPONSIVE */
@media (max-width: 370px) {
    .profile-hero-top {
        gap: 12px;
    }

    .profile-hero-avatar {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        border-radius: 25px;
    }

    .profile-title {
        font-size: 25px;
    }

    .profile-edit-pill {
        padding-left: 10px;
        padding-right: 10px;
    }

    .profile-menu-item {
        gap: 10px;
    }

    .profile-menu-icon,
    .profile-logout-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 17px;
    }

    .profile-menu-copy small {
        font-size: 11.5px;
    }
}

@media (min-width: 768px) {
    .profile-title {
        font-size: 32px;
    }
}

/* =========================================================
   LOGIN PREMIUM
========================================================= */

.login-premium-body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.login-premium-page {
    position: relative;
    min-height: 100vh;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    overflow-x: hidden;
}

    .login-premium-page::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 12% 8%, rgba(43,179,192,.22), transparent 30%), radial-gradient(circle at 88% 4%, rgba(63,125,255,.16), transparent 28%), radial-gradient(circle at 50% 100%, rgba(43,179,192,.12), transparent 35%);
        z-index: -1;
    }

.login-shell {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 20px 16px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* BRAND */
.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.login-logo {
    height: 42px;
    max-width: 190px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(17,24,39,.10));
}

.login-logo-fallback {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 27px;
    box-shadow: 0 18px 34px rgba(17,24,39,.18);
}

/* HERO */
.login-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 22px 18px 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)), radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

    .login-hero-card::after {
        content: "";
        position: absolute;
        right: -42px;
        bottom: -54px;
        width: 176px;
        height: 176px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        z-index: -1;
    }

.login-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.login-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.login-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 8px;
}

.login-title {
    margin: 0;
    max-width: 360px;
    font-size: 31px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.login-subtitle {
    margin: 12px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.login-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.login-mini-stat {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

    .login-mini-stat strong,
    .login-mini-stat span {
        display: block;
    }

    .login-mini-stat strong {
        font-size: 15px;
        line-height: 1;
        font-weight: 950;
    }

    .login-mini-stat span {
        margin-top: 5px;
        font-size: 11px;
        color: rgba(255,255,255,.72);
        font-weight: 800;
    }

/* FORM CARD */
.login-form-card {
    margin-top: 14px;
    border-radius: 32px;
    padding: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.login-form-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.45px;
}

.login-form-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    font-weight: 650;
}

.login-alert {
    margin-top: 14px;
    border-radius: 18px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(220,38,38,.10);
    color: #b91c1c;
    border: 1px solid rgba(220,38,38,.14);
    font-size: 13px;
    font-weight: 750;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.login-field {
    display: block;
}

.login-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 950;
    color: var(--text);
}

.login-input-wrap {
    min-height: 54px;
    border-radius: 19px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 8px 18px rgba(17,24,39,.05);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .login-input-wrap:focus-within {
        border-color: rgba(63,125,255,.42);
        box-shadow: 0 0 0 4px rgba(63,125,255,.10);
        background: #fff;
    }

    .login-input-wrap > i {
        flex: 0 0 auto;
        color: rgba(17,24,39,.42);
        font-size: 17px;
    }

.login-input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
    padding: 0;
}

    .login-input::placeholder {
        color: rgba(107,114,128,.70);
    }

.login-password-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    border: 0;
    display: grid;
    place-items: center;
    background: rgba(17,24,39,.05);
    color: rgba(17,24,39,.58);
    font-size: 16px;
}

/* OPTIONS */
.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    user-select: none;
}

    .login-remember input {
        width: 17px;
        height: 17px;
        accent-color: var(--accent);
    }

.login-forgot-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

    .login-forgot-link:hover {
        color: var(--accent-600);
    }

/* SUBMIT */
.login-submit-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 17px;
    border: 0 !important;
    border-radius: 19px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    box-shadow: 0 14px 24px rgba(63,125,255,.22);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .login-submit-btn:hover {
        transform: translateY(-1px);
        background: var(--accent-600) !important;
        color: #fff !important;
        box-shadow: 0 18px 30px rgba(63,125,255,.26);
    }

.login-register-box {
    margin-top: 15px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

    .login-register-box a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 950;
    }

        .login-register-box a:hover {
            color: var(--accent-600);
        }

/* TRUST CARD */
.login-trust-card {
    margin-top: 14px;
    display: flex;
    gap: 13px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.login-trust-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--green-text);
    background: var(--green-soft);
    font-size: 19px;
}

.login-trust-title {
    font-weight: 950;
    letter-spacing: -.2px;
}

.login-trust-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 370px) {
    .login-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .login-title {
        font-size: 27px;
    }

    .login-mini-stat {
        padding-left: 8px;
        padding-right: 8px;
    }

        .login-mini-stat strong {
            font-size: 14px;
        }

        .login-mini-stat span {
            font-size: 10.5px;
        }

    .login-options-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
}

@media (min-width: 768px) {
    .login-title {
        font-size: 34px;
    }

    .login-shell {
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

/* =========================================================
   GLOBAL APP TOASTS / NOTIFICHE PREMIUM
========================================================= */

.app-toast-host {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 26px));
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-toast {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    padding: 13px 44px 13px 13px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,255,255,.80);
    box-shadow: 0 18px 38px rgba(17,24,39,.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text);
    pointer-events: auto;
    transform: translateY(-18px);
    opacity: 0;
    animation: appToastIn .28s ease forwards;
}

    .app-toast.is-hiding {
        animation: appToastOut .22s ease forwards;
    }

    .app-toast::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: var(--accent);
    }

.app-toast-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.app-toast-content {
    min-width: 0;
    flex: 1;
    padding-top: 1px;
}

.app-toast-title {
    font-size: 14px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.2px;
}

.app-toast-message {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.app-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(17,24,39,.06);
    color: rgba(17,24,39,.58);
    font-size: 16px;
    line-height: 1;
}

    .app-toast-close:hover {
        background: rgba(17,24,39,.10);
    }

.app-toast-progress {
    position: absolute;
    left: 5px;
    right: 0;
    bottom: 0;
    height: 3px;
    transform-origin: left center;
    animation: appToastProgress linear forwards;
}

/* SUCCESS */
.app-toast-success::before,
.app-toast-success .app-toast-progress {
    background: var(--green-text);
}

.app-toast-success .app-toast-icon {
    background: var(--green-soft);
    color: var(--green-text);
}

/* ERROR */
.app-toast-error::before,
.app-toast-error .app-toast-progress {
    background: #b91c1c;
}

.app-toast-error .app-toast-icon {
    background: rgba(220,38,38,.12);
    color: #b91c1c;
}

/* WARNING */
.app-toast-warning::before,
.app-toast-warning .app-toast-progress {
    background: #b45309;
}

.app-toast-warning .app-toast-icon {
    background: rgba(245,158,11,.16);
    color: #b45309;
}

/* INFO */
.app-toast-info::before,
.app-toast-info .app-toast-progress {
    background: var(--primary-600);
}

.app-toast-info .app-toast-icon {
    background: var(--primary-soft);
    color: var(--primary-600);
}

@keyframes appToastIn {
    from {
        transform: translateY(-18px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes appToastOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-18px);
        opacity: 0;
    }
}

@keyframes appToastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 370px) {
    .app-toast {
        border-radius: 20px;
        padding-right: 42px;
    }

    .app-toast-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .app-toast-title {
        font-size: 13.5px;
    }

    .app-toast-message {
        font-size: 12.5px;
    }
}

/* =========================================================
           HOME PREMIUM V3 - FUNSPORT
           Mobile first / WebForms friendly / no emoji
           Puoi spostare questo blocco in app.css quando validi la UI.
        ========================================================= */

.home-premium-v3 {
    position: relative;
    padding-top: 14px;
}

    .home-premium-v3::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 12% 8%, rgba(43,179,192,.22), transparent 30%), radial-gradient(circle at 92% 3%, rgba(63,125,255,.15), transparent 28%), radial-gradient(circle at 48% 100%, rgba(43,179,192,.12), transparent 35%);
        z-index: -1;
    }

/* HERO */
.home-hero-wow {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 22px 18px 18px;
    color: #fff;
    background: radial-gradient(circle at 92% 12%, rgba(255,255,255,.22), transparent 28%), linear-gradient(135deg, rgba(18,24,38,.98), rgba(22,152,164,.94));
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    border: 1px solid rgba(255,255,255,.18);
    isolation: isolate;
}

    .home-hero-wow::after {
        content: "";
        position: absolute;
        right: -48px;
        bottom: -62px;
        width: 188px;
        height: 188px;
        border-radius: 999px;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        z-index: -1;
    }

.home-hero-glow {
    position: absolute;
    border-radius: 999px;
    opacity: .78;
    z-index: -1;
}

.home-hero-glow-1 {
    top: -38px;
    right: 18px;
    width: 116px;
    height: 116px;
    background: rgba(63,125,255,.40);
    filter: blur(3px);
}

.home-hero-glow-2 {
    left: -42px;
    bottom: 44px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
    filter: blur(3px);
}

.home-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.76);
    margin-bottom: 8px;
}

.home-title {
    margin: 0;
    max-width: 330px;
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -1px;
    font-weight: 950;
}

.home-subtitle {
    margin: 12px 0 0;
    max-width: 360px;
    color: rgba(255,255,255,.80);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.home-avatar-link {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.home-primary-cta,
.home-secondary-cta {
    min-height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 950;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-primary-cta {
    flex: 1;
    gap: 8px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 16px 30px rgba(0,0,0,.16);
}

.home-primary-cta__icon {
    width: 28px;
    height: 28px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
}

.home-secondary-cta {
    padding: 0 13px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}

    .home-primary-cta:hover,
    .home-secondary-cta:hover {
        transform: translateY(-1px);
    }

/* HERO USER STATS */
.home-user-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.home-user-stat {
    border-radius: 18px;
    padding: 12px 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    min-width: 0;
}

    .home-user-stat i {
        display: block;
        font-size: 17px;
        margin-bottom: 7px;
        color: rgba(255,255,255,.88);
    }

    .home-user-stat strong,
    .home-user-stat span {
        display: block;
    }

    .home-user-stat strong {
        font-size: 20px;
        line-height: 1;
        font-weight: 950;
        white-space: nowrap;
    }

    .home-user-stat span {
        margin-top: 5px;
        font-size: 10.5px;
        color: rgba(255,255,255,.72);
        font-weight: 800;
        line-height: 1.15;
    }

/* QUICK SEARCH */
.home-search-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-search-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--primary-600);
    background: var(--primary-soft);
}

.home-search-text {
    flex: 1;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.home-search-arrow {
    color: rgba(17,24,39,.38);
    font-size: 18px;
}

/* SECTIONS */
.home-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.home-see-all {
    flex: 0 0 auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    padding-top: 2px;
}

/* POPULAR CATEGORIES SLIDER */
.home-cat-scroll {
    gap: 14px;
    padding-top: 8px;
    cursor: grab;
    user-select: none;
}

    .home-cat-scroll.is-dragging {
        cursor: grabbing;
    }

.home-cat-card {
    position: relative;
    width: 138px;
    min-height: 152px;
    overflow: hidden;
    border-radius: 28px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,.72);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .home-cat-card::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: -34px;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: rgba(255,255,255,.46);
    }

    .home-cat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

.home-cat-ic {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--primary-600);
    background: rgba(255,255,255,.74);
    box-shadow: 0 12px 22px rgba(17,24,39,.08);
}

.home-cat-name {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.3px;
}

.home-cat-meta {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    color: rgba(17,24,39,.56);
    font-size: 12px;
    font-weight: 800;
}

.home-cat-aqua {
    background: linear-gradient(145deg, #DDF8F6, #F7FFFF);
}

.home-cat-blue {
    background: linear-gradient(145deg, #E3EDFF, #FBFCFF);
}

.home-cat-orange {
    background: linear-gradient(145deg, #FFE7D8, #FFF8F2);
}

.home-cat-green {
    background: linear-gradient(145deg, #E1F8EA, #FBFFFD);
}

.home-cat-violet {
    background: linear-gradient(145deg, #EFE6FF, #FFFFFF);
}

/* =========================================================
           HOME POPULAR ACTIVITIES - FIX NAME MAX 2 LINES
        ========================================================= */

.home-cat-scroll {
    gap: 14px;
    padding-bottom: 12px;
}

.home-cat-card {
    width: 156px !important;
    min-height: 164px;
    padding: 15px !important;
}

.home-cat-ic {
    width: 50px;
    height: 50px;
    border-radius: 19px;
    font-size: 24px;
}

.home-cat-name {
    margin-top: 16px !important;
    font-size: 15.5px !important;
    line-height: 1.18 !important;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(15.5px * 1.18 * 2);
}

.home-cat-meta {
    margin-top: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* massimo 2 righe anche per categoria */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 390px) {
    .home-cat-card {
        width: 152px !important;
    }

    .home-cat-name {
        font-size: 15px !important;
    }
}

@media (max-width: 360px) {
    .home-cat-card {
        width: 146px !important;
        padding: 14px !important;
    }

    .home-cat-name {
        font-size: 14.5px !important;
    }
}

/* TODAY LIST */
.today-list {
    display: grid;
    gap: 13px;
}

.today-course-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 14px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    color: var(--text);
}

.today-course-card::before {
    content: "";
    position: absolute;
    right: -44px;
    top: -48px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(43,179,192,.08);
    pointer-events: none;
}

/* Main row */
.today-course-main {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Thumb / icon */
.today-course-thumb {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 26px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

/* Thumb with real image */
.today-course-thumb-img {
    padding: 0 !important;
    background: #e9eef2;
    display: block;
    position: relative;
}

.today-course-thumb-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.today-course-thumb-img.focus-center img {
    object-position: center center;
}

.today-course-thumb-img.focus-top img {
    object-position: center top;
}

.today-course-thumb-img.focus-bottom img {
    object-position: center bottom;
}

.today-course-thumb-img.focus-left img {
    object-position: left center;
}

.today-course-thumb-img.focus-right img {
    object-position: right center;
}

.today-course-thumb-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,.12));
    pointer-events: none;
}

.today-course-thumb:not(.today-course-thumb-img) i {
    font-size: 25px;
    line-height: 1;
}

/* Fallback icon backgrounds */
.course-bg-aqua {
    background: linear-gradient(135deg, rgba(43,179,192,.92), rgba(63,125,255,.78));
}

.course-bg-blue {
    background: linear-gradient(135deg, #3F7DFF, #80D8FF);
}

.course-bg-green {
    background: linear-gradient(135deg, #20B486, #B5F2D1);
}

.course-bg-orange {
    background: linear-gradient(135deg, #FF8A6A, #FFD3B5);
}

.course-bg-violet {
    background: linear-gradient(135deg, #7C5CFF, #D8CEFF);
}

/* Content column */
.today-course-content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 92px; /* spazio fisso per chip disponibilità a destra */
}

/* Title row */
.today-course-title-row {
    width: 100%;
    display: block;
}

.today-course-title {
    display: block;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 950;
    color: var(--text);
    text-decoration: none;
}

.today-course-title:hover,
.today-course-title:focus {
    color: var(--accent);
    text-decoration: none;
}

/* Availability chip forced top-right */
.today-course-card .availability-chip {
    position: absolute;
    top: 20px;
    right: 18px;
    z-index: 3;
    margin: 0;
    white-space: nowrap;
}

.availability-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 950;
    white-space: nowrap;
    border: 1px solid transparent;
}

.availability-chip.is-high {
    background: var(--green-soft);
    color: var(--green-text);
    border-color: rgba(19,122,75,.10);
}

.availability-chip.is-medium {
    background: var(--blue-soft);
    color: var(--blue-text);
    border-color: rgba(17,102,194,.10);
}

.availability-chip.is-low {
    background: rgba(255,138,106,.16);
    color: #B13B22;
    border-color: rgba(255,138,106,.22);
}

.availability-chip.is-full {
    background: rgba(192,57,43,.10);
    color: #C0392B;
    border-color: rgba(192,57,43,.16);
}

/* Instructor row */
.today-course-instructor {
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    color: #64748b;
}

.today-course-instructor i {
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    flex: 0 0 auto;
}

.today-course-instructor span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Time row */
.today-course-time {
    margin-top: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 850;
}

.today-course-time i {
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    flex: 0 0 auto;
}

/* Data boxes */
.today-course-data {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.today-course-info {
    border-radius: 17px;
    padding: 10px;
    background: rgba(17,24,39,.035);
    border: 1px solid rgba(17,24,39,.045);
}

.today-course-info span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.today-course-info strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
}

/* Actions */
.today-course-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 13px;
}

.today-detail-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: rgba(17,24,39,.045);
    font-weight: 950;
    font-size: 13px;
}

.today-detail-link:hover,
.today-detail-link:focus {
    color: var(--text);
    text-decoration: none;
    background: rgba(17,24,39,.07);
}

.today-book-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    font-weight: 950;
    font-size: 13px;
    box-shadow: 0 12px 22px rgba(63,125,255,.20);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.today-book-btn:hover,
.today-book-btn:focus {
    color: #fff;
    background: var(--accent-600);
    text-decoration: none;
    transform: translateY(-1px);
}

.today-book-btn.is-disabled {
    pointer-events: none;
    opacity: .55;
    background: rgba(17,24,39,.28);
    box-shadow: none;
}

/* Small devices */
@media (max-width: 370px) {
    .today-course-card {
        padding: 12px;
        border-radius: 24px;
    }

    .today-course-main {
        gap: 10px;
    }

    .today-course-thumb {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 20px;
    }

    .today-course-thumb:not(.today-course-thumb-img) i {
        font-size: 23px;
    }

    .today-course-content {
        padding-right: 82px;
    }

    .today-course-card .availability-chip {
        top: 16px;
        right: 14px;
        min-height: 28px;
        padding: 0 9px;
        font-size: 11px;
    }

    .today-course-title {
        font-size: 15px;
    }

    .today-course-instructor,
    .today-course-time {
        font-size: 11.8px;
    }

    .today-course-actions {
        grid-template-columns: 1fr;
    }

    .today-book-btn,
    .today-detail-link {
        width: 100%;
    }
}

/* BENEFIT */
.home-benefit-card {
    display: flex;
    gap: 13px;
    padding: 15px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
    border: 1px solid rgba(255,255,255,.74);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-benefit-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--primary-600);
    background: var(--primary-soft);
    font-size: 22px;
}

.home-benefit-title {
    font-weight: 950;
    letter-spacing: -0.2px;
}

.home-benefit-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 370px) {
    .home-title {
        font-size: 27px;
    }

    .home-secondary-cta {
        display: none;
    }

    .home-cat-card {
        width: 128px;
    }

    .today-course-main {
        gap: 10px;
    }

    .today-course-thumb {
        width: 60px;
        height: 60px;
        border-radius: 20px;
    }

    .availability-chip {
        font-size: 10.8px;
        padding: 0 8px;
    }

    .today-book-btn {
        padding: 0 13px;
    }
}

@media (min-width: 768px) {
    .home-title {
        font-size: 34px;
    }

    .today-list {
        gap: 15px;
    }

    .today-course-card {
        padding: 16px;
    }
}

/* =========================================================
   HOME POPULAR ACTIVITIES - WIDE IMAGE CARDS 900x450
========================================================= */

.home-cat-scroll {
    gap: 14px;
    padding-top: 8px;
    padding-bottom: 14px;
}

/* Nuova card wide */
.home-popular-card {
    width: 178px;
    min-height: 178px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 28px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .home-popular-card:hover {
        color: var(--text);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

/* Media wide: adatto a immagini 900x450 */
.home-popular-media {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 24% 20%, rgba(255,255,255,.75), transparent 22%), linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}

    .home-popular-media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* non comprime */
        object-position: center; /* taglia in modo naturale se serve */
    }

    /* overlay leggero premium */
    .home-popular-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,.16));
        pointer-events: none;
    }

/* fallback se non c'è immagine */
.home-popular-icon-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    font-size: 32px;
}

.home-popular-body {
    padding: 13px 14px 14px;
}

.home-popular-name {
    font-size: 15.5px;
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: -.25px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(15.5px * 1.18 * 2);
}

.home-popular-meta {
    margin-top: 7px;
    color: rgba(17,24,39,.56);
    font-size: 11.5px;
    line-height: 1.25;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* massimo 1 riga */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* disattiva vecchie card se convivono */
.home-cat-card .home-cat-thumb {
    display: none;
}

@media (max-width: 390px) {
    .home-popular-card {
        width: 172px;
    }

    .home-popular-name {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .home-popular-card {
        width: 166px;
        border-radius: 26px;
    }

    .home-popular-body {
        padding: 12px 13px 13px;
    }

    .home-popular-name {
        font-size: 14.5px;
    }
}


/* =========================================================
   HOME TODAY COURSES - THUMB IMMAGINE ARROTONDATA
   Usa immagini wide 900x450 dentro box compatto senza compressione
========================================================= */

.today-course-thumb {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(17,24,39,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.36);
}

/* Variante quando la thumb contiene una immagine reale */
.today-course-thumb-img {
    padding: 0 !important;
    background: #e9eef2;
    display: block;
    position: relative;
}

.today-course-thumb-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;          /* evita immagini schiacciate */
    object-position: center;     /* crop centrale di default */
}

/* Focus crop per immagini wide */
.today-course-thumb-img.focus-center img {
    object-position: center center;
}

.today-course-thumb-img.focus-top img {
    object-position: center top;
}

.today-course-thumb-img.focus-bottom img {
    object-position: center bottom;
}

.today-course-thumb-img.focus-left img {
    object-position: left center;
}

.today-course-thumb-img.focus-right img {
    object-position: right center;
}

/* Fallback icona se non c'è immagine */
.today-course-thumb:not(.today-course-thumb-img) i {
    font-size: 25px;
    line-height: 1;
    color: var(--accent-600);
}

/* Variante leggermente più premium */
.today-course-thumb-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,.12));
    pointer-events: none;
}

/* Mobile piccoli */
@media (max-width: 370px) {
    .today-course-thumb {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 20px;
    }

    .today-course-thumb:not(.today-course-thumb-img) i {
        font-size: 23px;
    }
}

/* GLOBAL BOOKING CONFIRM MODAL */
.booking-modal-open {
    overflow: hidden;
}

.booking-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.booking-confirm-modal.is-open {
    display: flex;
}

.booking-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.booking-confirm-dialog {
    position: relative;
    width: min(420px, 100%);
    border-radius: 32px;
    padding: 26px 22px 20px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    color: var(--text);
    overflow: hidden;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    animation: bookingModalIn .22s ease forwards;
}

.booking-confirm-dialog::before {
    content: "";
    position: absolute;
    right: -54px;
    top: -58px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(43, 179, 192, .12);
    pointer-events: none;
}

.booking-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, .055);
    color: #64748b;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.booking-confirm-close:hover {
    background: rgba(15, 23, 42, .085);
    color: #111827;
}

.booking-confirm-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(43, 179, 192, .18), rgba(63, 125, 255, .16));
    color: var(--accent);
    font-size: 27px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.booking-confirm-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(32, 180, 134, .10);
    color: #0f766e;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.booking-confirm-title {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -.04em;
    color: #111827;
}

.booking-confirm-text {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 750;
}

.booking-confirm-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    margin-top: 16px;
}

.booking-confirm-summary > div {
    border-radius: 18px;
    padding: 12px;
    background: rgba(15, 23, 42, .04);
    border: 1px solid rgba(15, 23, 42, .055);
}

.booking-confirm-summary span {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
}

.booking-confirm-summary strong {
    display: block;
    margin-top: 7px;
    color: #111827;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 950;
}

.booking-confirm-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.booking-confirm-btn {
    min-height: 46px;
    border: 0;
    border-radius: 17px;
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.booking-confirm-btn-light {
    background: rgba(15, 23, 42, .055);
    color: #111827;
}

.booking-confirm-btn-light:hover {
    background: rgba(15, 23, 42, .085);
}

.booking-confirm-btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 26px rgba(63, 125, 255, .24);
}

.booking-confirm-btn-primary:hover {
    background: var(--accent-600);
}

.booking-confirm-btn-primary:disabled {
    opacity: .75;
    cursor: wait;
}

.booking-confirm-spinner {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: bookingSpin .7s linear infinite;
}

@keyframes bookingModalIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes bookingSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 430px) {
    .booking-confirm-modal {
        align-items: flex-end;
        padding: 14px;
    }

    .booking-confirm-dialog {
        border-radius: 30px;
        padding: 24px 18px 18px;
    }

    .booking-confirm-summary {
        grid-template-columns: 1fr;
    }

    .booking-confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ACTIVITIES LIST PREMIUM
========================================================= */

.activities-premium-page {
    position: relative;
    padding-top: 4px;
}

.activities-premium-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(43,179,192,.18), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(63,125,255,.14), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(43,179,192,.10), transparent 35%);
    z-index: -1;
}

/* HERO */
.activities-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

.activities-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -54px;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    z-index: -1;
}

.activities-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.activities-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.activities-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.activities-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.activities-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 8px;
}

.activities-title {
    margin: 0;
    max-width: 340px;
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.activities-subtitle {
    margin: 11px 0 0;
    max-width: 360px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.activities-hero-action {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

.activities-hero-action:hover,
.activities-hero-action:focus {
    color: #fff;
    text-decoration: none;
}

.activities-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.activities-hero-stat {
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

.activities-hero-stat strong,
.activities-hero-stat span {
    display: block;
}

.activities-hero-stat strong {
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
}

.activities-hero-stat span {
    margin-top: 5px;
    font-size: 11px;
    color: rgba(255,255,255,.72);
    font-weight: 800;
}

/* SEARCH */
.activities-search-card {
    border-radius: 26px;
    padding: 12px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.activities-search-box {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(17,24,39,.07);
}

.activities-search-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
}

.activities-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-weight: 800;
}

.activities-search-input::placeholder {
    color: rgba(107,114,128,.88);
    font-weight: 750;
}

.activities-search-clear {
    display: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 13px;
    color: var(--muted);
    background: rgba(17,24,39,.06);
}

.activities-search-clear.is-visible {
    display: grid;
    place-items: center;
}

/* SECTION */
.activities-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.activities-section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.activities-count-pill {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-600);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 950;
}

/* FILTERS */
.activities-filter-strip {
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 12px;
}

.activities-filter-btn {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 16px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text);
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-soft);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.activities-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.activities-filter-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(63,125,255,.22);
}

/* LIST */
.activities-list {
    display: grid;
    gap: 13px;
}

.activity-list-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.activity-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.activity-list-card.is-hidden {
    display: none;
}

.activity-list-click {
    display: block;
    color: var(--text);
    text-decoration: none;
}

.activity-list-click:hover,
.activity-list-click:focus {
    color: var(--text);
    text-decoration: none;
}

.activity-list-media {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}

.activity-list-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.activity-list-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,.18));
    pointer-events: none;
}

.activity-list-media-fallback {
    min-height: 132px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 42px;
}

.activity-list-bg-aqua {
    background: linear-gradient(135deg, rgba(43,179,192,.92), rgba(63,125,255,.78));
}

.activity-list-bg-blue {
    background: linear-gradient(135deg, #3F7DFF, #80D8FF);
}

.activity-list-bg-orange {
    background: linear-gradient(135deg, #FF8A6A, #FFD3B5);
}

.activity-list-bg-violet {
    background: linear-gradient(135deg, #7C5CFF, #D8CEFF);
}

.activity-list-body {
    padding: 14px 14px 0;
}

.activity-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.activity-list-category {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--accent-soft);
    color: var(--accent-600);
    font-size: 11px;
    font-weight: 950;
}

.activity-list-arrow {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(17,24,39,.05);
    color: rgba(17,24,39,.52);
}

.activity-list-title {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 19px;
    line-height: 1.12;
    letter-spacing: -.35px;
    font-weight: 950;
}

.activity-list-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ACTIONS */
.activity-list-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
}

.activity-list-secondary,
.activity-list-primary {
    min-height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.activity-list-secondary {
    color: var(--text);
    background: rgba(17,24,39,.045);
}

.activity-list-secondary:hover,
.activity-list-secondary:focus {
    color: var(--text);
    background: rgba(17,24,39,.07);
    text-decoration: none;
}

.activity-list-primary {
    padding: 0 16px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 22px rgba(63,125,255,.20);
}

.activity-list-primary:hover,
.activity-list-primary:focus {
    color: #fff;
    background: var(--accent-600);
    text-decoration: none;
}

/* EMPTY */
.activities-empty-state {
    text-align: center;
    padding: 24px 16px;
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    border: 1px dashed rgba(17,24,39,.16);
    box-shadow: var(--shadow-soft);
}

.activities-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
    font-size: 24px;
}

.activities-empty-state strong {
    display: block;
    margin-top: 12px;
    font-weight: 950;
    letter-spacing: -.2px;
}

.activities-empty-state p {
    margin: 6px auto 0;
    max-width: 300px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    font-weight: 600;
}

.activities-empty-btn {
    min-height: 40px;
    margin-top: 14px;
    padding: 0 14px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: var(--accent);
    font-size: 12px;
    font-weight: 950;
}

/* RESPONSIVE */
@media (max-width: 370px) {
    .activities-title {
        font-size: 27px;
    }

    .activities-hero-action {
        width: 42px;
        height: 42px;
        border-radius: 16px;
    }

    .activity-list-title {
        font-size: 18px;
    }

    .activity-list-actions {
        grid-template-columns: 1fr;
    }

    .activity-list-primary,
    .activity-list-secondary {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .activities-title {
        font-size: 34px;
    }

    .activities-list {
        gap: 15px;
    }

    .activity-list-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .activity-list-actions {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================================
   SCHEDULER ACTIVE ACTIVITY FILTER
========================================================= */

.scheduler-active-filter {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.scheduler-active-filter-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--accent-600);
    background: var(--accent-soft);
}

.scheduler-active-filter-copy {
    min-width: 0;
    flex: 1;
}

.scheduler-active-filter-copy span,
.scheduler-active-filter-copy strong {
    display: block;
}

.scheduler-active-filter-copy span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
}

.scheduler-active-filter-copy strong {
    margin-top: 5px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.15;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduler-active-filter-clear {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.scheduler-active-filter-clear:hover,
.scheduler-active-filter-clear:focus {
    color: #fff;
    background: var(--accent-600);
    text-decoration: none;
}

/* =========================================================
   SCHEDULER COURSE SEATS VISIBILITY
========================================================= */

.course-seat-summary {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 9px;
    margin-top: 12px;
}

.course-seat-card {
    min-height: 54px;
    border-radius: 18px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(17, 24, 39, .06);
    background: rgba(255,255,255,.74);
}

.course-seat-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 15px;
}

.course-seat-copy {
    min-width: 0;
}

.course-seat-copy span {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18px;
    text-transform: uppercase;
    color: rgba(107,114,128,.92);
}

.course-seat-copy strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.45px;
    color: var(--text);
}

.course-seat-reserved {
    background: rgba(17, 24, 39, .045);
}

.course-seat-reserved .course-seat-icon {
    color: #4b5563;
    background: rgba(17, 24, 39, .075);
}

.course-seat-remained.course-seat-high {
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .20);
}

.course-seat-remained.course-seat-high .course-seat-icon {
    color: #059669;
    background: rgba(16, 185, 129, .16);
}

.course-seat-remained.course-seat-high .course-seat-copy strong {
    color: #047857;
}

.course-seat-remained.course-seat-medium {
    background: rgba(245, 158, 11, .13);
    border-color: rgba(245, 158, 11, .23);
}

.course-seat-remained.course-seat-medium .course-seat-icon {
    color: #d97706;
    background: rgba(245, 158, 11, .17);
}

.course-seat-remained.course-seat-medium .course-seat-copy strong {
    color: #b45309;
}

.course-seat-remained.course-seat-low {
    background: rgba(249, 115, 22, .14);
    border-color: rgba(249, 115, 22, .25);
}

.course-seat-remained.course-seat-low .course-seat-icon {
    color: #ea580c;
    background: rgba(249, 115, 22, .18);
}

.course-seat-remained.course-seat-low .course-seat-copy strong {
    color: #c2410c;
}

.course-seat-remained.course-seat-full {
    background: rgba(239, 68, 68, .13);
    border-color: rgba(239, 68, 68, .24);
}

.course-seat-remained.course-seat-full .course-seat-icon {
    color: #dc2626;
    background: rgba(239, 68, 68, .17);
}

.course-seat-remained.course-seat-full .course-seat-copy strong {
    color: #b91c1c;
}

@media (max-width: 370px) {
    .course-seat-summary {
        grid-template-columns: 1fr;
    }

    .course-seat-card {
        min-height: 50px;
    }
}

.booking-card.is-removing {
    opacity: 0;
    transform: translateX(18px) scale(.985);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.booking-premium-card.is-removing {
    opacity: 0;
    transform: translateX(18px) scale(.985);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.booking-premium-card.booking-card-muted {
    transition: opacity .22s ease, transform .22s ease;
}

.js-cancel-booking.is-loading {
    opacity: .65;
    pointer-events: none;
}

/* =========================================================
   SCHEDULER - TIME CLOSED BUTTON
========================================================= */

.course-book-btn.is-time-closed {
    color: #92400e !important;
    background: rgba(245, 158, 11, .14) !important;
    box-shadow: none !important;
    pointer-events: none;
}

.course-book-btn.is-time-closed:hover,
.course-book-btn.is-time-closed:focus {
    color: #92400e !important;
    background: rgba(245, 158, 11, .14) !important;
    text-decoration: none;
}

/* =========================================================
   FORGOT PASSWORD PREMIUM
   Coerente con LOGIN PREMIUM
========================================================= */

.forgot-premium-page::before {
    background:
        radial-gradient(circle at 12% 8%, rgba(43,179,192,.22), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(63,125,255,.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(43,179,192,.12), transparent 35%);
}

.forgot-shell {
    padding-top: 18px;
}

/* HERO */
.forgot-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 20px 18px 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

.forgot-hero-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    z-index: -1;
}

.forgot-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.forgot-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.forgot-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.forgot-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.12);
    z-index: 2;
}

.forgot-back-btn:hover,
.forgot-back-btn:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.22);
}

.forgot-hero-icon {
    width: 62px;
    height: 62px;
    margin: 48px 0 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    font-size: 29px;
    box-shadow: 0 16px 28px rgba(0,0,0,.14);
}

.forgot-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 8px;
}

.forgot-title {
    margin: 0;
    max-width: 360px;
    font-size: 31px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.forgot-subtitle {
    margin: 12px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

/* FORM */
.forgot-form-card {
    margin-top: 14px;
}

.forgot-server-message {
    margin-top: 14px;
    border-radius: 18px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(63,125,255,.10);
    color: var(--blue-text);
    border: 1px solid rgba(63,125,255,.14);
    font-size: 13px;
    font-weight: 750;
}

.forgot-validator {
    display: block;
    margin-top: 7px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 850;
}

.forgot-submit-btn.is-loading {
    opacity: .78;
    pointer-events: none;
}

.forgot-login-box {
    margin-top: 15px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.forgot-login-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 950;
}

.forgot-login-box a:hover {
    color: var(--accent-600);
}

/* TRUST */
.forgot-trust-card {
    align-items: flex-start;
}

.forgot-trust-icon {
    background: var(--blue-soft);
    color: var(--blue-text);
}

/* MOBILE */
@media (max-width: 370px) {
    .forgot-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .forgot-title {
        font-size: 27px;
    }

    .forgot-hero-icon {
        width: 58px;
        height: 58px;
        border-radius: 22px;
        font-size: 27px;
    }
}

@media (min-width: 768px) {
    .forgot-title {
        font-size: 34px;
    }

    .forgot-shell {
        padding-top: 30px;
        padding-bottom: 34px;
    }
}

/* =========================================================
   SIGNUP PREMIUM
   Coerente con LOGIN / FORGOT PASSWORD
========================================================= */

.signup-premium-page::before {
    background:
        radial-gradient(circle at 12% 8%, rgba(43,179,192,.22), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(63,125,255,.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(43,179,192,.12), transparent 35%);
}

.signup-shell {
    padding-top: 18px;
}

/* HERO */
.signup-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 20px 18px 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18,24,38,.97), rgba(22,152,164,.92)),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 32%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 48px rgba(17,24,39,.22);
    isolation: isolate;
}

.signup-hero-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    z-index: -1;
}

.signup-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    z-index: -1;
}

.signup-hero-glow-1 {
    top: -36px;
    right: 18px;
    width: 112px;
    height: 112px;
    background: rgba(63,125,255,.42);
}

.signup-hero-glow-2 {
    left: -42px;
    bottom: 38px;
    width: 98px;
    height: 98px;
    background: rgba(43,179,192,.34);
}

.signup-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.12);
    z-index: 2;
}

.signup-back-btn:hover,
.signup-back-btn:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.22);
}

.signup-hero-icon {
    width: 62px;
    height: 62px;
    margin: 48px 0 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    font-size: 29px;
    box-shadow: 0 16px 28px rgba(0,0,0,.14);
}

.signup-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 8px;
}

.signup-title {
    margin: 0;
    max-width: 360px;
    font-size: 31px;
    line-height: 1.04;
    letter-spacing: -1px;
    font-weight: 950;
}

.signup-subtitle {
    margin: 12px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.signup-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.signup-mini-stat {
    border-radius: 18px;
    padding: 12px 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    min-width: 0;
}

.signup-mini-stat strong,
.signup-mini-stat span {
    display: block;
}

.signup-mini-stat strong {
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
}

.signup-mini-stat span {
    margin-top: 6px;
    font-size: 10.5px;
    color: rgba(255,255,255,.72);
    font-weight: 800;
    line-height: 1.15;
}

/* FORM */
.signup-form-card {
    margin-top: 14px;
}

.signup-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.signup-server-message {
    margin-top: 14px;
    border-radius: 18px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(63,125,255,.10);
    color: var(--blue-text);
    border: 1px solid rgba(63,125,255,.14);
    font-size: 13px;
    font-weight: 750;
}

.signup-validator {
    display: block;
    margin-top: 7px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 850;
}

.signup-help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
}

/* CONSENSI */
.signup-consent-card {
    margin-top: 17px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.signup-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,24,39,.07);
    box-shadow: 0 8px 18px rgba(17,24,39,.05);
    cursor: pointer;
    user-select: none;
}

.signup-consent-check {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.signup-consent-box {
    min-width: 0;
    display: block;
}

.signup-consent-title {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 950;
    color: var(--text);
}

.signup-consent-text {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.42;
    font-weight: 650;
}

.signup-consent-text a {
    color: var(--accent);
    font-weight: 950;
    text-decoration: none;
}

.signup-consent-text a:hover {
    color: var(--accent-600);
    text-decoration: none;
}

/* SUBMIT / FOOTER */
.signup-submit-btn.is-loading {
    opacity: .78;
    pointer-events: none;
}

.signup-login-box {
    margin-top: 15px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.signup-login-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 950;
}

.signup-login-box a:hover {
    color: var(--accent-600);
}

.signup-trust-card {
    align-items: flex-start;
}

.signup-trust-icon {
    background: var(--green-soft);
    color: var(--green-text);
}

/* MOBILE */
@media (max-width: 370px) {
    .signup-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .signup-title {
        font-size: 27px;
    }

    .signup-hero-icon {
        width: 58px;
        height: 58px;
        border-radius: 22px;
        font-size: 27px;
    }

    .signup-mini-stat {
        padding-left: 8px;
        padding-right: 8px;
    }

    .signup-mini-stat span {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .signup-title {
        font-size: 34px;
    }

    .signup-shell {
        padding-top: 30px;
        padding-bottom: 34px;
    }
}