/* =========================================================
   CARD BASE
========================================================= */

.fsm-card {
    border: 1px solid var(--fsm-border);

    border-radius: var(--fsm-radius-lg);

    padding: var(--fsm-space-lg);

    box-shadow: var(--fsm-shadow-sm);

    transition: var(--fsm-transition);
    background: white;

    border-left: 4px solid var(--fsm-primary);
}

.fsm-card:hover {
    box-shadow: var(--fsm-shadow-md);
}

/* =========================================================
   KPI CARD
========================================================= */

.fsm-kpi-card {
    background: white;

    border-radius: var(--fsm-radius-lg);

    border: 1px solid var(--fsm-border);

    padding: 20px;
    min-height: 180px;

    box-shadow: var(--fsm-shadow-sm);

    display: flex;
    flex-direction: column;
    gap: var(--fsm-space-sm);
}

.fsm-kpi-title {
    color: var(--fsm-text-secondary);

    font-size: 0.9rem;

    font-weight: 600;
}

.fsm-kpi-value {
    font-size: 2rem;

    font-weight: 700;

    color: var(--fsm-text);
}

.fsm-kpi-change {
    font-size: 0.85rem;
}

.fsm-kpi-change.positive {
    color: var(--fsm-success);
}

.fsm-kpi-change.negative {
    color: var(--fsm-danger);
}

/* =========================================================
   BUTTONS
========================================================= */

.fsm-button {
    display: inline-flex;

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

    gap: 8px;

    min-height: 42px;

    padding: 0 18px;

    border: none;

    border-radius: var(--fsm-radius-md);

    background: var(--fsm-primary);

    color: white;

    font-weight: 600;

    cursor: pointer;

    transition: var(--fsm-transition);

    text-decoration: none;
}

.fsm-button:hover {
    background: var(--fsm-primary-dark);

    transform: translateY(-1px);
}

.fsm-button-accent {
    background: var(--fsm-accent);
}

.fsm-button-accent:hover {
    background: var(--fsm-accent-light);
}

.fsm-button-secondary {
    background: transparent;

    border: 1px solid var(--fsm-primary);

    color: var(--fsm-primary);
}

.fsm-button-secondary:hover {
    background: var(--fsm-primary-light);

    color: var(--fsm-primary-dark);
}

.fsm-button-danger {
    background: var(--fsm-danger);
}

.fsm-button-danger:hover {
    background: rgba(var(--fsm-danger-rgb), 0.88);
}

.fsm-button-sm {
    min-height: 36px;

    padding: 0 14px;

    font-size: var(--fsm-text-sm);
}

/* =========================================================
   BADGES
   ========================================================= */

.fsm-badge {
    display: inline-flex;

    align-items: center;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 0.75rem;

    font-weight: 600;
}

.fsm-badge-success {
    background: rgba(var(--fsm-success-rgb), 0.15);
    color: var(--fsm-success);
}

.fsm-badge-warning {
    background: rgba(var(--fsm-warning-rgb), 0.15);
    color: var(--fsm-warning);
}

.fsm-badge-danger {
    background: rgba(var(--fsm-danger-rgb), 0.15);
    color: var(--fsm-danger);
}

/* =========================================================
   HELPERS
========================================================= */

.fsm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fsm-text);
}

.fsm-subtitle {
    color: var(--fsm-text-secondary);
}
/* =========================================================
   MATCH CARD
========================================================= */

.fsm-match-card {
    background: white;

    border: 1px solid var(--fsm-border);

    border-radius: var(--fsm-radius-lg);

    padding: var(--fsm-space-lg);

    box-shadow: var(--fsm-shadow-sm);

    display: flex;
    flex-direction: column;
}

.fsm-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: var(--fsm-space-lg);

    margin-bottom: var(--fsm-space-sm);
}

.fsm-match-team {
    text-align: center;
}

.fsm-match-team img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.fsm-match-vs {
    font-size: 1.5rem;
    font-weight: 700;
}

.fsm-match-info {
    text-align: center;
    color: var(--fsm-text-secondary);
    font-weight: 600;
    margin-top: 0;
}
/* =========================================================
   PLAYER CARD
========================================================= */

.fsm-player-card {
    background: white;

    border: 1px solid var(--fsm-border);

    border-radius: var(--fsm-radius-lg);

    overflow: hidden;

    box-shadow: var(--fsm-shadow-sm);
    min-height: 180px;
}

.fsm-player-image {
    width: 100%;
    height: 180px;

    object-fit: cover;
}

.fsm-player-body {
    padding: var(--fsm-space-lg);
}

.fsm-player-name{
    
    font-weight: 700;
    font-size: 1.2rem;

    margin-bottom: 6px;
}

.fsm-player-meta {
    color: var(--fsm-text-secondary);
    font-size: .9rem;
    margin-top: 8px;
}
/* =========================================================
   TASK CARD
========================================================= */

.fsm-task-card {
    background: white;

    border-left: 4px solid var(--fsm-accent);

   border-radius: var(--fsm-radius-md);

    padding: var(--fsm-space-md);

    box-shadow: var(--fsm-shadow-sm);
}

.fsm-task-title {
    font-weight: 600;
}

.fsm-task-meta {
   margin-top: 6px;

    color: var(--fsm-text-secondary);

    font-size: .85rem;
}
/* =========================================================
   NEWS CARD
========================================================= */

.fsm-news-card {
    background: white;

    border: 1px solid var(--fsm-border);

    border-radius: var(--fsm-radius-lg);

    overflow: hidden;

    box-shadow: var(--fsm-shadow-sm);
    min-height: 180px;
}

.fsm-news-image {
    width: 100%;
    height: 180px;

    object-fit: cover;
}

.fsm-news-body {
    padding: var(--fsm-space-lg);
}

.fsm-news-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.fsm-news-text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--fsm-text-secondary);
}
/* =========================================================
   TABLE
========================================================= */

.fsm-table {
    width: 100%;

    border-collapse: collapse;

    background: white;

    border-radius: var(--fsm-radius-lg);

    overflow: hidden;

    box-shadow: var(--fsm-shadow-sm);
}

.fsm-table th {
    background: var(--fsm-primary-dark);

    color: white;

    text-align: left;

    padding: 14px;
}

.fsm-table td {
    padding: 14px;

    border-bottom: 1px solid var(--fsm-border);
}

.fsm-table tr:hover {
    background: var(--fsm-primary-light);
}
/* =========================================================
   FORM
========================================================= */

.fsm-form-group {
    margin-bottom: var(--fsm-space-lg);
}

.fsm-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-family: var(--fsm-font-body);
}

.fsm-form-input,
.fsm-form-select,
.fsm-form-textarea {
   width: 100%;
   font-family: var(--fsm-font-body);
   font-weight: 400;

    padding: 12px;

    border: 1px solid var(--fsm-border);

   border-radius: var(--fsm-radius-md);

    background: white;
}

.fsm-form-input:focus,
.fsm-form-select:focus,
.fsm-form-textarea:focus {
    outline: none;

    border-color: var(--fsm-primary);
}

.fsm-form-select-sm {
    width: auto;

    padding: 8px 10px;

    font-size: var(--fsm-text-sm);
}
/*========================================================
   MODAL
======================================================= */

