@charset "UTF-8";
/* ================= BASE & VARIÁVEIS ================= */
:root {
    --bg-color: #FDF8F5;
    --text-main: #4A4A4A;
    --pink-main: #E8A0BF;
    --pink-hover: #d687a8;
    --lavender: #BA94D1;
    --blue-serene: #95BDFF;
    --white: #FFFFFF;
    --shadow: 0 8px 24px rgba(0,0,0,0.04);
    --border-radius: 24px;
    --red-alert: #ff6b6b;
    --yellow-alert: #FFC107;
    --green-ok: #4CAF50;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; }
.app-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* ================= HEADER FLUTUANTE & NAVEGAÇÃO ================= */
.main-header-sticky {
    position: sticky;
    top: 14px;
    z-index: 1000;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-desktop-pill {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
    border-radius: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nav-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-item-btn:hover {
    color: var(--pink-main);
    background: rgba(255, 240, 245, 0.85);
}

.nav-item-btn.active {
    background: var(--pink-main);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(226, 130, 168, 0.4);
}

.nav-item-btn.btn-sair {
    color: #e53935;
    margin-left: 8px;
}

.nav-item-btn.btn-sair:hover {
    background: #ffebee;
    color: #c62828;
}

.mobile-header-bar {
    display: none;
    pointer-events: auto;
    width: calc(100% - 32px);
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px 18px;
    align-items: center;
    justify-content: space-between;
}

.mobile-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--pink-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-hamburger-btn {
    background: #fff0f5;
    border: 1px solid #f8d7e6;
    color: var(--pink-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-drawer-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-content.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.mobile-drawer-link:hover {
    background: #fff0f5;
    color: var(--pink-main);
}

.mobile-drawer-link.active {
    background: var(--pink-main);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(226, 130, 168, 0.3);
}

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px;}
.header-title { font-size: 14px; color: var(--pink-main); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.header h1 { font-size: 32px; font-weight: 700; color: #222;}
.header p { color: #686868; font-size: 15px; margin-top: 8px; }

.btn-primary { background-color: var(--pink-main); color: var(--white); padding: 12px 24px; border-radius: 30px; border: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(232, 160, 191, 0.3); }
.btn-primary:hover { background-color: var(--pink-hover); transform: translateY(-2px); }
.btn-secondary { background-color: var(--bg-color); color: var(--lavender); padding: 12px 24px; border-radius: 30px; border: 2px solid var(--lavender); font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 6px; justify-content: center;}
.btn-secondary:hover { background-color: var(--lavender); color: var(--white); }
.btn-ghost { background: none; border: none; color: #888; font-weight: 600; cursor: pointer; padding: 12px 24px; }

.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ================= COMPONENTES GERAIS ================= */
.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.summary-card { background: var(--white); padding: 24px; border-radius: 32px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 20px; }
.card-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;}
.icon-purple { background-color: #F4ebf9; color: var(--lavender); }
.icon-blue { background-color: #ebf3ff; color: var(--blue-serene); }
.icon-red { background-color: #fff0f0; color: var(--red-alert); }
.icon-green { background-color: #e8f5e9; color: var(--green-ok); }
.icon-yellow { background-color: #fff8e1; color: var(--yellow-alert); }
.card-info { display: flex; flex-direction: column; }
.card-title { font-size: 13px; color: #888; font-weight: 600; margin-bottom: 4px; }
.card-value { font-size: 32px; font-weight: 700; color: #222; line-height: 1; margin-bottom: 4px; }
.card-subtitle { font-size: 12px; color: #888; }

.card-panel { background: var(--white); border-radius: 32px; padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px;}
.panel-header h2 { font-size: 20px; font-weight: 700; }

.table-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr auto; align-items: center; padding: 16px 0; border-bottom: 1px solid #f5f5f5; border-radius: 16px; transition: 0.2s; cursor: pointer;}
.table-row-finance { grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr auto; cursor: pointer; }
.table-row:hover:not(.table-header) { background-color: #fafafa; padding-left: 8px; }
.table-row:last-child { border-bottom: none; }
.table-header { font-weight: 600; color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; cursor: default; }
.table-header:hover { background-color: transparent; padding-left: 0; }

.aluna-info { display: flex; align-items: center; gap: 16px; }
.aluna-avatar { width: 48px; height: 48px; border-radius: 50%; background-color: #ccc; object-fit: cover; flex-shrink: 0;}
.aluna-name { font-weight: 600; font-size: 15px; color: #222;}
.aluna-time { font-size: 12px; color: #888; margin-top: 2px;}

.tag { background-color: var(--bg-color); color: var(--text-main); padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; display: inline-block; border: 1px solid #eee; cursor: pointer; transition: 0.2s;}
.tag.purple { background-color: var(--lavender); color: var(--white); border: none;}
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #555; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background-color: var(--green-ok); }
.dot.yellow { background-color: var(--yellow-alert); }
.dot.red { background-color: var(--red-alert); }

.btn-icon { width: 40px; height: 40px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 16px;}
.btn-whatsapp { background-color: var(--pink-main); color: white; }
.btn-whatsapp:hover { background-color: var(--pink-hover); }
.btn-check { background-color: #e8f5e9; color: var(--green-ok); }
.btn-check:hover { background-color: var(--green-ok); color: white; }

/* ================= AGENDA (HOME) ================= */
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.timeline { position: relative; padding-left: 24px; border-left: 2px solid #eee; margin-top: 16px;}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -31px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-serene); border: 3px solid var(--white); box-shadow: 0 0 0 1px #eee;}
.timeline-item.travel::before { background: #ccc; }
.timeline-item.personal::before { background: var(--pink-main); }
.time-label { font-size: 13px; font-weight: 700; color: #888; margin-bottom: 8px; display: block; letter-spacing: 0.5px;}
.agenda-card { background: var(--white); border: 1px solid #f0f0f0; border-radius: 20px; padding: 20px; transition: 0.2s; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;}
.agenda-card:hover { border-color: var(--pink-main); box-shadow: var(--shadow); }
.agenda-card.travel { background: var(--bg-color); border: 1px dashed #ccc; padding: 12px 20px;}
.agenda-title { font-weight: 700; font-size: 16px; color: #222; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.feed-container { display: flex; flex-direction: column; gap: 16px; }
.feed-item { background: var(--white); border-radius: 20px; padding: 20px; border: 1px solid #f0f0f0; display: flex; gap: 16px; align-items: flex-start; transition: 0.2s; cursor: pointer;}
.feed-item:hover { box-shadow: var(--shadow); border-color: var(--lavender); }
.feed-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;}

/* ================= GESTÃO DE PERSONAL (DESKTOP) ================= */
.personal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.sidebar-personal { background: var(--white); border-radius: 32px; padding: 24px; box-shadow: var(--shadow); }
.recent-aluna-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; transition: 0.2s; cursor: pointer; border: 1px solid transparent; margin-bottom: 8px;}
.recent-aluna-card:hover { background: var(--bg-color); border-color: #eee; }
.recent-aluna-card.active { background: #fafafa; border-color: var(--lavender); }
.anamnese-card { background: var(--white); border-radius: 32px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.treino-area { background: var(--white); border-radius: 32px; padding: 32px; box-shadow: var(--shadow); }
.tabs-wrapper { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;}
.tabs { display: flex; gap: 8px; background: var(--bg-color); padding: 8px; border-radius: 20px; flex: 1; overflow-x: auto;}
.tab { position: relative; flex: 1; text-align: center; padding: 12px 24px; border-radius: 16px; font-weight: 600; cursor: pointer; color: #888; transition: 0.3s; min-width: 100px;}
.tab.active { background: var(--pink-main); color: var(--white); box-shadow: 0 4px 12px rgba(232, 160, 191, 0.3); }
.tab-delete { position: absolute; top: 4px; right: 8px; font-size: 14px; opacity: 0.5; padding: 4px; cursor: pointer;}
.tab-delete:hover { opacity: 1; color: var(--red-alert); }
.tab-add { background: var(--bg-color); color: var(--lavender); width: 45px; height: 45px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; transition: 0.2s;}
.treino-header { margin-bottom: 24px; }
.treino-subtitle { font-size: 12px; font-weight: 700; color: var(--lavender); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 1px;}
.add-block-top { width: 100%; border: 1px dashed var(--lavender); background: #faf5ff; color: var(--lavender); padding: 16px; border-radius: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-bottom: 32px;}
.bloco-treino { margin-bottom: 32px; transition: transform 0.3s ease; }
.bloco-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px;}
.bloco-header-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.bloco-number { background: var(--lavender); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;}
.bloco-title-input { font-size: 18px; font-weight: 700; color: #222; border: none; background: transparent; outline: none; width: 100%; border-bottom: 1px dashed transparent; transition: 0.2s; font-family: inherit;}
.bloco-title-input:focus { border-bottom-color: var(--lavender); }
.exercicio-card { display: flex; align-items: flex-start; gap: 20px; padding: 20px; border: 1px solid #f0f0f0; border-radius: 24px; margin-bottom: 16px; transition: all 0.3s; background: var(--white); flex-wrap: wrap;}
.ex-video { width: 72px; height: 128px; background-color: #EFEFEF; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--pink-main); font-size: 24px; flex-shrink: 0; overflow: hidden; position: relative;}
.ex-video img, .ex-video iframe { width: 100%; height: 100%; object-fit: cover;}
.ex-info { flex: 1; min-width: 200px;}
.ex-header { display: flex; justify-content: space-between; align-items: flex-start;}
.ex-title { font-weight: 700; font-size: 16px; color: #222; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;}
.ex-badge { background: #f4f5f7; color: #555; font-size: 12px; padding: 4px 10px; border-radius: 8px; font-weight: 600; border: 1px solid #eaeaea;}
.ex-pause { font-size: 12px; color: #888; margin-top: 6px; display: block; }
.ex-obs { background: #F9F5FF; padding: 12px 16px; border-radius: 16px; font-size: 13px; color: #555; margin-top: 12px; }
.obs-title { color: var(--lavender); font-weight: 700; font-size: 11px; text-transform: uppercase; margin-bottom: 4px; display: block;}
.ex-actions { display: flex; gap: 4px; }
.action-btn { background: none; border: none; color: #aaa; font-size: 16px; cursor: pointer; transition: 0.2s; padding: 6px; border-radius: 8px;}
.action-btn:hover { color: var(--text-main); background: #fafafa;}
.add-exercise-btn { flex: 1; border: 1px dashed #ddd; background: transparent; color: var(--lavender); padding: 12px; border-radius: 16px; font-weight: 600; cursor: pointer; transition: 0.3s;}

/* ================= MODAIS & DRAWERS ================= */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(74, 74, 74, 0.4); backdrop-filter: blur(4px); z-index: 1000; justify-content: center; align-items: center; padding: 20px;}
.modal-content { background: var(--white); width: 100%; max-width: 600px; border-radius: 32px; padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 20px; color: #888; cursor: pointer; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }

.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: #888; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #eaeaea; border-radius: 12px; font-size: 14px; outline: none; transition: 0.2s; font-family: inherit; background: var(--bg-color); color: var(--text-main);}
.form-input:focus { border-color: var(--lavender); background: var(--white); box-shadow: 0 0 0 4px rgba(186, 148, 209, 0.1);}

.pill-selector { display: flex; gap: 8px; background: var(--bg-color); padding: 4px; border-radius: 12px; width: fit-content; flex-wrap: wrap;}
.pill { padding: 6px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: #888; transition: 0.2s; text-align: center;}
.pill.active { background: var(--white); color: var(--text-main); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.slider-container { display: flex; align-items: center; gap: 16px; }
.slider { flex: 1; -webkit-appearance: none; height: 6px; background: #ddd; border-radius: 3px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-serene); cursor: pointer; }

.series-row { display: grid; grid-template-columns: 30px 1fr auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.series-label { font-weight: 600; font-size: 14px; color: #888;}
.input-with-label { display: flex; align-items: center; background: var(--bg-color); border: 1px solid #eaeaea; border-radius: 12px; padding-right: 12px; transition: 0.2s; overflow: hidden;}
.input-with-label input { border: none; background: transparent; padding: 12px 16px; width: 100%; outline: none; font-family: inherit; font-size: 14px; color: var(--text-main);}
.dynamic-unit { font-size: 11px; color: #888; font-weight: 600; white-space: nowrap; }

.modal-footer { display: flex; justify-content: center; gap: 16px; margin-top: 32px; padding-top: 24px; flex-wrap: wrap;}
.photo-upload-circle { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-color); border: 2px dashed var(--lavender); display: flex; align-items: center; justify-content: center; color: var(--lavender); font-size: 24px; cursor: pointer; transition: 0.3s; margin: 0 auto 24px auto; overflow: hidden; position: relative;}
.price-display { background: var(--bg-color); border: 2px dashed var(--lavender); padding: 16px; border-radius: 16px; text-align: center; margin-top: 24px;}
.price-display span { display: block; font-size: 12px; color: #888; font-weight: 600; text-transform: uppercase; margin-bottom: 4px;}
.price-display h3 { font-size: 32px; color: var(--lavender); }
.discount-badge { background: var(--green-ok); color: white; font-size: 11px; padding: 2px 8px; border-radius: 8px; position: relative; top: -4px;}

@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(74, 74, 74, 0.4); backdrop-filter: blur(4px); z-index: 1050; justify-content: flex-end; }
.drawer-content { background: var(--white); width: 100%; max-width: 500px; height: 100%; padding: 32px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,0.1); animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative;}
.drawer-tab-btn { flex: 1; text-align: center; padding: 12px; font-weight: 600; font-size: 13px; color: #888; cursor: pointer; border-bottom: 2px solid transparent; transition: 0.3s;}
.drawer-tab-btn.active { color: var(--pink-main); border-bottom-color: var(--pink-main); }
.drawer-tab-content { display: none; padding-top: 24px; animation: fadeIn 0.3s; }
.drawer-tab-content.active { display: block; }
.info-readonly { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 14px;}
.info-readonly .label { color: #888; font-weight: 600; }
.info-readonly .value { color: #222; font-weight: 700; text-align: right;}

.section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--pink-main); margin-bottom: 16px; margin-top: 24px; letter-spacing: 0.5px;}
.section-title-blue { color: var(--blue-serene); }

/* ========================================================== */
/*         RESPONSIVIDADE MOBILE DEFINITIVA (<= 768px)        */
/* ========================================================== */
@media (max-width: 768px) {
    /* 1. TRAVA GLOBAL CONTRA ROLAGEM HORIZONTAL */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    .app-container {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 14px 10px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    .view, .card-panel, .personal-layout, #personal-main-area, .treino-area, .bloco-treino {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 2. MENU SUPERIOR */
    .nav-desktop-pill { display: none !important; }
    .mobile-header-bar { display: flex !important; }

    /* 3. ABAS DE TREINO EM PÍLULAS FLEXÍVEIS */
    .tabs-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        padding-bottom: 0 !important;
    }
    .tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        flex: 1 1 auto !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .tab {
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        border-radius: 20px !important;
        border: 1px solid #e0e0e0 !important;
        background: #f8f9fa !important;
    }
    .tab.active {
        background: var(--pink-main) !important;
        color: #fff !important;
        border-color: var(--pink-main) !important;
    }
    .tab-add {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
    }

    .treino-header {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 16px !important;
    }
    .treino-header input {
        font-size: 18px !important;
        width: 100% !important;
    }

    /* 4. CABEÇALHO DO BLOCO (1 - AQUECIMENTO) ALINHADO LADO A LADO */
    .bloco-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .bloco-header-left {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .bloco-number {
        flex: 0 0 28px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: var(--lavender) !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: bold !important;
        margin: 0 !important;
    }

    .bloco-title-input {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
        font-weight: bold !important;
        color: #222 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }

    .bloco-header > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        flex: 0 0 auto !important;
        gap: 4px !important;
        align-items: center !important;
    }

    .bloco-header .action-btn {
        width: 32px !important;
        height: 32px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #888 !important;
        font-size: 14px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .bloco-header .action-btn.delete { color: var(--red-alert) !important; }

    /* 5. CARTÃO DE EXERCÍCIO COM PLAYER VERTICAL COMPACTO (9:16) */
    .exercicio-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 8px !important;
        width: 100% !important;
        border-radius: 16px !important;
        border: 1px solid #f0f0f0 !important;
        background: #fff !important;
        margin-bottom: 12px !important;
        overflow: hidden !important;
    }

    .ex-video,
    .exercicio-card .ex-video {
        width: 100px !important;
        max-width: 100px !important;
        min-width: 100px !important;
        height: 175px !important;
        max-height: 175px !important;
        min-height: 175px !important;
        aspect-ratio: 9 / 16 !important;
        margin: 0 auto 8px auto !important;
        border-radius: 12px !important;
        background: #000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }

    .ex-video iframe,
    .exercicio-card .ex-video iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        display: block !important;
    }

    .ex-info {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .ex-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 4px !important;
    }

    .ex-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .ex-title-text {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    .ex-badge {
        display: inline-block !important;
        font-size: 11px !important;
        background: #f5f5f5 !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
    }

    .ex-pause {
        font-size: 12px !important;
        color: #777 !important;
        display: block !important;
        margin-top: 4px !important;
    }

    .ex-obs {
        display: block !important;
        background: #fdf8fb !important;
        border-left: 4px solid var(--pink-main) !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        margin-top: 6px !important;
        font-size: 12.5px !important;
        color: #444 !important;
        width: 100% !important;
    }

    .ex-obs .obs-title {
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: var(--pink-main) !important;
        margin-bottom: 4px !important;
    }

    /* 6. OS 5 BOTÕES VISÍVEIS E ALINHADOS (EXTINÇÃO DO MIN-WIDTH: 100PX) */
    .ex-actions,
    .exercicio-card .ex-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 10px !important;
        padding-top: 8px !important;
        border-top: 1px solid #f0f0f0 !important;
        background: transparent !important;
        position: static !important;
        gap: 0 !important;
    }

    /* Regra com especificidade máxima para matar o min-width herdado */
    #view-personal .ex-actions button,
    #view-personal .ex-actions .action-btn,
    .ex-actions .action-btn {
        flex: 1 1 0px !important;
        width: 20% !important;
        min-width: 0 !important;
        max-width: 20% !important;
        height: 38px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ex-actions .action-btn i {
        font-size: 16px !important;
        display: inline-block !important;
    }

    .ex-actions .drag-handle i { color: #94a3b8 !important; }
    .ex-actions .clone i       { color: var(--lavender) !important; }
    .ex-actions .swap i        { color: var(--pink-main) !important; }
    .ex-actions .edit i        { color: var(--blue-serene) !important; }
    .ex-actions .delete i      { color: var(--red-alert) !important; }

    /* 7. BOTÕES DA ANAMNESE (AGORA SEM AFETAR OS BOTÕES DE EXERCÍCIO) */
    #view-personal .anamnese-card .btn-primary {
        flex: 1 1 auto !important;
        min-width: 100px !important;
        font-size: 12px !important;
        padding: 10px !important;
        justify-content: center !important;
    }

    .anamnese-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .anamnese-card > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .anamnese-card > div:last-child #btn-ia-generate {
        grid-column: span 2 !important;
    }

    .bloco-treino > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .bloco-treino > div:last-child button {
        width: 100% !important;
        justify-content: center !important;
    }

    .personal-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 16px !important;
    }

    .sidebar-personal {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 8. TESOURARIA FORMATADA EM CARDS */
    .table-header,
    .table-row-finance.table-header,
    .table-row.table-header,
    #tabela-faturas-container .table-header,
    #tabela-alunas-container .table-header {
        display: none !important;
    }

    .table-row,
    .table-row-finance {
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        width: 100% !important;
    }

    .table-row-finance > div:last-child,
    .table-row > div:last-child {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
        border-top: 1px solid #f5f5f5 !important;
        padding-top: 10px !important;
        margin-top: 4px !important;
    }

    .table-row-finance .status,
    .table-row .status {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        width: fit-content !important;
    }

    .dashboard-grid, .doula-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .summary-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}