/* =========================================================
   FITFLICK MASTER CSS (V-PREMIUM)
   Fusão: Rebrand V2 + Cascade Cards + Create UX + Dark Support + Modal Fix
========================================================= */

/* =========================================================
   1. VARIÁVEIS, TEMA DARK E MOBILE OVERFLOW FIX
   (Herança do mobile-overflow-fix.css e member-dark-support.css)
========================================================= */
:root,
body.ff2 {
    --ff2-bg: #050816;
    --ff2-surface: rgba(15, 23, 42, 0.8);
    /* Translucidez Premium do Cascade */
    --ff2-surface-2: rgba(30, 41, 59, 0.85);
    --ff2-border: rgba(148, 163, 184, 0.2);

    --ff2-text: #e5e7eb;
    --ff2-muted: #94a3b8;
    /* Cor premium de hint */

    --ff2-p1: #a855f7;
    --ff2-p2: #ec4899;
    --gradient-brand: linear-gradient(135deg, var(--ff2-p1), var(--ff2-p2));

    --radius-md: 16px;
    --radius-lg: 20px;
    /* Herança do cascade-cards.css */
    --dock-h: 82px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* FIX DO MOBILE OVERFLOW MANTIDO E FORÇADO */
html,
body {
    width: 100%;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    background: #050816;
    color: var(--ff2-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}

body.ff2-modal-open,
body.modal-open {
    overflow: hidden !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
    outline: none;
    border: none;
}

/* Aurora Background (Profundidade) */
.ff2-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    position: relative;
    padding-bottom: calc(var(--dock-h) + 20px);
    z-index: 1;
}

.ff2-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -9995;
    pointer-events: none;
    background: radial-gradient(circle at 20% 12%, rgba(168, 85, 247, 0.15), transparent 45%),
        radial-gradient(circle at 86% 18%, rgba(236, 72, 153, 0.15), transparent 45%);
}

/* =========================================================
   2. APP SHELL E NAVEGAÇÃO
========================================================= */
.ff2-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ff2-border);
    display: flex;
    align-items: center;
}

.ff2-topbar-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ff2-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ff2-brand-mark {
    font-size: 20px;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ff2-brand-tag {
    font-size: 10px;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ff2-muted);
}

/* Layout Grid */
.ff2-main {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px;
}

.ff2-layout {
    display: flex;
    gap: 24px;
}