.fsm-modal {
    background: white;

    border-radius: var(--fsm-radius-lg);

    padding: var(--fsm-space-xl);

    box-shadow: var(--fsm-shadow-lg);

    max-width: 700px;

    margin: 0 auto;
}

.fsm-modal-title {
    font-size: 1.25rem;

    font-weight: 700;

    margin-bottom: var(--fsm-space-md);
}
/* ==*==================================*===================
   TABS
======*==================================*=============== */

.fsm-tabs {
    display: flex;

    gap: var(--fsm-space-sm);

    border-bottom: 1px solid var(--fsm-border);
}

.fsm-tab {
    padding: 12px 18px;

    cursor: pointer;

    border-bottom: 3px solid transparent;

    font-weight: 600;
}

.fsm-tab.active {
    color: var(--fsm-primary);

    border-bottom-color: var(--fsm-primary);
}
.fsm-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.fsm-preview-grid .fsm-section {
    margin-bottom: 0;
}
.fsm-form-demo {
    max-width: 700px;
}
.fsm-form-section {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* =========================================================
   USER CARD (barra d'usuari del dashboard)
   ========================================================= */

.fsm-user-card {
    background: var(--fsm-gradient-primary);

    color: white;

    border-radius: var(--fsm-radius-lg);

    padding: var(--fsm-space-xl);

    box-shadow: var(--fsm-shadow-md);

    margin-bottom: var(--fsm-space-xl);
}

.fsm-user-name {
    font-size: var(--fsm-text-2xl);

    font-weight: var(--fsm-font-bold);

    margin-bottom: var(--fsm-space-xs);
}

.fsm-user-meta {
    font-size: var(--fsm-text-sm);

    color: var(--fsm-white-alpha-82);

    margin-bottom: 0;
}

/* =========================================================
   INFO GRID (dades de l'equip)
   ========================================================= */

.fsm-info-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: var(--fsm-space-md);

    margin-top: var(--fsm-space-md);
}

.fsm-info-item {
    background: var(--fsm-background);

    border: 1px solid var(--fsm-border);

    border-radius: var(--fsm-radius-md);

    padding: var(--fsm-space-md);
}

.fsm-info-label {
    display: block;

    font-size: var(--fsm-text-xs);

    font-weight: var(--fsm-font-semibold);

    text-transform: uppercase;

    letter-spacing: 0.04em;

    color: var(--fsm-text-secondary);

    margin-bottom: var(--fsm-space-xs);
}

.fsm-info-value {
    font-size: var(--fsm-text-sm);

    font-weight: var(--fsm-font-medium);

    color: var(--fsm-text);

    margin-bottom: 0;
}

.fsm-text-success-inline {
    color: var(--fsm-success);
}

/* =========================================================
   MENU CARD (mosaic de mòduls)
   ========================================================= */

.fsm-menu-card {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: var(--fsm-space-sm);

    height: 100%;

    padding: var(--fsm-space-lg);

    background: var(--fsm-card);

    border: 1px solid var(--fsm-border);

    border-left: 4px solid var(--fsm-primary);

    border-radius: var(--fsm-radius-lg);

    box-shadow: var(--fsm-shadow-sm);

    color: var(--fsm-text);

    text-decoration: none;

    transition: var(--fsm-transition);
}

.fsm-menu-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--fsm-shadow-md);

    border-left-color: var(--fsm-accent);

    color: var(--fsm-text);

    text-decoration: none;
}

.fsm-menu-card--accent {
    border-left-color: var(--fsm-accent);
}

.fsm-menu-card-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 52px;

    height: 52px;

    border-radius: var(--fsm-radius-md);

    background: var(--fsm-primary-light);

    color: var(--fsm-primary);

    font-size: var(--fsm-text-2xl);
}

.fsm-menu-card--accent .fsm-menu-card-icon {
    background: rgba(var(--fsm-accent-rgb), 0.14);

    color: var(--fsm-accent);
}

.fsm-menu-card-title {
    font-size: var(--fsm-text-lg);

    font-weight: var(--fsm-font-semibold);

    margin-bottom: 0;
}

.fsm-menu-card-text {
    font-size: var(--fsm-text-sm);

    line-height: var(--fsm-line-normal);

    color: var(--fsm-text-secondary);

    margin-bottom: 0;
}

/* =========================================================
   ALERT
   ========================================================= */

.fsm-alert {
    background: var(--fsm-card);

    border: 1px solid var(--fsm-border);

    border-left: 4px solid var(--fsm-info);

    border-radius: var(--fsm-radius-lg);

    padding: var(--fsm-space-lg);
}

.fsm-alert-warning {
    background: rgba(var(--fsm-warning-rgb), 0.08);

    border-color: rgba(var(--fsm-warning-rgb), 0.45);
}

.fsm-alert-title {
    display: flex;

    align-items: center;

    gap: var(--fsm-space-sm);

    font-size: var(--fsm-text-lg);

    font-weight: var(--fsm-font-semibold);

    margin-bottom: var(--fsm-space-sm);
}

.fsm-alert-list {
    margin-bottom: 0;

    padding-left: var(--fsm-space-lg);

    font-size: var(--fsm-text-sm);

    color: var(--fsm-text-secondary);
}

/* =========================================================
   LOGOUT FORM
   ========================================================= */

.fsm-logout-form {
    margin: 0;
}

/* =========================================================
   LANDING / HEADER (Desktop)
   Figma: "FSM / Header / Desktop" (node 9:425)
   Scoped to .fsm-landing so other screens keep their header.
========================================================= */

.fsm-landing {
    --fsm-header-height: 54px;
    --fsm-header-bg: #17365B;
    --fsm-header-border: rgba(128, 167, 219, 0.2);
    --fsm-header-accent: #FF8500;
    --fsm-header-blue-glow: #55BCEA;
    --fsm-header-orange-a: #FF9600;
    --fsm-header-orange-b: #FF6B00;
    --fsm-header-orange-border: #FFB32D;
    --fsm-font-display: "Rajdhani", sans-serif;
    --fsm-font-body: "Sora", sans-serif;
    --fsm-font-script: "Caveat", cursive;
    background: var(--fsm-background);
    color: var(--fsm-text);
    font-family: var(--fsm-font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.fsm-landing a {
    text-decoration: none;
}

.fsm-landing .fsm-header {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--fsm-header-bg);
    border-bottom: 1px solid var(--fsm-header-border);
}

.fsm-landing .fsm-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    height: var(--fsm-header-height);
    padding: 0 27px;
}

.fsm-landing .fsm-header-decoration {
    flex: 0 0 auto;
    height: 48px;
    width: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Primary navigation ------------------------------------- */

.fsm-landing .fsm-header-nav {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    margin-right: 26px;
}

.fsm-landing .fsm-header-nav ul {
    display: flex;
    align-items: stretch;
    gap: 13px;
    height: var(--fsm-header-height);
    margin: 0;
    padding: 0;
    list-style: none;
}

.fsm-landing .fsm-header-nav li {
    display: flex;
}

.fsm-landing .fsm-header-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 10px 0;
    height: 100%;
    font-family: var(--fsm-font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #FFFFFF;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fsm-landing .fsm-header-nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 10px;
    background: var(--fsm-header-accent);
    border-radius: 2px;
    opacity: 0;
    transition: width 0.15s ease, opacity 0.15s ease;
}

.fsm-landing .fsm-header-nav a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.fsm-landing .fsm-header-nav a:hover::after,
.fsm-landing .fsm-header-nav a.is-active::after {
    width: 100%;
    opacity: 1;
}

/* Actions (language + account) --------------------------- */

.fsm-landing .fsm-header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Language dropdown (Header) */

.fsm-landing .fsm-header-lang {
    position: relative;
    display: flex;
    align-items: center;
}

.fsm-landing .fsm-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: var(--fsm-font-body);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fsm-landing .fsm-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--fsm-header-accent);
}

.fsm-landing .fsm-lang-toggle:focus-visible {
    outline: 2px solid var(--fsm-header-accent);
    outline-offset: 2px;
}

.fsm-landing .fsm-lang-caret {
    font-size: 9px;
    transition: transform 0.15s ease;
}

.fsm-landing .fsm-lang-toggle[aria-expanded="true"] .fsm-lang-caret {
    transform: rotate(180deg);
}

.fsm-landing .fsm-lang-menu {
    position: fixed;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 170px;
    padding: 6px;
    background: #1E4470;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(4, 16, 42, 0.4);
    z-index: 600;
}

.fsm-landing .fsm-lang-menu.is-open {
    display: flex;
}

.fsm-landing .fsm-lang-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    width: max-content;
    min-width: 100%;
}

.fsm-landing .fsm-lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.fsm-landing .fsm-lang-option:focus-visible {
    outline: 2px solid var(--fsm-header-accent);
    outline-offset: -2px;
}

.fsm-landing .fsm-lang-option.is-active {
    background: rgba(255, 255, 255, 0.14);
}

.fsm-landing .fsm-lang-option.is-active .fsm-lang-label {
    color: #FFFFFF;
}

.fsm-landing .fsm-lang-option.is-active::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fsm-header-accent);
    margin-left: auto;
}

.fsm-landing .fsm-lang-menu .fsm-lang-label {
    font-size: 12px;
}

.fsm-landing .fsm-lang-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fsm-landing .fsm-lang-label {
    font-family: var(--fsm-font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
}

.fsm-landing .fsm-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 13px;
    font-size: 13px;
    line-height: 1;
    border-radius: 2px;
    overflow: hidden;
}

.fsm-landing .fsm-lang-flag--ca {
    background: linear-gradient(
        #FFC928 0 12.5%,
        #DF3225 12.5% 25%,
        #FFC928 25% 37.5%,
        #DF3225 37.5% 50%,
        #FFC928 50% 62.5%,
        #DF3225 62.5% 75%,
        #FFC928 75% 87.5%,
        #DF3225 87.5% 100%
    );
}

/* Account buttons */

.fsm-landing .fsm-header-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fsm-landing .fsm-header-account .fsm-button {
    min-height: 38px;
    height: 38px;
    padding: 0 18px;
    gap: 10px;
    border-radius: 100px;
    font-family: var(--fsm-font-body);
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
}

.fsm-landing .fsm-header-account .fsm-button:hover {
    transform: none;
}

.fsm-landing .fsm-header-account .fsm-button i {
    font-size: 12px;
}

.fsm-landing .fsm-button-login {
    background: linear-gradient(135deg, rgba(14, 85, 150, 0.55) 0%, rgba(23, 72, 130, 0.53) 100%);
    border: 1px solid var(--fsm-header-blue-glow);
}

.fsm-landing .fsm-button-login:hover {
    background: linear-gradient(135deg, rgba(14, 85, 150, 0.78) 0%, rgba(23, 72, 130, 0.78) 100%);
}

.fsm-landing .fsm-button-create {
    background: linear-gradient(135deg, var(--fsm-header-orange-a) 0%, var(--fsm-header-orange-b) 100%);
    border: 1px solid var(--fsm-header-orange-border);
    box-shadow: 0 3px 13px rgba(255, 133, 0, 0.21);
}

.fsm-landing .fsm-button-create:hover {
    background: linear-gradient(135deg, #FFA824 0%, #FF7D1E 100%);
}

/* Mobile toggle is not part of the Desktop header (out of scope). */

.fsm-landing .fsm-menu-toggle {
    display: none;
}

/* =========================================================
   LANDING / HERO (Desktop)
   Figma: "Section / Hero" (node 4:5906)
   Scoped to .fsm-landing.
========================================================= */

.fsm-landing .fsm-hero {
    position: relative;
    width: 100%;
    min-height: 368px;
    padding: 0;
    background: #103765;
    overflow: hidden;
}

/* Background composition --------------------------------- */

.fsm-landing .fsm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.fsm-landing .fsm-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../assets/landing/hero-background.webp") center / cover no-repeat;
}

.fsm-landing .fsm-hero-tint {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, #103765 0%, rgba(16, 55, 101, 0.9) 30%, rgba(16, 55, 101, 0.25) 58%, rgba(16, 55, 101, 0) 80%),
        linear-gradient(135deg, rgba(23, 52, 81, 0.4) 0%, rgba(0, 87, 168, 0.2) 100%);
}

.fsm-landing .fsm-hero-hex {
    position: absolute;
    z-index: 3;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.fsm-landing .fsm-hero-hex::after {
    content: "";
    position: absolute;
    inset: 7px;
    background: #103765;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.fsm-landing .fsm-hero-hex--1 {
    left: -42px;
    top: 200px;
    width: 130px;
    height: 130px;
    background: #D5862B;
    opacity: 0.5;
}

.fsm-landing .fsm-hero-hex--2 {
    left: 42px;
    top: 268px;
    width: 130px;
    height: 130px;
    background: #DB8B2D;
    opacity: 0.7;
}

.fsm-landing .fsm-hero-hex--3 {
    left: 51px;
    top: 289px;
    width: 100px;
    height: 100px;
    background: #079ADB;
    opacity: 0.5;
}

/* Content ------------------------------------------------- */

.fsm-landing .fsm-hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 64px 57px;
}

.fsm-landing .fsm-hero-lead {
    display: flex;
    align-items: center;
    gap: 26px;
}