.ff2-content {
    flex: 1;
    min-width: 0;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.member-section {
    display: none;
    animation: ff2In 0.3s ease;
    max-width: 100% !important;
}

.member-section.is-active,
.member-section.active {
    display: block;
}

@keyframes ff2In {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar (Desktop) */
.ff2-side {
    display: none;
    width: 240px;
    flex-shrink: 0;
}

.ff2-side-card {
    position: sticky;
    top: 84px;
    background: var(--ff2-surface);
    border: 1px solid var(--ff2-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.ff2-side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--ff2-muted);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    text-align: left;
}

.ff2-side-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.ff2-side-item.is-active {
    background: rgba(168, 85, 247, 0.15);
    color: var(--ff2-p1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Dock Mobile */
.ff2-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: min(520px, calc(100% - 12px));
    height: var(--dock-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 10px 6px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.ff2-dock-item {
    flex: 1;
    background: transparent;
    color: var(--ff2-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.ff2-dock-item.is-active {
    color: var(--ff2-text);
}

.ff2-dock-item i {
    font-size: 19px;
}

.ff2-dock-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
    transform: translateY(-20px);
    cursor: pointer;
}

@media (min-width: 980px) {
    .ff2-side {
        display: block;
    }

    .ff2-dock {
        display: none !important;
    }
}

/* =========================================================
   3. A ESTRUTURA PREMIUM DOS CARDS E SOMBRAS
   (Herança exata do cascade-cards.css e member-dark-support.css)
========================================================= */
.ff2-card,
.ff2-block,
.create-card,
.support-card,
.member-card,
.look-options-card {
    background: var(--ff2-surface);
    border-radius: var(--radius-lg);
    /* O famoso 20px do Cascade */
    border: 1px solid var(--ff2-border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    /* Profundidade Premium do Dark Support */
    backdrop-filter: blur(16px);
    max-width: 100% !important;
}

.ff2-card-head,
.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e5e7eb;
    gap: 8px;
}

.ff2-h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.ff2-muted,
.card-hint {
    font-size: 12px;
    color: var(--ff2-muted);
    line-height: 1.5;
}

/* Botões Globais */
.ff2-btn,
.fitflick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.15s;
}

.ff2-btn-primary,
.fitflick-btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.ff2-btn-primary:active {
    transform: scale(0.98);
}

/* Pílulas Pequenas e Botão de Logout */
.ff2-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 99px;
    border: 1px solid var(--ff2-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ff2-pill-ghost {
    background: transparent;
}

/* Botão de Fechar Modal */
.ff2-iconbtn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

/* =========================================================
   4. HOME HERO E STATS
========================================================= */
.ff2-hero {
    background: var(--ff2-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    border: 1px solid var(--ff2-border);
}

.ff2-hero-top {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.ff2-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.ff2-hello {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.ff2-sub {
    font-size: 13px;
    color: var(--ff2-muted);
}

.ff2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ff2-stat {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ff2-border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.ff2-stat-k {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--ff2-muted);
    font-weight: 800;
    margin-bottom: 4px;
}

.ff2-stat-v {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.ff2-quick {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Em ecrãs maiores (Desktop), fica lado a lado PERFEITAMENTE */
@media (min-width: 600px) {
    .ff2-viewer-compare {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        overflow-x: visible !important;
    }

    .ff2-compare-col {
        flex: unset !important;
        width: 100% !important;
        aspect-ratio: 9 / 16 !important;
        /* MANTÉM a proporção Story no PC */
        max-height: 65vh !important;
        /* Trava a altura para não sair da tela */
        height: auto !important;
        margin: 0 auto !important;
    }
}

.ff2-quick-card {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.ff2-quick-alt {
    background: var(--ff2-surface-2);
    border-color: var(--ff2-border);
}

.ff2-quick-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.ff2-quick-sub {
    font-size: 12px;
    color: var(--ff2-muted);
}

.ff2-quick-cta {
    background: var(--gradient-brand);
    color: #fff;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   5. UX DE CRIAÇÃO (Herança do create-look-ux.css e cascade-cards.js)
========================================================= */
.ff2-create {
    max-width: 620px;
    margin: 0 auto;
}

.ff2-create-head {
    margin-bottom: 24px;
    text-align: center;
}

/* Acordeões */
.ff2-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: transparent;
    cursor: pointer;
    border-top: 1px solid var(--ff2-border);
}

.ff2-acc-left {
    flex: 1;
    text-align: left;
}

.ff2-acc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.ff2-acc-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff2-acc-sub {
    font-size: 12px;
    color: var(--ff2-muted);
    padding-left: 34px;
}

.ff2-acc-chevron {
    color: var(--ff2-muted);
    transition: 0.3s;
    font-size: 20px;
}

.ff2-acc-head[aria-expanded="true"] .ff2-acc-chevron {
    transform: rotate(180deg);
}

.ff2-acc-body {
    display: none;
    padding-bottom: 16px;
}

.ff2-acc-body.is-open {
    display: block;
}

/* Foto Padrão Mini Card (Conectado ao cascade-cards.js) */
.default-photo-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--ff2-border);
}

.default-photo-circle {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.default-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-photo-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.default-photo-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.btn-icon.btn-delete-default {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

/* Upload Zone Tracejado */
.ff2-upload-zone {
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--ff2-border);
    border-radius: 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
    text-align: center;
}

.ff2-upload-zone:hover {
    border-color: var(--ff2-p1);
    background: rgba(168, 85, 247, 0.05);
}

.ff2-upload-ico {
    font-size: 32px;
    margin-bottom: 8px;
}

.ff2-upload-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.upload-preview {
    position: absolute;
    inset: 0;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Segments (Upload vs Closet) */
.ff2-seg {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 99px;
    margin-bottom: 16px;
    border: 1px solid var(--ff2-border);
}

.ff2-seg-btn {
    flex: 1;
    padding: 10px;
    border-radius: 99px;
    background: transparent;
    color: var(--ff2-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.ff2-seg-btn.is-active {
    background: var(--ff2-surface-2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ff2-seg-panel {
    display: none;
}

.ff2-seg-panel.is-active {
    display: block;
}

/* Pílulas de Seleção (Tipos de Peça, Poses) */
.ff2-pillgrid,
#piecePillGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

@media(min-width: 480px) {

    .ff2-pillgrid,
    #piecePillGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ff2-pillopt {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ff2-border);
    border-radius: 16px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.ff2-pillopt.is-selected {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--ff2-p1);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.ff2-emo {
    font-size: 24px;
    line-height: 1;
}

.ff2-pillopt span:not(.ff2-emo) {
    font-size: 11px;
    font-weight: 800;
    color: var(--ff2-muted);
    text-align: center;
}

.ff2-pillopt.is-selected span:not(.ff2-emo) {
    color: #fff;
}

/* Choice Cards (Para abrir modais de Mix e Poses) */
.ff2-choices {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ff2-choicecard {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ff2-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ff2-choice-title {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.ff2-choice-sub {
    font-size: 12px;
    color: var(--ff2-muted);
}

.ff2-choicecard .ff2-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 11px;
}

/* Botão Flutuante Inferior (Gerar Look) */
.ff2-create-cta {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    margin-bottom: calc(var(--dock-h, 82px) + 24px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--ff2-border);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    left: unset !important;
    right: unset !important;
    transform: none !important;
}

.ff2-tokenbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 12px;
}

.ff2-tokenlabel {
    font-size: 13px;
    font-weight: 800;
    color: var(--ff2-muted);
}

.ff2-tokenvalue {
    font-size: 13px;
    font-weight: 900;
    background: var(--gradient-brand);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
}

.ff2-cta-sub {
    font-size: 12px;
    color: var(--ff2-muted);
    text-align: center;
    margin-top: 12px;
}

/* =========================================================
   6. CLOSET E PLANOS (Herança do create-look-ux.css)
========================================================= */
/* Planos e Tokens */
.tokens-current {
    background: var(--ff2-surface);
    border: 1px solid var(--ff2-border);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.tokens-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 480px) {
    .tokens-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tokens-label {
        font-size: 13px;
    }

    .tokens-counter {
        font-size: 14px;
    }
}

.tokens-label {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.tokens-counter {
    font-size: 14px;
    color: var(--ff2-p1);
    font-weight: 900;
}

.tokens-progress-track {
    background: rgba(0, 0, 0, 0.4);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tokens-progress-fill {
    background: var(--gradient-brand);
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.tokens-meta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.tokens-plan-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.plan-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ff2-border);
    border-radius: 16px;
    padding: 16px;
    font-size: 13px;
    color: var(--ff2-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.plan-card strong {
    color: #fff;
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 900;
}

.plan-card.is-selected {
    border-color: var(--ff2-p1) !important;
    background: rgba(168, 85, 247, 0.1) !important;
}

.plan-card-basic {
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.plan-card-basic strong {
    color: #60a5fa !important;
}

.plan-card-premium {
    border-color: rgba(236, 72, 153, 0.4) !important;
}

.plan-card-premium strong {
    color: #f472b6 !important;
}

.plan-card-diamond {
    border-color: rgba(226, 232, 240, 0.4) !important;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.05), rgba(0, 0, 0, 0.2)) !important;
}

.plan-card-diamond strong {
    color: #f8fafc !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ff2-plan-accordion {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.plan-card-header i {
    transition: transform 0.3s ease;
    color: var(--ff2-muted);
}

.plan-card-body {
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.plan-card-body ul.lb-plan-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.plan-card-body ul.lb-plan-features li {
    font-size: 13px;
    margin-bottom: 8px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-card-body ul.lb-plan-features li i {
    color: var(--ff2-p1);
    font-size: 11px;
    margin-top: 3px;
}

.ff2-plan-accordion.is-open .plan-card-header i {
    transform: rotate(180deg);
}

.ff2-plan-accordion.is-open .plan-card-body {
    max-height: 500px;
    opacity: 1;
    padding: 0 16px 16px;
}

/* Suporte */
.ff2-support {
    display: grid;
    gap: 12px;
}

.ff2-support-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ff2-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.ff2-support-ico {
    font-size: 32px;
    color: var(--ff2-p1);
    margin-bottom: 12px;
}

.ff2-support-title {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
}

/* Grid do Closet */
#closetItemsContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.closet-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid var(--ff2-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.closet-thumb {
    height: 140px;
    background: #000;
    position: relative;
}

.closet-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.closet-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.closet-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* O Botão Lindo do create-look-ux.css */
.btn-use-in-creation {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--ff2-border);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    margin-top: 4px;
    transition: 0.2s;
}

.btn-use-in-creation:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--ff2-p1);
}

/* =========================================================
   7. ABA DE LOOKS E GALERIA (O FIX 9:16 BLINDADO)
========================================================= */
.ff2-looks-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.ff2-filter {
    background: rgba(0, 0, 0, 0.3);
    color: var(--ff2-muted);
    border: 1px solid var(--ff2-border);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
}

.ff2-filter.is-active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Grade Inquebrável (Impede overflow no celular) */
#looks-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding-bottom: 40px !important;
}

@media(min-width: 600px) {
    #looks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.look-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid var(--ff2-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

/* A MÁGICA DO FORMATO STORY 9:16 */
.look-card-image-wrap {
    width: 100% !important;
    padding-bottom: 177.77% !important;
    position: relative !important;
    background: #020617 !important;
}

.look-card-image-wrap img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.look-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.look-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.look-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ff2-muted);
}

.look-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.look-badge-mock {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Compare Check */
.look-compare-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 5;
}

.look-card.is-compare .look-compare-check {
    opacity: 1;
}

.look-card.is-selected .look-compare-check {
    background: var(--success);
    border-color: var(--success);
}

.look-compare-check-inner {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: none;
}

.look-card.is-selected .look-compare-check-inner {
    display: block;
}

/* Empty State */
.ff2-looks-empty {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    border: 1px dashed var(--ff2-border);
    margin-bottom: 24px;
}

.ff2-looks-empty-ico {
    font-size: 48px;
    color: var(--ff2-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.ff2-looks-empty-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

/* =========================================================
   8. O SISTEMA MESTRE DE MODAIS (ANTI-QUEBRA / SCROLL SAFE)
========================================================= */

/* Fundo Escuro do Modal */
.ff2-modal,
.fitflick-modal-backdrop,
.look-viewer-backdrop,
.closet-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

/* Ativadores */
.ff2-modal.is-open,
.fitflick-modal-backdrop.is-visible,
.look-viewer-modal.active,
.closet-modal.active {
    display: flex !important;
}

/* A Caixa do Modal (O Segredo do Display Block) */
.ff2-modal-card,
.fitflick-modal,
.look-viewer-content,
.closet-modal-card {
    display: block !important;
    /* BLOCK impede o esmagamento do flexbox no celular */
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    height: auto !important;
    max-height: 85dvh !important;
    /* Limite vertical do celular */
    background: #0f172a !important;
    /* Fundo sólido para contraste legível */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8) !important;
    overflow-y: auto !important;
    /* ROLAGEM MÁGICA INTERNA AQUI */
    -webkit-overflow-scrolling: touch !important;
    /* Fluidez no iOS */
    padding: 24px !important;
}

/* Header dos Modais */
.ff2-modal-head,
.closet-inline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ff2-modal-title,
.fitflick-modal-title,
.member-modal-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.ff2-modal-sub,
.fitflick-modal-message,
.member-modal-subtitle {
    font-size: 14px;
    color: var(--ff2-muted);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
    display: block;
}

/* Permite que a imagem dite a sua própria altura (height: auto) e encaixe sem cortar */
.fitflick-modal-previewImg,
.look-viewer-image img,
.ff2-viewer-single img,
.ff2-modal-body img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    /* Puxa a altura natural da foto */
    max-height: 60vh !important;
    /* Limite de segurança para não sumir com os botões */
    object-fit: contain !important;
    /* Garante que 100% da foto apareça na tela */
    border-radius: 12px !important;
    background: transparent !important;
    /* Remove as bordas pretas laterais */
    margin: 0 auto 16px auto !important;
    box-shadow: none !important;
}

.look-viewer-image-wrap,
.ff2-look-image,
.fitflick-modal-previewWrap {
    background: transparent !important;
    padding: 0 !important;
}

/* Ações/Botões (Sempre fluem pra baixo) */
.ff2-modal-actions,
.fitflick-modal-actions,
.look-viewer-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 10px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ff2-modal-actions button,
.fitflick-modal-actions button,
.look-viewer-actions button {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

/* Botões de Fechar Modal */
.ff2-iconbtn.close,
.closet-modal-close,
.look-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
}

/* Formulário do Closet no Modal */
.closet-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.member-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.closet-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--ff2-text);
}

.closet-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ff2-border);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: 0.2s;
}

.closet-input:focus {
    border-color: var(--ff2-p1);
}

.closet-preview-box {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed var(--ff2-border);
    border-radius: 16px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

/* Loader Spin Customizado */
.loader,
.ff2-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--ff2-p1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error Message */
.form-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Botão principal da seção de planos na área de membros */
#memberPlansPricingBtn {
    border-radius: 999px;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(139, 92, 255, 0.35);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
    margin-top: 0.9rem;
}

#memberPlansPricingBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(139, 92, 255, 0.45);
}

/* Mobile first: garantir espaçamento adequado no card de planos disponíveis */
@media (max-width: 480px) {
    .plan-available-card {
        padding: 1.5rem 1.25rem;
    }

    .plan-available-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    #memberPlansPricingBtn {
        margin-top: 1.1rem;
    }
}

/* ========================================
   LOOK OPTIONS CARD (Background + Video)
   ======================================== */

.look-options-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.look-options-card .member-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.look-options-card .member-card-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ==========================================
   BACKGROUND CASCADE GRID (MOBILE-FIRST)
   ========================================== */

.background-cascade-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.bg-cascade-option {
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 0;
}

.bg-cascade-option:hover {
    border-color: rgba(148, 163, 184, 0.4);
    transform: translateY(-2px);
}

.bg-cascade-option.is-selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.bg-cascade-option.is-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.bg-cascade-option.is-locked::after {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.bg-cascade-preview {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.bg-preview-original {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.bg-preview-studio {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.bg-preview-street {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.bg-preview-beach {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.bg-cascade-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bg-cascade-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bg-cascade-label {
    font-weight: 600;
    font-size: 13px;
    color: #e5e7eb;
}

.bg-cascade-tag {
    font-size: 11px;
    color: #9ca3af;
}

.bg-cascade-option.is-selected .bg-cascade-label {
    color: #c4b5fd;
}

.bg-cascade-option.is-selected .bg-cascade-tag {
    color: #a78bfa;
}

/* Mobile: stack in 2 columns, smaller on very small screens */
@media (max-width: 360px) {
    .background-cascade-grid {
        gap: 8px;
    }

    .bg-cascade-icon {
        font-size: 28px;
    }

    .bg-cascade-info {
        padding: 8px 10px;
    }
}

/* Soft Divider */
.divider-soft {
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.3), transparent);
}

/* Video 360 Card */
.video360-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.video360-text {
    flex: 1;
}

.video360-title {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.video360-subtitle,
.video360-tagline {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 4px;
}

.video360-tagline {
    margin-top: 6px;
}

.btn-video360-plans {
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

/* Secondary button style (if not already defined) */
.btn-secondary {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.6);
    transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .video360-card {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-video360-plans {
        align-self: flex-start;
        margin-top: 8px;
    }
}

/* ========================================
   CLOSET SOURCE PILL
   ======================================== */

.closet-source-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #e5e7eb;
    font-size: 12px;
    margin-bottom: 10px;
}

.closet-source-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.closet-source-label {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

.closet-source-name {
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
}

.btn-clear-closet-source {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-clear-closet-source:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #f87171;
}

/* ========================================
   CLOSET CARD - "Use in Creation" Button
   ======================================== */

.btn-use-in-creation {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-use-in-creation:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.7);
    color: #c4b5fd;
    transform: translateY(-1px);
}

/* Ensure closet cards have proper spacing for the new button */
.closet-card .closet-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================================================
   FF2 FIX: COMPARE CAROUSEL (MOBILE) & GRID (DESKTOP)
========================================================= */
.ff2-viewer-compare {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Esconde scrollbar no Firefox */
}

.ff2-viewer-compare::-webkit-scrollbar {
    display: none;
    /* Esconde scrollbar no Chrome/Safari */
}

.ff2-compare-col {
    flex: 0 0 85%;
    /* No telemóvel, ocupa 85% para dar a dica de deslizar para a próxima */
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 9 / 16;
    /* Força proporção Story preenchida */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ff2-compare-col img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    /* PREENCHE TUDO, ZERO BORDAS PRETAS */
    border-radius: 0 !important;
    margin: 0 !important;
}

.ff2-compare-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 24px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Em ecrãs maiores (Desktop), fica lado a lado perfeitamente */
@media (min-width: 600px) {
    .ff2-viewer-compare {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        overflow-x: visible !important;
    }

    .ff2-compare-col {
        flex: 1;
        aspect-ratio: auto;
        height: 60vh;
        /* Altura segura no desktop */
    }
}

/* ═══════════════════════════════════════
   PACK CARDS — redesign v2
═══════════════════════════════════════ */

.lb-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    align-items: stretch;
}

/* Card base */
.lb-pack-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(168, 85, 247, 0.18);
    background: rgba(168, 85, 247, 0.06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    cursor: default;
}

.lb-pack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.18);
}

/* Hero visual area no topo do card */
.lb-pack-hero {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 1;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Wrapper de imagem do pack */
.pack-card-img-wrap {
    aspect-ratio: 4 / 3;
    background: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.pack-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fallback icon — some quando a imagem carrega */
.pack-hero-fallback {
    position: absolute;
    font-size: 36px;
    opacity: 0.6;
    pointer-events: none;
}

/* Gradientes únicos por tipo de pack */
.lb-pack-card[data-pack="looks-10"] .lb-pack-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.25));
}

.lb-pack-card[data-pack="video-1"] .lb-pack-hero {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.22));
}

.lb-pack-card[data-pack="video-3"] .lb-pack-hero {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(236, 72, 153, 0.35));
}

.lb-pack-card[data-pack="creator-boost"] .lb-pack-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(234, 88, 12, 0.2));
}

.lb-pack-card[data-pack="video-10"] .lb-pack-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.2));
}

/* Brilho decorativo no hero */
.lb-pack-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* Corpo do card */
.lb-pack-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 16px;
    gap: 4px;
}

/* Badge (Mais popular / Melhor custo-benefício) — faixa full-width abaixo da imagem */
.lb-pack-badge {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 16px !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
}

.lb-pack-badge.badge-popular {
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    color: #fff !important;
}

.lb-pack-badge.badge-boost {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #fff !important;
}

/* Pack Starter — cor verde/teal (produto de entrada) */
.pack-card--starter::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #4fffb0, #00d4aa);
    flex-shrink: 0;
}

.pack-card--starter .lb-pack-price {
    color: #4fffb0 !important;
    -webkit-text-fill-color: #4fffb0 !important;
    background: none !important;
}

.pack-card--starter .lb-pack-btn {
    background: linear-gradient(135deg, #4fffb0, #00d4aa) !important;
    color: #08080f !important;
    font-weight: 800 !important;
    box-shadow: 0 0 16px rgba(79, 255, 176, 0.25) !important;
}

.pack-card--starter .lb-pack-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Título */
.lb-pack-title {
    font-weight: 800;
    font-size: 14px;
    color: #e9d5ff;
    line-height: 1.3;
    margin-top: 2px;
}

/* Descrição principal */
.lb-pack-desc {
    font-size: 11.5px;
    color: rgba(196, 181, 253, 0.7);
    line-height: 1.45;
    flex: 1;
    /* empurra o preço + botão pra baixo */
}

/* Detalhe pequeno (bullet points ou specs) */
.lb-pack-specs {
    font-size: 10.5px;
    color: rgba(196, 181, 253, 0.45);
    line-height: 1.6;
    margin-top: 2px;
}

/* Preço riscado */
.lb-pack-old-price {
    font-size: 10px;
    color: rgba(196, 181, 253, 0.4);
    text-decoration: line-through;
    margin-top: 8px;
}

/* Preço principal */
.lb-pack-price {
    font-weight: 900;
    font-size: 20px;
    color: #c4b5fd;
    letter-spacing: -0.5px;
    margin-top: 2px;
}

.lb-pack-card[data-pack="creator-boost"] .lb-pack-price {
    color: #fcd34d;
}

.lb-pack-card[data-pack="video-10"] .lb-pack-price {
    color: #6ee7b7;
}

/* Botão — sempre na base, alinhado */
.lb-pack-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 0;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: opacity .15s, transform .1s;
}

.lb-pack-btn:hover {
    opacity: .88;
    transform: scale(1.02);
}

.lb-pack-btn:active {
    transform: scale(.97);
}

.lb-pack-btn.btn-looks {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
}

.lb-pack-btn.btn-video {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
}

.lb-pack-btn.btn-boost {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
}

.lb-pack-btn.btn-pro {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
}

/* Card "Mais popular" — borda mais intensa */
.lb-pack-card.is-featured {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2), 0 8px 24px rgba(168, 85, 247, 0.15);
}

/* Microcopy abaixo do grid */
.lb-packs-microcopy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

/* Mobile: 2 colunas */
@media (max-width: 480px) {
    .lb-packs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lb-pack-hero {
        aspect-ratio: 3/2;
        font-size: 32px;
    }

    .lb-pack-title {
        font-size: 13px;
    }

    .lb-pack-price {
        font-size: 17px;
    }
}

/* FIX: System Modals on top of everything (including look-viewer-modal) */
.fitflick-modal-backdrop,
.fitflick-modal-backdrop.is-visible {
    z-index: 2147483647 !important;
}

.fitflick-modal {
    z-index: 2147483647 !important;
}