.fsm-landing .fsm-hero-crest {
    display: block;
    width: 140px;
    height: 152px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

.fsm-landing .fsm-hero-content {
    max-width: 460px;
}

.fsm-landing .fsm-hero-title {
    margin: 0;
    font-family: var(--fsm-font-display);
    color: #FFFFFF;
}

.fsm-landing .fsm-hero-title-line {
    display: block;
    font-size: 43px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.fsm-landing .fsm-hero-accent {
    display: block;
    font-size: 52px;
    font-weight: 700;
    line-height: 0.9;
    color: #FF8500;
}

.fsm-landing .fsm-hero-subtitle {
    margin: 12px 0 0;
    font-family: var(--fsm-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #FFFFFF;
}

/* Calls to action ---------------------------------------- */

.fsm-landing .fsm-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 16px;
}

.fsm-landing .fsm-hero-cta {
    min-height: 54px;
    height: 54px;
    border-radius: 100px;
    font-family: var(--fsm-font-body);
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    gap: 13px;
    transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    will-change: background, opacity, box-shadow;
}

.fsm-landing .fsm-hero-cta:hover {
    transform: none;
}

.fsm-landing .fsm-hero-cta--primary {
    padding: 0 22px 0 4px;
    gap: 16px;
    background: linear-gradient(135deg, #FF9600 0%, #FF6B00 100%);
    border: 1px solid #FF6B00;
    box-shadow: 0 3px 13px rgba(255, 133, 0, 0.21);
}

.fsm-landing .fsm-hero-cta--primary:hover {
    background: linear-gradient(135deg, #FFA824 0%, #FF7D1E 100%);
}

.fsm-landing .fsm-hero-cta--primary:focus-visible {
    outline: 2px solid #FF8500;
    outline-offset: 2px;
}

.fsm-landing .fsm-hero-cta-disc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    flex: 0 0 auto;
    border-radius: 100px;
    background: #FFFFFF;
    color: #FF6B00;
    font-size: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fsm-landing .fsm-hero-cta--primary:hover .fsm-hero-cta-disc,
.fsm-landing .fsm-hero-cta--primary:focus-visible .fsm-hero-cta-disc {
    transform: translateX(2px);
}

.fsm-landing .fsm-hero-cta--secondary {
    padding: 0 18px;
    background: linear-gradient(135deg, rgba(255, 150, 0, 0.92) 0%, rgba(255, 107, 0, 0.92) 100%);
    border: 1px solid #FF6B00;
    box-shadow: 0 3px 13px rgba(255, 133, 0, 0.14);
    filter: saturate(0.98);
}

.fsm-landing .fsm-hero-cta--secondary:hover {
    background: linear-gradient(135deg, #FFA824 0%, #FF7D1E 100%);
    filter: saturate(1);
    box-shadow: 0 3px 13px rgba(255, 133, 0, 0.21);
}

.fsm-landing .fsm-hero-cta i {
    font-size: 20px;
}

/* Decorative slogan -------------------------------------- */

.fsm-landing .fsm-hero-slogan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
    font-family: var(--fsm-font-script);
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.fsm-landing .fsm-hero-slogan-top {
    font-size: 67px;
    font-weight: 700;
}

.fsm-landing .fsm-hero-slogan-bottom {
    margin: -6px 0 0 25px;
    font-size: 36px;
    font-weight: 700;
}

.fsm-landing .fsm-hero-slogan-underline {
    width: 191px;
    height: 37px;
    margin: 2px 0 0 8px;
    background-image: url("../assets/landing/slogan-underline.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Bloc decoratiu: 125px cap a l'esquerra en desktop perquè no quedi
   enganxat al marge dret i s'acosti al titular. Res més canvia (ni
   vertical, ni tipografia, ni colors). Per sota de 1200px no s'aplica:
   en pantalles estretes l'espai entre el titular i el lema ja és mínim
   i el marge forçaria l'embolcall del hero. */
@media (min-width: 1200px) {
    .fsm-landing .fsm-hero-slogan {
        margin-right: 125px;
    }
}

/* Expired-session notice --------------------------------- */

.fsm-landing .fsm-hero-expired {
    position: relative;
    z-index: 3;
    max-width: 640px;
    margin: 24px auto 0;
    padding: 12px 18px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #e0a800;
    color: #664d03;
    text-align: center;
    font-size: 0.95rem;
}

/* =========================================================
   LANDING / FEATURES SECTION + CARD GRID (Desktop)
   Figma: "Section / Club management" (node 4:5947)
          "FSM / Card / Club module" (node 4:6227)
   Scoped to .fsm-landing.
========================================================= */

.fsm-landing .fsm-moduls {
    position: relative;
    padding: 0;
    background: #F8FAFC;
    background-image: linear-gradient(135deg, #F8FAFC 0%, #EDF3FA 100%);
}

.fsm-landing .fsm-moduls::before {
    content: "";
    position: absolute;
    top: -82px;
    left: 0;
    z-index: 1;
    width: 104px;
    height: 86px;
    pointer-events: none;
    background: url("../assets/landing/hero-corner-left.svg") no-repeat left bottom / contain;
}

.fsm-landing .fsm-moduls-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 17px 85px 23px;
}

/* Section heading ---------------------------------------- */

.fsm-landing .fsm-landing-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
    height: 17px;
    font-family: var(--fsm-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4615em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #082453;
    white-space: nowrap;
}

.fsm-landing .fsm-landing-section-rule {
    display: block;
    width: 29px;
    height: 1.5px;
    flex: 0 0 auto;
    background: #FF8500;
}

/* Grid --------------------------------------------------- */

.fsm-landing .fsm-moduls-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

/* Feature card ------------------------------------------- */

.fsm-landing .fsm-club-card {
    position: relative;
    display: block;
    height: 238px;
    border: 1px solid #FFFFFF;
    border-radius: 13px;
    background: linear-gradient(135deg, #FFFFFF 0%, #EDF4F9 100%);
    box-shadow: 0 3px 10px rgba(37, 91, 163, 0.16);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fsm-landing .fsm-club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(37, 91, 163, 0.24);
}

/* Colour variants */

.fsm-landing .fsm-club-card--blue {
    --club-gradient: linear-gradient(135deg, #009CFF 0%, #0060CF 100%);
    --club-bullet: #0060CF;
    --club-glow: rgba(0, 156, 255, 1);
    --fsm-emblem-accent: var(--club-bullet);
}

.fsm-landing .fsm-club-card--green {
    --club-gradient: linear-gradient(135deg, #00B692 0%, #008C70 100%);
    --club-bullet: #008C70;
    --club-glow: rgba(0, 182, 146, 1);
    --fsm-emblem-accent: var(--club-bullet);
}

.fsm-landing .fsm-club-card--orange {
    --club-gradient: linear-gradient(135deg, #FFBA00 0%, #FF6900 100%);
    --club-bullet: #FF6900;
    --club-glow: rgba(255, 186, 0, 1);
    --fsm-emblem-accent: var(--club-bullet);
}

.fsm-landing .fsm-club-card--purple {
    --club-gradient: linear-gradient(135deg, #B72EFF 0%, #5B2ECD 100%);
    --club-bullet: #5B2ECD;
    --club-glow: rgba(183, 46, 255, 1);
    --fsm-emblem-accent: var(--club-bullet);
}

.fsm-landing .fsm-club-card--pink {
    --club-gradient: linear-gradient(135deg, #FF478E 0%, #E5076B 100%);
    --club-bullet: #E5076B;
    --club-glow: rgba(255, 71, 142, 1);
    --fsm-emblem-accent: var(--club-bullet);
}

.fsm-landing .fsm-club-card--cyan {
    --club-gradient: linear-gradient(135deg, #00B7C5 0%, #006486 100%);
    --club-bullet: #006486;
    --club-glow: rgba(0, 183, 197, 1);
    --fsm-emblem-accent: var(--club-bullet);
}

/* Banner */

.fsm-landing .fsm-club-card__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 109px;
    background: var(--club-gradient);
    overflow: hidden;
    -webkit-mask-image: url("../assets/landing/card-banner-shape.svg");
    mask-image: url("../assets/landing/card-banner-shape.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: top left;
    mask-position: top left;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Emblem badge */

.fsm-landing .fsm-club-card__emblem {
    position: absolute;
    top: 14px;
    left: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 73px;
    height: 74px;
    background-color: var(--fsm-emblem-accent);
    -webkit-mask-image: url("../assets/landing/card-rhombus.svg");
    mask-image: url("../assets/landing/card-rhombus.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.fsm-landing .fsm-club-card__emblem::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 90%;
    height: 90%;
    margin: auto;
    background: linear-gradient(135deg, #123057 0%, #0A3E64 100%);
    -webkit-mask-image: url("../assets/landing/card-rhombus.svg");
    mask-image: url("../assets/landing/card-rhombus.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.fsm-landing .fsm-club-card__glyph {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 34px;
    display: block;
    object-fit: contain;
}

/* Content */

.fsm-landing .fsm-club-card__content {
    position: absolute;
    top: 124px;
    left: 24px;
    right: 20px;
    z-index: 2;
}

.fsm-landing .fsm-club-card__title {
    margin: 0;
    font-family: var(--fsm-font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #082453;
}

.fsm-landing .fsm-club-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.fsm-landing .fsm-club-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fsm-font-body);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    color: #082453;
}

.fsm-landing .fsm-club-card__bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 6px;
    background: var(--club-bullet);
    color: #FFFFFF;
    font-size: 6px;
}

/* Action */

.fsm-landing .fsm-club-card__action {
    position: absolute;
    right: 14px;
    bottom: 15px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1.5px solid #FFFFFF;
    border-radius: 100px;
    background: var(--club-gradient);
    box-shadow: 0 2px 5px rgba(18, 57, 101, 0.15);
    color: #FFFFFF;
    font-size: 14px;
    cursor: default;
}

.fsm-landing .fsm-card-preview-trigger {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fsm-landing .fsm-card-preview-trigger:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 10px rgba(18, 57, 101, 0.22);
    filter: brightness(1.05);
}

.fsm-landing .fsm-card-preview-trigger:focus-visible {
    outline: 2px solid var(--fsm-header-accent, #FF8500);
    outline-offset: 2px;
    transform: translateX(2px);
}

.fsm-landing .fsm-card-preview-trigger:active {
    transform: translateX(2px) scale(0.97);
    box-shadow: 0 3px 8px rgba(18, 57, 101, 0.2);
}

/* =========================================================
   LANDING / PROMOTIONAL BANNER + DASHBOARD PREVIEW (Desktop)
   Figma: "FSM / Banner / Promotional" (node 25:404 / 29:492)
   Scoped to .fsm-landing.
========================================================= */

.fsm-landing .fsm-promo {
    position: relative;
    min-height: 270px;
    isolation: isolate;
}

/* Background layer (clipped independently so the preview can pop out) */

.fsm-landing .fsm-promo-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: linear-gradient(135deg, #0C426F 0%, #0876C9 100%);
}

.fsm-landing .fsm-promo-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(12, 41, 77, 0.73) 0%, rgba(0, 102, 188, 0.2) 100%);
}

/* Decorative hexagonal motifs + section curve */

.fsm-landing .fsm-promo-hex {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.fsm-landing .fsm-promo-hex--1 {
    left: -33px;
    top: 6px;
    width: 130px;
    height: 150px;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 150' preserveAspectRatio='none'%3E%3Cpolygon points='65,4 126,39 126,111 65,146 4,111 4,39' fill='none' stroke='%231285C0' stroke-width='7'/%3E%3C/svg%3E");
}

.fsm-landing .fsm-promo-hex--2 {
    right: -8px;
    top: 121px;
    width: 140px;
    height: 149px;
    opacity: 0.8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 149' preserveAspectRatio='none'%3E%3Cpolygon points='70,5 135,37 135,112 70,144 5,112 5,37' fill='none' stroke='%23B58A54' stroke-width='8'/%3E%3C/svg%3E");
}

.fsm-landing .fsm-promo-hex--3 {
    right: 34px;
    top: 181px;
    width: 112px;
    height: 94px;
    opacity: 0.6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 94' preserveAspectRatio='none'%3E%3Cpolygon points='56,4 108,25 108,69 56,90 4,69 4,25' fill='none' stroke='%230093D6' stroke-width='6'/%3E%3C/svg%3E");
}

.fsm-landing .fsm-promo-curve {
    position: absolute;
    top: 0;
    right: 0px;
    width: 104px;
    height: 86px;
    z-index: 1;
    pointer-events: none;

    background-color: transparent;
    background-image: url("../assets/landing/promo-corner-right.svg");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;

    border: 0;
    border-radius: 0;
    clip-path: none;
    transform: none;
}

/* Content layout */

.fsm-landing .fsm-promo-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 27px;
    width: 100%;
    max-width: 1536px;
    height: 270px;
    margin: 0 auto;
    padding: 28px 98px;
    box-sizing: border-box;
}

/* Product copy */

.fsm-landing .fsm-promo-copy {
    flex: 0 1 332px;
    min-width: 0;
    align-self: flex-start;
}

.fsm-landing .fsm-promo-kicker {
    display: block;
    font-family: var(--fsm-font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #FF8500;
}

.fsm-landing .fsm-promo-title {
    margin: 8px 0 0;
    font-family: var(--fsm-font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.16;
    color: #FFFFFF;
}

.fsm-landing .fsm-promo-accent {
    color: #FF8500;
}

.fsm-landing .fsm-promo-text {
    margin: 8px 0 0;
    font-family: var(--fsm-font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #FFFFFF;
}

.fsm-landing .fsm-promo-cta {
    margin-top: 13px;
    min-height: 45px;
    padding: 0 18px;
    gap: 13px;
    border: 1px solid #FF6B00;
    border-radius: 100px;
    background: linear-gradient(135deg, #FF6B00 0%, #FFCC00 100%);
    box-shadow: 0 3px 13px rgba(255, 133, 0, 0.21);
    color: #FFFFFF;
    font-family: var(--fsm-font-body);
    font-size: 14px;
    font-weight: 600;
}

.fsm-landing .fsm-promo-cta:hover {
    background: linear-gradient(135deg, #FF7A14 0%, #FFD42E 100%);
}

/* Benefits column */

.fsm-landing .fsm-promo-benefits {
    flex: 0 0 244px;
    align-self: flex-start;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none;
}

.fsm-landing .fsm-promo-benefit {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 39px;
    padding: 0 12px 0 9px;
    border: 1px solid rgba(88, 167, 229, 0.3);
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(20, 91, 157, 0.82) 0%, rgba(13, 65, 139, 0.85) 100%);
}

.fsm-landing .fsm-promo-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 100px;
    background: var(--benefit-color, #0086EB);
    color: #FFFFFF;
    font-size: 15px;
}

.fsm-landing .fsm-promo-benefit__label {
    font-family: var(--fsm-font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
}

.fsm-landing .fsm-promo-benefit--blue { --benefit-color: #0086EB; }
.fsm-landing .fsm-promo-benefit--green { --benefit-color: #009B82; }
.fsm-landing .fsm-promo-benefit--orange { --benefit-color: #FF8700; }
.fsm-landing .fsm-promo-benefit--purple { --benefit-color: #8435EB; }

/* Dashboard preview */

.fsm-landing .fsm-promo-preview {
    position: relative;
    flex: 1 1 717px;
    min-width: 0;
    max-width: 717px;
    margin: 0;
    align-self: center;
}

.fsm-landing .fsm-promo-preview__img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    color: transparent;
}

/* =========================================================
   LANDING / FOOTER (Desktop)
   Figma: "FSM / Footer / Desktop" (node 9:507 / 9:508)
   Scoped to .fsm-landing.
========================================================= */

.fsm-landing .fsm-site-footer {
    position: relative;
    border-top: 1px solid rgba(180, 213, 255, 0.27);
    background: var(--fsm-header-bg, #17365B);
}

.fsm-landing .fsm-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1536px;
    height: 50px;
    margin: 0 auto;
    padding: 0 90px 0 101px;
    box-sizing: border-box;
}

/* Brand */

.fsm-landing .fsm-footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.fsm-landing .fsm-footer-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 152px;
    max-height: 46px;
    object-fit: contain;
}

/* Legal navigation */

.fsm-landing .fsm-footer-nav {
    flex: 0 1 auto;
}

.fsm-landing .fsm-footer-legal {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fsm-landing .fsm-footer-legal li {
    display: flex;
    align-items: center;
}

.fsm-landing .fsm-footer-legal li + li::before {
    content: "";
    width: 1px;
    height: 9px;
    margin: 0 18px;
    background: rgba(113, 139, 165, 0.33);
}

.fsm-landing .fsm-footer-link {
    font-family: var(--fsm-font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: #FFFFFF;
    text-decoration: none;
    transition: color var(--fsm-transition, 0.2s ease);
}

.fsm-landing .fsm-footer-link:hover {
    color: #FF8500;
}

/* Social links */

.fsm-landing .fsm-footer-social {
    display: flex;
    align-items: center;
    gap: 19px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fsm-landing .fsm-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color var(--fsm-transition, 0.2s ease);
}

.fsm-landing .fsm-footer-social-link .fa-facebook-f {
    font-size: 19px;
}

.fsm-landing .fsm-footer-social-link:hover {
    color: #FF8500;
}

/* Language selector */

.fsm-landing .fsm-footer-langs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fsm-landing .fsm-footer-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color var(--fsm-transition, 0.2s ease);
}

.fsm-landing .fsm-footer-lang:hover,
.fsm-landing .fsm-footer-lang.is-active {
    color: #FF8500;
}

.fsm-landing .fsm-footer-lang__label {
    font-family: var(--fsm-font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.fsm-landing .fsm-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.fsm-landing .fsm-flag--ca {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background-color: #FFC928;
    background-image: repeating-linear-gradient(
        to bottom,
        #DF3225 0,
        #DF3225 1.5px,
        transparent 1.5px,
        transparent 3px
    );
}

/* Placeholder links (no real route yet) */

.fsm-landing .fsm-footer-link.is-placeholder,
.fsm-landing .fsm-footer-social-link.is-placeholder {
    cursor: default;
    pointer-events: none;
}

/* Focus visibility */

.fsm-landing .fsm-footer-link:focus-visible,
.fsm-landing .fsm-footer-social-link:focus-visible,
.fsm-landing .fsm-footer-lang:focus-visible {
    outline: 2px solid #FF8500;
    outline-offset: 2px;
    color: #FF8500;
}

/* =========================================================
   LANDING / LOGIN MODAL
   (abans a landing.css; portat aquí en retirar aquella capa)
========================================================= */

.fsm-button-lg {
    min-height: 54px;
    padding: 0 32px;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    font-family: var(--fsm-font-body);
}

.fsm-button-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fsm-landing .fsm-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 16, 42, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--fsm-space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.fsm-landing .fsm-login-overlay.open {
    opacity: 1;
    visibility: visible;
}

.fsm-landing .fsm-login {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--fsm-card);
    border-radius: var(--fsm-radius-lg);
    box-shadow: var(--fsm-shadow-lg);
    padding: 32px;
    transform: translateY(12px);
    transition: transform .25s ease;
}

.fsm-landing .fsm-login-overlay.open .fsm-login {
    transform: translateY(0);
}

.fsm-landing .fsm-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--fsm-background);
    color: var(--fsm-text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsm-landing .fsm-login h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--fsm-text);
    font-family: var(--fsm-font-display);
}

.fsm-landing .fsm-login .fsm-login-sub {
    color: var(--fsm-text-secondary);
    font-size: 0.9rem;
    margin: 0 0 20px;
    font-family: var(--fsm-font-body);
    font-weight: 400;
}

.fsm-landing .fsm-login .fsm-login-error {
    background-color: var(--fsm-error-bg, #fdecea);
    border: 1px solid var(--fsm-error-border, #f5c6cb);
    color: var(--fsm-error-text, #842029);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin: 0 0 14px;
}

.fsm-landing .fsm-login .fsm-login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 0.9rem;
}

.fsm-landing .fsm-login-links a {
    color: var(--fsm-primary);
    font-weight: 600;
}

/* Preview Modal (Plantilla) */
.fsm-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 20, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.fsm-preview-overlay.open {
    display: flex;
}

.fsm-preview-modal {
    position: relative;
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    background: var(--fsm-card, #ffffff);
    border-radius: var(--fsm-radius-lg, 12px);
    box-shadow: var(--fsm-shadow-lg, 0 20px 60px rgba(8, 36, 83, 0.25));
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    overflow: auto;
    font-family: var(--fsm-font-body, "Sora", sans-serif);
}

.fsm-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--fsm-background, #f7f9fc);
    color: var(--fsm-text-secondary, #4a5b7d);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fsm-preview-close:focus-visible {
    outline: 2px solid var(--fsm-header-accent, #FF8500);
    outline-offset: 2px;
}

.fsm-preview-title {
    margin: 0;
    font-family: var(--fsm-font-display, "Rajdhani", sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fsm-text, #082453);
}

.fsm-preview-viewport {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px dashed rgba(88, 167, 229, 0.45);
    background: radial-gradient(120% 120% at 50% 0%, #0f2b59 0%, #0a1f44 100%);
    overflow: hidden;
}

.fsm-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9deff;
}

.fsm-preview-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 16px;
}

.fsm-preview-placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.25rem;
}

.fsm-preview-placeholder-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.fsm-preview-desc {
    margin: 0;
    color: var(--fsm-text-secondary, #4a5b7d);
    font-size: 0.95rem;
    line-height: 1.5;
}

.fsm-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.fsm-preview-modal[data-color="blue"] {
    --fsm-preview-accent: #0060CF;
    --fsm-preview-accent-soft: rgba(0, 96, 207, 0.1);
}

.fsm-preview-modal[data-color="green"] {
    --fsm-preview-accent: #008C70;
    --fsm-preview-accent-soft: rgba(0, 140, 112, 0.1);
}

.fsm-preview-modal[data-color="orange"] {
    --fsm-preview-accent: #FF6900;
    --fsm-preview-accent-soft: rgba(255, 105, 0, 0.1);
}

.fsm-preview-modal[data-color="purple"] {
    --fsm-preview-accent: #5B2ECD;
    --fsm-preview-accent-soft: rgba(91, 46, 205, 0.1);
}

.fsm-preview-modal[data-color="pink"] {
    --fsm-preview-accent: #E5076B;
    --fsm-preview-accent-soft: rgba(229, 7, 107, 0.1);
}

.fsm-preview-modal[data-color="cyan"] {
    --fsm-preview-accent: #006486;
    --fsm-preview-accent-soft: rgba(0, 100, 134, 0.1);
}

.fsm-preview-modal .fsm-preview-title {
    color: var(--fsm-preview-accent, var(--fsm-text, #082453));
}

.fsm-preview-modal .fsm-preview-viewport {
    border-color: var(--fsm-preview-accent, rgba(88, 167, 229, 0.45));
    background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--fsm-preview-accent, #0f2b59) 55%, #0f2b59) 0%, #0a1f44 100%);
}

.fsm-preview-modal .fsm-preview-placeholder-icon {
    background: var(--fsm-preview-accent-soft, rgba(255, 255, 255, 0.08));
    color: var(--fsm-preview-accent, #c9deff);
}

/* =========================================================
   LANDING / HEADER + FOOTER (Mobile)
   Contrapart mòbil de les regles desktop d'aquesta capa: el menú
   passa a hamburguesa i el peu s'apila. Aplica tant a la landing
   com a les pàgines legals (privacy/), que comparteixen les
   mateixes plantilles. Fora d'aquest rang, cap efecte.
========================================================= */

@media (max-width: 1080px) {

    .fsm-landing .fsm-header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--fsm-header-height);
        padding: 10px var(--fsm-space-md);
        gap: 10px 14px;
    }

    .fsm-landing .fsm-header-decoration {
        height: 34px;
    }

    .fsm-landing .fsm-header-nav {
        order: 5;
        flex: 1 0 100%;
        display: none;
        margin: 0;
    }

    .fsm-landing .fsm-header-nav.open {
        display: block;
        padding-top: 6px;
        border-top: 1px solid var(--fsm-header-border);
    }

    .fsm-landing .fsm-header-nav ul {
        flex-direction: column;
        gap: 0;
        height: auto;
    }

    .fsm-landing .fsm-header-nav li {
        display: block;
    }

    .fsm-landing .fsm-header-nav a {
        display: block;
        padding: 10px 4px;
        text-align: left;
    }

    .fsm-landing .fsm-header-nav a::after {
        display: none;
    }

    .fsm-landing .fsm-header-actions {
        order: 3;
        gap: 12px;
        margin-left: auto;
    }

    .fsm-landing .fsm-header-account {
        gap: 8px;
    }

    .fsm-landing .fsm-header-account .fsm-button {
        height: auto;
        min-height: 34px;
        padding: 7px 12px;
        white-space: nowrap;
    }

    .fsm-landing .fsm-menu-toggle {
        order: 4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--fsm-header-border);
        border-radius: var(--fsm-radius-sm);
        padding: 8px 10px;
        color: #FFFFFF;
        cursor: pointer;
    }

    .fsm-landing .fsm-menu-toggle:hover {
        background: var(--fsm-white-alpha-10);
    }

    /* Peu */
    .fsm-landing .fsm-footer-bar {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 14px;
        padding: 20px var(--fsm-space-md);
    }

    .fsm-landing .fsm-footer-brand,
    .fsm-landing .fsm-footer-nav,
    .fsm-landing .fsm-footer-social,
    .fsm-landing .fsm-footer-langs {
        flex: 1 1 100%;
        justify-content: center;
    }

    .fsm-landing .fsm-footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }

    .fsm-landing .fsm-footer-legal li + li::before {
        margin: 0 10px;
    }

    .fsm-landing .fsm-footer-langs {
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

/* Pantalles molt estretes: només bandera al selector d'idioma */
@media (max-width: 480px) {

    .fsm-landing .fsm-header-lang .fsm-lang-toggle .fsm-lang-label {
        display: none;
    }
}

/* Modal "Més pantalles de FSM" -------------------------------- */
.fsm-screens-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 20, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fsm-screens-overlay.open {
    display: flex;
}

.fsm-screens-modal {
    position: relative;
    width: min(90vw, 1400px);
    max-width: 1400px;
    max-height: calc(100vh - 32px);
    background: var(--fsm-card, #ffffff);
    border-radius: var(--fsm-radius-lg, 12px);
    box-shadow: var(--fsm-shadow-lg, 0 20px 60px rgba(8, 36, 83, 0.25));
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    gap: 18px;
    overflow: auto;
    font-family: var(--fsm-font-body, "Sora", sans-serif);
    outline: none;
}

.fsm-screens-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--fsm-background, #f7f9fc);
    color: var(--fsm-text-secondary, #4a5b7d);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fsm-screens-close:hover {
    color: var(--fsm-primary-dark, #0b3a73);
}

.fsm-screens-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 40px;
}

.fsm-screens-title {
    margin: 0;
    font-family: var(--fsm-font-display, "Rajdhani", sans-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: var(--fsm-font-bold, 700);
    color: var(--fsm-primary-dark, #0b3a73);
    letter-spacing: 0.01em;
}

.fsm-screens-subtitle {
    margin: 0;
    color: var(--fsm-text-secondary, #4a5b7d);
    font-size: 0.98rem;
}

.fsm-screens-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1080px) {
    .fsm-screens-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .fsm-screens-modal {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        padding: 22px 16px 18px;
    }
    .fsm-screens-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.fsm-screens-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fsm-border, #dbe6f5);
    border-radius: var(--fsm-radius-lg, 12px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--fsm-shadow-sm, 0 10px 30px rgba(8, 36, 83, 0.08));
}

.fsm-screens-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(11, 58, 115, 0.08) 0%, rgba(255, 133, 0, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--fsm-text-secondary, #4a5b7d);
    text-align: center;
    padding: 12px;
}

.fsm-screens-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--fsm-primary, #0f5fbf);
    font-size: 1.4rem;
    box-shadow: var(--fsm-shadow-sm, 0 10px 30px rgba(8, 36, 83, 0.12));
}

.fsm-screens-placeholder-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: var(--fsm-font-medium, 500);
}

.fsm-screens-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.fsm-screens-card-title {
    margin: 0;
    font-family: var(--fsm-font-display, "Rajdhani", sans-serif);
    font-size: 1.2rem;
    font-weight: var(--fsm-font-semibold, 600);
    color: var(--fsm-primary-dark, #0b3a73);
}

.fsm-screens-card-desc {
    margin: 0;
    color: var(--fsm-text, #1f2d3d);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal "FSM arribarà aviat" (Comença aquí) ---------------------- */
.fsm-soon-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 20, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fsm-soon-overlay.open {
    display: flex;
}

.fsm-soon-modal {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    background: var(--fsm-card, #ffffff);
    border-radius: var(--fsm-radius-lg, 12px);
    box-shadow: var(--fsm-shadow-lg, 0 20px 60px rgba(8, 36, 83, 0.25));
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    overflow: auto;
    font-family: var(--fsm-font-body, "Sora", sans-serif);
    outline: none;
}

.fsm-soon-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--fsm-background, #f7f9fc);
    color: var(--fsm-text-secondary, #4a5b7d);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fsm-soon-close:hover {
    color: var(--fsm-primary-dark, #0b3a73);
}

.fsm-soon-title {
    margin: 0;
    padding-right: 40px;
    font-family: var(--fsm-font-display, "Rajdhani", sans-serif);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: var(--fsm-font-bold, 700);
    color: var(--fsm-primary-dark, #0b3a73);
    letter-spacing: 0.01em;
}

.fsm-soon-desc {
    margin: 0;
    color: var(--fsm-text, #1f2d3d);
    font-size: 0.98rem;
    line-height: 1.65;
}

.fsm-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.fsm-soon-btn {
    flex: 1 1 180px;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 100px;
    gap: 10px;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 3px 13px rgba(8, 36, 83, 0.18);
    transition: background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fsm-soon-btn--facebook {
    background: #1877F2;
    border-color: #1877F2;
}

.fsm-soon-btn--facebook:hover {
    background: #166FE0;
    filter: brightness(1.03);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
}

.fsm-soon-btn--instagram {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    border-color: #DD2A7B;
}

.fsm-soon-btn--instagram:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 16px rgba(221, 42, 123, 0.35);
}

.fsm-soon-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.fsm-soon-tancar {
    border: none;
    background: none;
    padding: 6px 4px;
    color: var(--fsm-text-secondary, #4a5b7d);
    font-family: var(--fsm-font-body, "Sora", sans-serif);
    font-size: 0.9rem;
    font-weight: var(--fsm-font-semibold, 600);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fsm-soon-tancar:hover {
    color: var(--fsm-primary-dark, #0b3a73);
}

@media (max-width: 480px) {
    .fsm-soon-modal {
        padding: 22px 18px;
    }

    .fsm-soon-btn {
        flex: 1 1 100%;
    }
}

/* =========================================================
   LANDING / SECTIONS (Responsive)
   Complementa el bloc HEADER + FOOTER (Mobile): hero, mòduls,
   targetes de club, bàner promocional i modals. Els breakpoints
   (1080 / 767 / 600 / 480 / 400) redueixen columnes, apilen els
   blocs i ajusten tipografia i botons sense tocar l'escriptori.
========================================================= */

/* Pantalles mitjanes: 3 columnes perquè les targetes no quedin estretes */
@media (max-width: 1280px) {

    .fsm-landing .fsm-moduls-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {

    /* Hero: menys padding i sense el lema decoratiu (guanya espai) */
    .fsm-landing .fsm-hero {
        min-height: auto;
    }

    .fsm-landing .fsm-hero-inner {
        gap: 24px;
        padding: 48px 32px;
    }

    .fsm-landing .fsm-hero-title-line {
        font-size: 38px;
    }

    .fsm-landing .fsm-hero-accent {
        font-size: 46px;
    }

    .fsm-landing .fsm-hero-slogan {
        display: none;
    }

    /* Mòduls: de 6 a 3 columnes */
    .fsm-landing .fsm-moduls-inner {
        padding: 20px 40px 24px;
    }

    .fsm-landing .fsm-moduls-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Promo: passa de fila fixa a blocs apilats */
    .fsm-landing .fsm-promo {
        min-height: auto;
    }

    .fsm-landing .fsm-promo-inner {
        flex-wrap: wrap;
        height: auto;
        gap: 24px;
        padding: 32px;
    }

    .fsm-landing .fsm-promo-copy {
        flex: 1 1 100%;
        align-self: auto;
    }

    .fsm-landing .fsm-promo-benefits {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
    }

    .fsm-landing .fsm-promo-benefit {
        height: auto;
        min-height: 39px;
    }

    .fsm-landing .fsm-promo-preview {
        flex: 1 1 100%;
        max-width: none;
        align-self: auto;
    }
}

@media (max-width: 767px) {

    /* Hero apilat */
    .fsm-landing .fsm-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 20px 44px;
    }

    .fsm-landing .fsm-hero-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fsm-landing .fsm-hero-crest {
        width: 96px;
        height: 104px;
    }

    .fsm-landing .fsm-hero-content {
        max-width: none;
    }

    .fsm-landing .fsm-hero-title-line {
        font-size: clamp(30px, 8vw, 38px);
    }

    .fsm-landing .fsm-hero-accent {
        font-size: clamp(36px, 10vw, 46px);
    }

    .fsm-landing .fsm-hero-subtitle {
        font-size: 16px;
    }

    .fsm-landing .fsm-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .fsm-landing .fsm-hero-cta {
        width: 100%;
        justify-content: center;
    }

    .fsm-landing .fsm-hero-hex {
        display: none;
    }

    .fsm-landing .fsm-hero-expired {
        margin: 18px 16px 0;
    }

    /* Mòduls: 2 columnes i títol que pot fer salt de línia */
    .fsm-landing .fsm-moduls::before {
        display: none;
    }

    .fsm-landing .fsm-moduls-inner {
        padding: 22px 20px 26px;
    }

    .fsm-landing .fsm-moduls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fsm-landing .fsm-landing-section-title {
        height: auto;
        gap: 10px;
        font-size: 11px;
        letter-spacing: 0.22em;
        white-space: normal;
        text-align: center;
    }

    .fsm-landing .fsm-landing-section-rule {
        width: 18px;
    }

    /* Promo apilada */
    .fsm-landing .fsm-promo-inner {
        gap: 20px;
        padding: 28px 20px;
    }

    .fsm-landing .fsm-promo-title {
        font-size: clamp(24px, 7vw, 30px);
    }

    .fsm-landing .fsm-promo-benefits {
        grid-template-columns: 1fr;
    }

    .fsm-landing .fsm-promo-hex {
        display: none;
    }

    .fsm-landing .fsm-promo-curve {
        width: 72px;
        height: 60px;
    }

    /* Modal de previsualització */
    .fsm-preview-overlay {
        padding: 12px;
    }

    .fsm-preview-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        gap: 12px;
        padding: 20px 16px;
    }

    .fsm-preview-title {
        font-size: 1.3rem;
    }

    .fsm-preview-viewport {
        aspect-ratio: 4 / 3;
    }

    .fsm-preview-actions .fsm-button {
        flex: 1 1 auto;
    }

    /* Galeria de pantalles */
    .fsm-screens-overlay {
        padding: 12px;
    }
}

@media (max-width: 600px) {

    /* Targetes de club a una sola columna per llegibilitat */
    .fsm-landing .fsm-moduls-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* Capçalera més compacta */
    .fsm-landing .fsm-header-inner {
        gap: 8px 10px;
        padding: 8px 14px;
    }

    .fsm-landing .fsm-header-decoration {
        height: 30px;
    }

    .fsm-landing .fsm-header-account {
        gap: 6px;
    }

    .fsm-landing .fsm-header-account .fsm-button {
        gap: 7px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .fsm-landing .fsm-menu-toggle {
        padding: 7px 9px;
    }

    /* Login */
    .fsm-landing .fsm-login {
        padding: 26px 18px;
    }

    .fsm-landing .fsm-login .fsm-login-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Promo */
    .fsm-landing .fsm-promo-inner {
        padding: 24px 16px;
    }

    .fsm-landing .fsm-promo-benefit {
        gap: 12px;
        padding-right: 14px;
    }

    /* Modals */
    .fsm-preview-close,
    .fsm-screens-close {
        top: 8px;
        right: 8px;
    }

    .fsm-screens-modal {
        padding: 20px 14px 16px;
    }
}

@media (max-width: 400px) {

    /* Botons de compte només amb icona perquè la capçalera no trenqui */
    .fsm-landing .fsm-header-account .fsm-button {
        gap: 0;
        padding: 8px 10px;
        font-size: 0;
    }

    .fsm-landing .fsm-header-account .fsm-button i {
        font-size: 15px;
    }
}
