/* ════════════════════════════════════════════════
   TOKENS — Identidade Visual Essência Fit
   ════════════════════════════════════════════════ */
:root {
    --teal: #22aab2;
    --teal-dark: #178a91;
    --teal-deep: #0d6b71;
    --teal-light: #4ec4cb;
    --teal-pale: #d6f2f4;
    --teal-dim: rgba(34,170,178,0.12);
    --teal-glow: rgba(34,170,178,0.25);
    --white: #ffffff;
    --off-white: #f7fefe;
    --snow: #eef8f9;
    --mist: #ddf0f2;
    --slate: #4a6669;
    --ink: #1a2e30;
    --ink-light: #6a8a8d;
    --border: #c8e8ea;
    --border-light: #e4f4f5;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
    --shadow-xs: 0 1px 6px rgba(34,170,178,0.08);
    --shadow-sm: 0 2px 16px rgba(34,170,178,0.10);
    --shadow-md: 0 6px 32px rgba(34,170,178,0.14);
    --shadow-lg: 0 12px 48px rgba(34,170,178,0.18);
    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --radius-pill: 100px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.75;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--snow);
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 3px;
}

/* ════════════════════════════════════════════════
   TIPOGRAFIA
   ════════════════════════════════════════════════ */
.ef-heading-display {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
}

    .ef-heading-display em {
        font-style: italic;
        color: var(--teal);
    }

.ef-heading-section {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
}

.ef-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
}

.ef-text-body {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.85;
}

.ef-text-muted {
    font-size: 0.8rem;
    color: var(--slate);
    opacity: 0.7;
}

.ef-text-stat {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--teal);
    line-height: 1;
}

/* ════════════════════════════════════════════════
   DIVISORES
   ════════════════════════════════════════════════ */
.ef-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.ef-divider-teal {
    border: none;
    border-top: 2px solid var(--teal-pale);
    margin: 20px 0;
    position: relative;
}

    .ef-divider-teal::after {
        content: '';
        position: absolute;
        left: 0;
        top: -2px;
        width: 40px;
        height: 2px;
        background: var(--teal);
        border-radius: 2px;
    }

/* ════════════════════════════════════════════════
   LAYOUT — SIDEBAR
   ════════════════════════════════════════════════ */
.ef-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 248px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 200;
    border-right: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.ef-sidebar-brand {
    padding: 30px 24px 22px;
    border-bottom: 1px solid var(--border-light);
}

.ef-brand-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

    .ef-brand-name span {
        color: var(--teal);
    }

.ef-brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
    margin-top: 2px;
}

.ef-sidebar-nav {
    flex: 1;
    padding: 18px 0;
    overflow-y: auto;
}

    .ef-sidebar-nav ul {
        list-style: none;
    }

.ef-nav-group-label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    opacity: 0.6;
    padding: 18px 22px 6px;
    font-weight: 700;
}

.ef-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 22px;
    color: var(--slate);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 1px 0;
}

    .ef-nav-item i {
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .ef-nav-item:hover {
        color: var(--teal-dark);
        background: var(--teal-dim);
    }

    .ef-nav-item.active {
        color: var(--teal-dark);
        background: var(--teal-dim);
        border-left-color: var(--teal);
        font-weight: 600;
    }

.ef-sidebar-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ════════════════════════════════════════════════
   AVATAR
   ════════════════════════════════════════════════ */
.ef-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--teal-dim);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--teal-dark);
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.ef-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    display: block;
}

    .ef-avatar.lg {
        width: 52px;
        height: 52px;
        font-size: 1rem;
    }

.ef-avatar-name {
    font-size: 0.84rem;
    color: var(--ink);
    font-weight: 600;
}

.ef-avatar-role {
    font-size: 0.72rem;
    color: var(--slate);
    opacity: 0.75;
}

/* ════════════════════════════════════════════════
   LAYOUT — CONTEÚDO PRINCIPAL
   ════════════════════════════════════════════════ */
.ef-main {
    margin-left: 248px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ef-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 0 34px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ef-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ef-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ef-page {
    padding: 34px;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.ef-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.ef-page-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ════════════════════════════════════════════════
   GRIDS
   ════════════════════════════════════════════════ */
.ef-grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.ef-grid-4 > * { min-width: 0; }

.ef-grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.ef-grid-3 > * { min-width: 0; }

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.admin-nav-grid > * { min-width: 0; }

.ef-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.ef-grid-main-side {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    margin-bottom: 24px;
}

/* ════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════ */
.ef-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.25s, transform 0.25s;
}

    .ef-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.ef-card-flat {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.ef-card-snow {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.ef-card-teal {
    background: var(--teal);
    border-radius: var(--radius-lg);
    padding: 26px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .ef-card-teal::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        background: rgba(255,255,255,0.07);
        border-radius: 50%;
    }

    .ef-card-teal::after {
        content: '';
        position: absolute;
        bottom: -60px;
        right: 20px;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

    .ef-card-teal .ef-label {
        color: rgba(255,255,255,0.7);
    }

    .ef-card-teal .ef-heading-section {
        color: var(--white);
    }

    .ef-card-teal .ef-text-body {
        color: rgba(255,255,255,0.75);
    }

.ef-card-ink {
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 26px;
    color: var(--white);
}

    .ef-card-ink .ef-heading-section {
        color: var(--white);
    }

    .ef-card-ink .ef-text-body {
        color: rgba(255,255,255,0.6);
    }

    .ef-card-ink .ef-label {
        color: var(--teal-light);
    }

.ef-card-outline-teal {
    background: var(--white);
    border: 2px solid var(--teal);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.ef-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

/* ════════════════════════════════════════════════
   MÉTRICAS / KPI
   ════════════════════════════════════════════════ */
.ef-metric {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

    .ef-metric:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .ef-metric::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--teal), var(--teal-light));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s;
    }

    .ef-metric:hover::after {
        transform: scaleX(1);
    }

.ef-metric-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    margin-bottom: 14px;
}

    .ef-metric-icon.dark {
        background: var(--snow);
        color: var(--ink);
    }

.ef-metric-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}

.ef-metric-label {
    font-size: 0.78rem;
    color: var(--slate);
    font-weight: 400;
}

.ef-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    margin-top: 10px;
}

    .ef-metric-badge.up {
        background: var(--teal-pale);
        color: var(--teal-dark);
    }

    .ef-metric-badge.down {
        background: #fce8e4;
        color: #c0452a;
    }

    .ef-metric-badge.neutral {
        background: var(--snow);
        color: var(--slate);
    }

    .ef-metric-badge.pending {
        background: #fff4e0;
        color: #a06500;
    }

/* ════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════ */
.ef-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

    .ef-badge.active {
        background: var(--teal-pale);
        color: var(--teal-dark);
    }

    .ef-badge.pending {
        background: #fff4e0;
        color: #a06500;
    }

    .ef-badge.inactive {
        background: var(--snow);
        color: var(--slate);
    }

    .ef-badge.alert {
        background: #fce8e4;
        color: #c0452a;
    }

    .ef-badge.new {
        background: var(--teal);
        color: var(--white);
    }

/* ════════════════════════════════════════════════
   BOTÕES
   ════════════════════════════════════════════════ */
.ef-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}

    .ef-btn-primary:hover {
        background: var(--teal-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 18px var(--teal-glow);
    }

.ef-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .ef-btn-outline:hover {
        background: var(--teal);
        color: var(--white);
    }

.ef-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--slate);
    border: none;
    padding: 7px 12px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .ef-btn-ghost:hover {
        background: var(--snow);
        color: var(--teal);
    }

.ef-btn-icon {
    width: 38px;
    height: 38px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .ef-btn-icon:hover {
        background: var(--teal-dim);
        border-color: var(--teal);
        color: var(--teal);
    }

.ef-btn-sm {
    padding: 6px 12px;
    font-size: .74rem;
}


.ef-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c0452a !important;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════
   FORMULÁRIOS
   ════════════════════════════════════════════════ */
.ef-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.ef-label-field {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.03em;
}

.ef-input {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

    .ef-input:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px var(--teal-dim);
        background: var(--white);
    }

    .ef-input::placeholder {
        color: rgba(74,102,105,0.4);
    }

    .ef-input[rows] {
        resize: vertical;
        min-height: 80px;
    }

.ef-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .ef-input-icon-wrap i {
        position: absolute;
        left: 13px;
        color: var(--teal);
        opacity: 0.7;
        font-size: 0.95rem;
    }

    .ef-input-icon-wrap .ef-input {
        padding-left: 38px;
    }

.ef-select {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 36px 10px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2322aab2' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

    .ef-select:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px var(--teal-dim);
    }

.ef-validation-error {
    color: #e05c5c;
    font-size: .76rem;
    margin-top: 3px;
    display: block;
}

/* ════════════════════════════════════════════════
   TABELA
   ════════════════════════════════════════════════ */
.ef-table-wrap {
    overflow: auto;
}

.ef-table {
    width: 100%;
    border-collapse: collapse;
}

    .ef-table thead tr {
        border-bottom: 2px solid var(--border-light);
    }

    .ef-table th {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--teal);
        font-weight: 700;
        padding: 10px 14px;
        text-align: left;
    }

    .ef-table td {
        padding: 13px 14px;
        font-size: 0.88rem;
        color: var(--ink);
        border-bottom: 1px solid var(--border-light);
        vertical-align: middle;
    }

    .ef-table tbody tr:hover td {
        background: var(--snow);
    }

    .ef-table tbody tr:last-child td {
        border-bottom: none;
    }

/* ════════════════════════════════════════════════
   PROGRESSO
   ════════════════════════════════════════════════ */
.ef-progress {
    background: var(--teal-pale);
    border-radius: var(--radius-pill);
    height: 7px;
    overflow: hidden;
}

.ef-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

.ef-progress-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--teal) calc(var(--pct) * 1%), var(--teal-pale) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .ef-progress-ring::after {
        content: '';
        width: 54px;
        height: 54px;
        background: var(--white);
        border-radius: 50%;
        position: absolute;
    }

.ef-progress-ring-label {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--teal-dark);
}

/* ════════════════════════════════════════════════
   TIMELINE
   ════════════════════════════════════════════════ */
.ef-timeline {
    display: flex;
    flex-direction: column;
}

.ef-timeline-item {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    position: relative;
}

    .ef-timeline-item::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 32px;
        bottom: 0;
        width: 1px;
        background: var(--border);
    }

    .ef-timeline-item:last-child::before {
        display: none;
    }

.ef-timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--teal-dim);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--teal);
    flex-shrink: 0;
    z-index: 1;
}

.ef-timeline-body {
    flex: 1;
    padding-top: 4px;
}

.ef-timeline-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.ef-timeline-date {
    font-size: 0.73rem;
    color: var(--slate);
    opacity: 0.7;
    margin-top: 2px;
}

.ef-timeline-text {
    font-size: 0.83rem;
    color: var(--slate);
    margin-top: 5px;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════
   LISTA
   ════════════════════════════════════════════════ */
.ef-list {
    list-style: none;
}

.ef-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

    .ef-list-item:last-child {
        border-bottom: none;
    }

.ef-list-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ef-list-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ef-list-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.ef-list-item-sub {
    font-size: 0.75rem;
    color: var(--slate);
    opacity: 0.75;
}

/* ════════════════════════════════════════════════
   ALERTAS
   ════════════════════════════════════════════════ */
.ef-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

    .ef-alert i {
        margin-top: 2px;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .ef-alert.info {
        background: var(--teal-pale);
        color: var(--teal-deep);
        border-left: 3px solid var(--teal);
    }

    .ef-alert.warning {
        background: #fff4e0;
        color: #8a5a00;
        border-left: 3px solid #f0a500;
    }

    .ef-alert.success {
        background: #e8f5e9;
        color: #2e6b33;
        border-left: 3px solid #4caf6e;
    }

    .ef-alert.error {
        background: #fce8e4;
        color: #c0452a;
        border-left: 3px solid #e07060;
    }

/* ════════════════════════════════════════════════
   TAG
   ════════════════════════════════════════════════ */
.ef-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--teal-dim);
    color: var(--teal-dark);
    border: 1px solid var(--teal-pale);
}

/* ════════════════════════════════════════════════
   MODAL (uma única definição)
   ════════════════════════════════════════════════ */
.ef-modal {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ef-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
}

.ef-modal-body {
    padding: 20px 24px;
}

.ef-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* ════════════════════════════════════════════════
   UTILITÁRIOS
   ════════════════════════════════════════════════ */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-gap-sm {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-gap-md {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.mt-xs {
    margin-top: 4px;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 26px;
}

.mb-xs {
    margin-bottom: 4px;
}

.mb-sm {
    margin-bottom: 8px;
}

.mb-md {
    margin-bottom: 16px;
}

.mb-lg {
    margin-bottom: 26px;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.text-teal {
    color: var(--teal);
}

.text-white {
    color: var(--white);
}

.text-ink {
    color: var(--ink);
}

.w-full {
    width: 100%;
}

/* ════════════════════════════════════════════════
   OVERLAY
   ════════════════════════════════════════════════ */
.ef-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,46,48,0.55);
    z-index: 290;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}

    .ef-overlay.visible {
        display: block;
        opacity: 1;
    }

/* ════════════════════════════════════════════════
   TOPBAR MOBILE
   ════════════════════════════════════════════════ */
.ef-topbar-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    box-shadow: var(--shadow-xs);
}

.ef-topbar-mobile-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

    .ef-topbar-mobile-brand span {
        color: var(--teal);
    }

.ef-topbar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ════════════════════════════════════════════════
   HAMBURGER
   ════════════════════════════════════════════════ */
.ef-btn-hamburger {
    width: 38px;
    height: 38px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

    .ef-btn-hamburger:hover {
        background: var(--teal-dim);
        border-color: var(--teal);
    }

    .ef-btn-hamburger span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: all 0.25s;
        transform-origin: center;
    }

    .ef-btn-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .ef-btn-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .ef-btn-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ════════════════════════════════════════════════
   DRAWER
   ════════════════════════════════════════════════ */
.ef-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

    .ef-drawer.open {
        transform: translateX(0);
    }

.ef-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.ef-btn-close-drawer {
    width: 34px;
    height: 34px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .ef-btn-close-drawer:hover {
        background: var(--teal-dim);
        color: var(--teal);
        border-color: var(--teal);
    }

.ef-drawer-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

    .ef-drawer-nav ul {
        list-style: none;
    }

.ef-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   BOTTOM NAV
   ════════════════════════════════════════════════ */
.ef-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(34,170,178,0.08);
}

.ef-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
    padding: 0;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    padding-top: 1px;
}

.ef-bottom-nav-item {
    flex: 1;
    min-width: 0; /* ← impede overflow quebrando o flex */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--slate);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 6px 2px;
    border-radius: var(--radius);
    transition: all 0.18s;
    position: relative;
}

    .ef-bottom-nav-item i {
        font-size: 1.25rem;
        transition: transform 0.18s;
        margin-bottom: -8px; /* ← NEGATIVO para puxar o texto para cima */
    }

    .ef-bottom-nav-item:hover {
        color: var(--teal);
    }

        .ef-bottom-nav-item:hover i {
            transform: translateY(-2px);
        }

    .ef-bottom-nav-item.active {
        color: var(--teal);
    }

        .ef-bottom-nav-item.active i {
            color: var(--teal);
        }

        .ef-bottom-nav-item.active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 28px;
            height: 3px;
            background: var(--teal);
            border-radius: 0 0 4px 4px;
        }

    /* ── BOTÃO CENTRAL FAB ── */
    .ef-bottom-nav-item.center {
        flex: 1;
        width: 56px;
        height: 56px;
        padding: 0;
        margin: 0 8px;
        position: relative; /* era relative com top:-14px — removi o top */
        top: 0px; /* sobe o botão acima da barra sem tirar do fluxo */
        background: var(--teal);
        color: var(--white);
        border-radius: 50%;
        box-shadow: 0 4px 16px var(--teal-glow);
        align-self: center; /* garante centralização vertical no flex pai */
        justify-content: center;
        align-items: center;
    }

        .ef-bottom-nav-item.center i {
            font-size: 1.4rem;
            color: var(--white);
        }

        .ef-bottom-nav-item.center span {
            display: none;
        }

        .ef-bottom-nav-item.center:hover {
            background: var(--teal-dark);
            color: var(--white);
            transform: scale(1.08);
        }

        .ef-bottom-nav-item.center::before {
            display: none;
        }

        .ef-bottom-nav-item.center.active::before {
            display: none;
        }
/* ════════════════════════════════════════════════
   NAV CARDS (menu de módulos — admin e aluno)
   ════════════════════════════════════════════════ */
/* ef-nav-card — dashboard admin (coluna, ícone centrado) */
.ef-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 10px;
    text-align: center;
    background: var(--off-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
    color: inherit;
}

    .ef-nav-card i {
        font-size: 1.5rem;
        color: var(--teal);
        transition: transform 0.2s;
    }

    .ef-nav-card:hover {
        background: var(--white);
        border-color: var(--teal);
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
        color: inherit;
    }

        .ef-nav-card:hover i {
            transform: scale(1.12);
        }

.ef-nav-card-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    flex-shrink: 0;
}

.ef-nav-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.ef-nav-card-sub {
    font-size: 0.7rem;
    color: var(--slate);
    opacity: 0.8;
}

.ef-nav-card-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c0452a;
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
}

/* ef-nav-card--row — área do aluno (linha, ícone + texto lateral) */
.ef-nav-card--row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
    justify-content: flex-start;
    background: var(--white);
}

    .ef-nav-card--row i {
        font-size: 1.2rem;
    }

    .ef-nav-card--row:hover i {
        transform: none;
    }

.ef-nav-card-arrow {
    margin-left: auto;
    color: var(--teal);
    font-size: .8rem;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    flex-shrink: 0;
}

.ef-nav-card--row:hover .ef-nav-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════
   COMPONENTES REUTILIZÁVEIS — SHARED
   ════════════════════════════════════════════════ */

/* Progress track (rsm, checklist, assinatura) */
.rsm-progress-track {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rsm-progress-bar {
    height: 100%;
    background: var(--teal);
    border-radius: 4px;
    transition: width .4s ease;
}

.rsm-progress-bar--active {
    background: var(--teal);
}

.rsm-progress-bar--pending {
    background: #f0a500;
}

.rsm-progress-bar--alert {
    background: #e05c5c;
}

/* Número circular de exercício */
.exe-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .78rem;
}

/* Badge de divisão de treino */
.aldet-divisao-badge {
    background: var(--teal);
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Status bar (sessões, checklist) */
.chkrev-status-bar {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    overflow: hidden;
}

.chkrev-status-item {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    border-right: 1px solid var(--border-light);
    flex: 1;
    min-width: 120px;
}

    .chkrev-status-item:last-child {
        border-right: none;
    }

.chkrev-status-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 5px;
}

/* ── Seletor de protocolo de dobras ────────────────────────── */
.protocolo-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
}

.protocolo-option input[type="radio"] { display: none; }

.protocolo-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all .2s;
    color: transparent;
    font-size: .7rem;
}

.protocolo-option.selected {
    border-color: var(--teal);
    background: var(--teal-dim);
}

.protocolo-option.selected .protocolo-check {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* Checkbox toggle card */
.chkrev-check-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--snow);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s;
    margin-top: 8px;
}

    .chkrev-check-toggle:hover {
        border-color: var(--teal);
    }

    .chkrev-check-toggle input {
        display: none;
    }

.chkrev-check-box {
    width: 22px;
    height: 22px;
    background: var(--teal);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .8rem;
    flex-shrink: 0;
}

/* Medida item */
.avaldet-medida-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

/* Inbox item (Inbox e Enviadas) */
.inbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
}

    .inbox-item:last-child {
        border-bottom: none;
    }

    .inbox-item:hover {
        background: var(--off-white);
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
        border-radius: var(--radius);
    }

.inbox-item--nova {
    background: var(--teal-dim);
}

    .inbox-item--nova:hover {
        background: var(--teal-pale);
    }

.inbox-item-avatar {
    position: relative;
    flex-shrink: 0;
}

.inbox-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--teal);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.inbox-item-body {
    flex: 1;
    min-width: 0;
}

.inbox-item-titulo {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-item-meta {
    font-size: .76rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.inbox-item-arrow {
    color: var(--teal);
    opacity: .5;
    font-size: .85rem;
    flex-shrink: 0;
    transition: transform .15s, opacity .15s;
}

.inbox-item:hover .inbox-item-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Filtro pill de assinatura */
.ass-filtro-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: .78rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all .15s;
}

    .ass-filtro-pill:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

.ass-filtro-pill--all, .ass-filtro-pill--active {
    background: var(--teal-dim);
    border-color: var(--teal);
    color: var(--teal-dark);
}

.ass-filtro-pill--pending {
    background: #fef3cd;
    border-color: #f0a500;
    color: #7a5000;
}

.ass-filtro-pill--inactive {
    background: var(--snow);
    border-color: var(--border);
    color: var(--slate);
}

.ass-filtro-pill--alert {
    background: #fce8e4;
    border-color: #e05c5c;
    color: #c0452a;
}

/* ════════════════════════════════════════════════
   TREINOS
   ════════════════════════════════════════════════ */
.treinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.treino-card {
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s, transform 0.2s;
}

    .treino-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.treino-card--arquivado {
    background: var(--snow);
    border-color: var(--border);
    opacity: .85;
}

.treino-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.treino-card-icon {
    width: 40px;
    height: 40px;
    background: var(--teal-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--teal);
    flex-shrink: 0;
}

.treino-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    margin: 0;
}

.treino-card-desc {
    font-size: .82rem;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.treino-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.treino-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.treinos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .treinos-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: 0.3;
        margin-bottom: 8px;
    }

/* ════════════════════════════════════════════════
   SESSÃO
   ════════════════════════════════════════════════ */
.sessao-info-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.sessao-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 24px;
    border-right: 1px solid var(--border-light);
    flex: 1;
    min-width: 140px;
}

    .sessao-info-item:last-child {
        border-right: none;
    }

.sessao-info-value {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sessao-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 20px;
    text-align: center;
    gap: 8px;
}

    .sessao-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: 0.3;
        margin-bottom: 8px;
    }

.sessao-table-wrap {
    display: block;
}

.sessao-card-list {
    display: none;
}

.sessao-exercicio-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.sessao-mobile-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ════════════════════════════════════════════════
   SESSÕES ADMIN (Index e Details)
   ════════════════════════════════════════════════ */
.sess-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.sess-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .sess-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.sess-table-wrap {
    display: block;
}

.sess-card-list {
    display: none;
}

.sess-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
}

.sessdet-table-wrap {
    display: block;
}

.sessdet-card-list {
    display: none;
}

.sessdet-val {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.sessdet-tag-warn {
    background: #fef3cd !important;
    border-color: #f0a500 !important;
    color: #7a5000 !important;
}

.sessdet-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 10px;
}

.sessdet-mobile-info {
    display: flex;
    flex-direction: column;
}

.sess-ex-card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border-light);
}

.sess-ex-card--ok {
    border-left: 4px solid var(--teal);
}

.sess-ex-card--pending {
    border-left: 4px solid #f0a500;
}

.sess-compare-box {
    padding: 8px 10px;
    border-radius: var(--radius);
}

/* ════════════════════════════════════════════════
   PROGRESSO (AdminProgresso)
   ════════════════════════════════════════════════ */
.progresso-table-wrap {
    display: block;
}

.progresso-card-list {
    display: none;
}

.progresso-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.progresso-mobile-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.progresso-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .progresso-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: 0.3;
        margin-bottom: 8px;
    }

.prog-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.prog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .prog-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.prog-table-wrap {
    display: block;
}

.prog-card-list {
    display: none;
}

.prog-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 10px;
}

/* ════════════════════════════════════════════════
   PRESCREVER TREINO
   ════════════════════════════════════════════════ */
.prescrever-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.prescrever-aluno-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prescrever-aluno-nome {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.prescrever-aluno-info {
    color: var(--ink-light);
    font-size: .82rem;
}

.prescrever-form-group {
    margin-top: 16px;
}

.prescrever-modo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.prescrever-modo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    text-align: center;
}

    .prescrever-modo-card i {
        font-size: 1.4rem;
        color: var(--ink-light);
        transition: color .18s;
    }

    .prescrever-modo-card strong {
        font-size: .82rem;
        color: var(--ink);
        display: block;
    }

    .prescrever-modo-card span {
        font-size: .72rem;
        color: var(--ink-light);
        line-height: 1.3;
    }

    .prescrever-modo-card:hover {
        border-color: var(--teal);
        background: var(--snow);
    }

    .prescrever-modo-card.active {
        border-color: var(--teal);
        background: rgba(34,170,178,.07);
        box-shadow: 0 0 0 3px rgba(34,170,178,.12);
    }

        .prescrever-modo-card.active i {
            color: var(--teal);
        }

        .prescrever-modo-card.active strong {
            color: var(--teal-dark);
        }

.prescrever-painel {
    margin-top: 16px;
    animation: prescreverFadeIn .18s ease;
}

@keyframes prescreverFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prescrever-divisao-sugestao {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 12px;
    padding: 16px;
    background: var(--snow);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    align-items: end;
}

.prescrever-sugestao-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prescrever-sugestao-valor {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.prescrever-sugestao-edit {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prescrever-divisao-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.prescrever-divisao-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    text-align: left;
    width: 100%;
}

    .prescrever-divisao-card:hover {
        border-color: var(--teal);
        background: var(--snow);
    }

    .prescrever-divisao-card.selected {
        border-color: var(--teal);
        background: rgba(34,170,178,.07);
        box-shadow: 0 0 0 3px rgba(34,170,178,.12);
    }

.prescrever-divisao-letra {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--teal);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
    transition: background .18s;
}

.prescrever-divisao-card:hover .prescrever-divisao-letra,
.prescrever-divisao-card.selected .prescrever-divisao-letra {
    background: var(--teal-dark);
}

.prescrever-divisao-letra.sm {
    width: 30px;
    height: 30px;
    font-size: .85rem;
    border-radius: 6px;
}

.prescrever-divisao-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

    .prescrever-divisao-info strong {
        font-size: .88rem;
        color: var(--ink);
    }

    .prescrever-divisao-info span {
        font-size: .8rem;
        color: var(--ink-light);
    }

.prescrever-divisao-arrow {
    font-size: 1.1rem;
    color: var(--border-light);
    transition: color .18s, transform .18s;
    margin-left: auto;
}

.prescrever-divisao-card:hover .prescrever-divisao-arrow,
.prescrever-divisao-card.selected .prescrever-divisao-arrow {
    color: var(--teal);
    transform: translateX(2px);
}

.prescrever-divisao-selecionada {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(34,170,178,.08);
    border: 1px solid var(--teal);
    border-radius: 8px;
    margin-top: 10px;
    font-size: .88rem;
    color: var(--teal-dark);
}

    .prescrever-divisao-selecionada i {
        font-size: 1rem;
        color: var(--teal);
        flex-shrink: 0;
    }

.prescrever-divisoes-lista {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.prescrever-divisoes-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

    .prescrever-divisoes-item:last-child {
        border-bottom: none;
    }

.prescrever-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.prescrever-side {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ════════════════════════════════════════════════
   SELECT2 — Essência Fit theme
   ════════════════════════════════════════════════ */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--white);
    display: flex;
    align-items: center;
    padding-left: 12px;
    transition: border-color .18s;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,170,178,.12);
}

.select2-container--default .select2-selection__rendered {
    line-height: normal;
    padding-left: 0;
    color: var(--ink);
    font-size: .92rem;
    font-family: inherit;
}

.select2-container--default .select2-selection__placeholder {
    color: var(--ink-light);
}

.select2-container--default .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.select2-dropdown {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: .88rem;
    font-family: inherit;
    outline: none;
}

    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: var(--teal);
    }

.select2-container--default .select2-results__option {
    padding: 9px 14px;
    font-size: .88rem;
    color: var(--ink);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--teal);
    color: white;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--snow);
    color: var(--teal-dark);
    font-weight: 600;
}

/* ════════════════════════════════════════════════
   ALUNOS
   ════════════════════════════════════════════════ */
.alunos-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .alunos-search-form .ef-input-icon-wrap {
        flex: 1;
        min-width: 200px;
    }

.alunos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 20px;
    text-align: center;
    gap: 8px;
}

    .alunos-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: 0.35;
        margin-bottom: 8px;
    }

.alunos-table-wrap {
    display: block;
}

.alunos-card-list {
    display: none;
}

.aluno-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.aluno-mobile-name {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alunos-footer {
    padding: 14px 0 0;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

/* ════════════════════════════════════════════════
   EXERCÍCIOS — DetailsPartial
   ════════════════════════════════════════════════ */

/* Imagem / GIF */
.exdet-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    text-align: center;
}

.exdet-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.exdet-img-placeholder {
    height: 100px;
    background: var(--teal-dim);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--teal-light);
    margin-bottom: 14px;
}

/* Músculos */
.exdet-muscles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.exdet-muscle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exdet-muscle-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .05em;
    min-width: 72px;
    flex-shrink: 0;
}

/* Botão vídeo externo */
.exdet-video-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: 14px;
    transition: border-color .15s, background .15s;
}

.exdet-video-btn:hover {
    border-color: var(--teal);
    background: var(--teal-dim);
    color: var(--ink);
}

/* Tabs */
.exdet-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.exdet-tabs::-webkit-scrollbar { display: none; }

/* Texto de descrição */
.exdet-desc-text {
    font-size: .88rem;
    line-height: 1.75;
    color: var(--ink);
    white-space: pre-line;
    margin: 0;
}

/* Passos de execução */
.exdet-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.exdet-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light);
}

.exdet-step:last-child { border-bottom: none; }

.exdet-step-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    margin-top: 1px;
}

.exdet-step-text {
    font-size: .87rem;
    line-height: 1.65;
    color: var(--ink);
}

/* Dicas / Observações */
.exdet-obs-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbea;
    border: 1px solid #f0e68c;
    border-radius: var(--radius);
    padding: 14px;
}

.exdet-obs-icon {
    color: #c8a000;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Manter compatibilidade com classes antigas ── */
.exercicio-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.exercicio-nome {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exercicio-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

    .exercicio-hero img {
        width: 100%;
        max-height: 320px;
        object-fit: cover;
        display: block;
    }

.exercicio-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 14px;
}

.exercicio-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 16px;
}

.exercicio-tab {
    padding: 8px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--slate);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .2s, border-color .2s;
    font-family: var(--font-body);
}

    .exercicio-tab:hover {
        color: var(--teal);
    }

    .exercicio-tab.active {
        color: var(--teal);
        border-bottom-color: var(--teal);
    }

.exercicio-pane {
    display: none;
}

    .exercicio-pane.active {
        display: block;
    }

.execucao-item {
    padding: 10px 0;
    align-items: flex-start;
    gap: 10px;
}

.execucao-num {
    width: 26px;
    height: 26px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
    margin-top: 1px;
}

.exercicio-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

    .exercicio-video-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.exercicio-video-native {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

/* Exercício Details (página) */
.exdet-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.exdet-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--snow);
}

    .exdet-img-wrap img {
        width: 100%;
        max-height: 420px;
        object-fit: cover;
        display: block;
    }

.exdet-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 20px;
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    gap: 8px;
}

    .exdet-no-img > i {
        font-size: 2.4rem;
        color: var(--teal);
        opacity: .25;
    }

.exdet-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

    .exdet-video-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Exercício Edit */
.exedit-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

.exedit-checkgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal-pale) transparent;
}

.exedit-check-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .8rem;
    color: var(--slate);
    transition: all .15s;
    user-select: none;
}

    .exedit-check-item input {
        display: none;
    }

    .exedit-check-item i {
        color: var(--border);
        font-size: .9rem;
        transition: color .15s;
    }

    .exedit-check-item:hover {
        border-color: var(--teal);
        color: var(--ink);
    }

    .exedit-check-item.checked {
        background: var(--teal-dim);
        border-color: var(--teal);
        color: var(--teal-dark);
        font-weight: 600;
    }

        .exedit-check-item.checked i {
            color: var(--teal);
        }

.exedit-gif-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--snow);
    margin-bottom: 10px;
    padding: 10px;
}

    .exedit-gif-wrap img {
        width: 100%;
        max-height: 280px;
        object-fit: contain;
        display: block;
        border-radius: calc(var(--radius) - 4px);
    }

.exedit-no-gif {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    background: var(--snow);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    gap: 8px;
    margin-bottom: 10px;
}

    .exedit-no-gif > i {
        font-size: 2rem;
        color: var(--teal);
        opacity: .25;
    }

.exedit-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1.5px dashed var(--teal);
    border-radius: var(--radius);
    color: var(--teal);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
    font-family: var(--font-body);
}

    .exedit-upload-btn:hover {
        background: var(--teal-dim);
    }

/* Exercício Delete */
.exdel-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
}

.exdel-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.exdel-info-value {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 5px;
}

.exdel-img-wrap {
    margin-top: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--snow);
    display: inline-block;
}

    .exdel-img-wrap img {
        max-height: 180px;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

.exdel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Partial ExercicioDetails */
.exd-img-wrap {
    text-align: center;
    margin-bottom: 16px;
    background: var(--snow);
    border-radius: var(--radius);
    overflow: hidden;
}

.exd-img {
    max-height: 320px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.exd-section {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

    .exd-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

.exd-instrucoes {
    background: var(--teal-dim);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: .86rem;
    color: var(--ink);
    line-height: 1.65;
}

.exd-instrucao-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

    .exd-instrucao-item:last-child {
        margin-bottom: 0;
    }

.exd-bullet {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
}

.exd-video-wrap {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

/* ════════════════════════════════════════════════
   GERENCIAR EXERCÍCIOS
   ════════════════════════════════════════════════ */
.gerenciar-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 22px;
    align-items: start;
}

.gerenciar-sticky {
    position: sticky;
    top: 80px;
}

.gerenciar-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gerenciar-exercicio-item {
    padding: 14px 0;
    align-items: flex-start;
    gap: 12px;
}

.gerenciar-exercicio-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.gerenciar-ordem {
    width: 30px;
    height: 30px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.gerenciar-exercicio-nome {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.gerenciar-exercicio-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

.gerenciar-obs {
    font-size: .78rem;
    color: var(--slate);
    font-style: italic;
    margin-top: 4px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.gerenciar-btn-remover {
    color: #c0452a;
    opacity: .6;
    transition: opacity .2s;
    font-size: 1rem;
    padding: 6px 8px;
    flex-shrink: 0;
}

    .gerenciar-btn-remover:hover {
        opacity: 1;
        background: #fce8e4;
        color: #c0452a;
    }

.gerenciar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
    gap: 8px;
}

    .gerenciar-empty > i {
        font-size: 2.6rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

/* ════════════════════════════════════════════════
   TREINO CREATE / EDIT / DETAILS / DELETE
   ════════════════════════════════════════════════ */
.create-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

.create-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.details-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    align-items: start;
}

.details-info-value {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 5px;
}

.details-exercicio-item {
    padding: 14px 0;
    align-items: flex-start;
    gap: 12px;
}

.details-exercicio-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.details-ordem {
    width: 30px;
    height: 30px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.details-exercicio-nome {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
}

.details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 20px;
    text-align: center;
    gap: 8px;
}

    .details-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.delete-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
}

.delete-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.delete-info-value {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 5px;
}

.delete-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.treino-delete-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

/* ════════════════════════════════════════════════
   CHECKLISTS
   ════════════════════════════════════════════════ */
.chk-filtros-wrap {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.chk-filtro-group {
    display: flex;
    flex-direction: column;
}

.chk-filtro-divider {
    width: 1px;
    background: var(--border-light);
    align-self: stretch;
    margin: 0 4px;
}

.chk-filtro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chk-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

    .chk-pill:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

    .chk-pill.active {
        background: var(--teal-dim);
        border-color: var(--teal);
        color: var(--teal-dark);
    }

        .chk-pill.active.warning {
            background: #fff4e0;
            border-color: #f0a500;
            color: #a06500;
        }

        .chk-pill.active.success {
            background: #e8f8f0;
            border-color: #2eab6f;
            color: #1a7a4e;
        }

.chk-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
}

.chk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 20px;
    text-align: center;
    gap: 8px;
}

    .chk-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.chk-table-wrap {
    display: block;
}

.chk-card-list {
    display: none;
}

/* Checklist Details */
.chkrev-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

.chkrev-resposta-item {
    padding: 14px 0;
    align-items: flex-start;
    gap: 12px;
}

.chkrev-resposta-num {
    width: 26px;
    height: 26px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.chkrev-resposta-titulo {
    font-weight: 700;
    font-size: .86rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.chkrev-resposta-valor {
    font-size: .84rem;
    color: var(--slate);
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Checklist Semana */
.chk-semana-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}

.chk-hist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

    .chk-hist-card:last-child {
        border-bottom: none;
    }

/* Checklist SemanaAtual */
.chka-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin: -24px -24px 24px;
    padding: 0 24px;
}

.chka-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}

.chka-pergunta {
    padding: 18px 0;
}

.chka-pergunta--border {
    border-bottom: 1px solid var(--border-light);
}

.chka-pergunta-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.chka-pergunta-input {
    padding-left: 34px;
}

.chka-simnao-group {
    display: flex;
    gap: 10px;
}

.chka-simnao-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 2px solid var(--border-light);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: .88rem;
    color: var(--slate);
    transition: all .15s;
}

    .chka-simnao-btn:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

.chka-simnao-btn--sim-active {
    border-color: var(--teal);
    background: var(--teal-dim);
    color: var(--teal-dark);
}

.chka-simnao-btn--nao-active {
    border-color: #e05c5c;
    background: #fdf2f2;
    color: #c04040;
}

.chka-escala-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chka-escala-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: .9rem;
    color: var(--slate);
    transition: all .15s;
}

    .chka-escala-btn:hover {
        border-color: var(--teal);
        color: var(--teal);
    }

.chka-escala-btn--active {
    border-color: var(--teal);
    background: var(--teal);
    color: white;
}

.chka-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 90;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    margin: 0 -24px;
    padding: 14px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Checklist Details aluno */
.chkd-table-wrap {
    display: block;
}

.chkd-card-list {
    display: none;
}

.chkd-resp-card {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.chkd-resp-card--ok {
    border-left: 4px solid var(--teal);
}

.chkd-resp-card--pending {
    border-left: 4px solid #f0a500;
}

.chkd-resp-box {
    padding: 8px 10px;
    border-radius: var(--radius);
}

.chkd-resp-box--ok {
    background: var(--teal-dim);
}

.chkd-resp-box--pending {
    background: #fff8e6;
}

/* Checklist Templates */
.cht-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .cht-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.cht-table-wrap {
    display: block;
}

.cht-card-list {
    display: none;
}

.cht-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 10px;
}

.cht-mobile-card--padrao {
    border-color: #f0c040;
    background: #fffdf5;
}

.chtcr-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
}

.chtcr-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--snow);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s;
}

    .chtcr-toggle:hover {
        border-color: var(--teal);
    }

    .chtcr-toggle input {
        display: none;
    }

.chtcr-toggle-box {
    width: 22px;
    height: 22px;
    background: var(--teal);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .75rem;
    flex-shrink: 0;
    opacity: .3;
    transition: opacity .2s;
}

.chtcr-toggle input:checked ~ .chtcr-toggle-box {
    opacity: 1;
}

.chtedit-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

.chtedit-ordem {
    width: 26px;
    height: 26px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
}

.chtedit-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    text-align: center;
    gap: 6px;
}

    .chtedit-empty > i {
        font-size: 2.2rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 6px;
    }

.chtedit-table-wrap {
    display: block;
}

.chtedit-card-list {
    display: none;
}

.chtedit-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

    .chtedit-item-card:last-child {
        border-bottom: none;
    }

/* ════════════════════════════════════════════════
   AVALIAÇÕES
   ════════════════════════════════════════════════ */
.aval-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.aval-compare-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.aval-compare-vs {
    font-size: 1.4rem;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.aval-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .aval-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.aval-table-wrap {
    display: block;
}

.aval-card-list {
    display: none;
}

.aval-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
}

.avaledit-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

.avaledit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.avaldet-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 22px;
    align-items: start;
}

.avaldet-medidas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.avaldet-medida-valor {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.avaldet-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.avaldet-foto-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px;
}

.avaldet-foto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.avaldet-foto-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: opacity .2s;
    display: block;
}

    .avaldet-foto-img:hover {
        opacity: .85;
    }

.avaldet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 8px;
    text-align: center;
}

    .avaldet-empty > i {
        font-size: 2.4rem;
        color: var(--teal);
        opacity: .25;
    }

/* Compare */
.cmp-fotos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cmp-foto-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmp-foto-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cmp-foto-img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--snow);
    cursor: pointer;
    display: block;
    transition: opacity .2s;
}

    .cmp-foto-img:hover {
        opacity: .88;
    }

.cmp-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cmp-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    cursor: pointer;
    transition: border-color .15s;
}

    .cmp-thumb:hover {
        border-color: var(--teal);
    }

.cmp-sem-foto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--snow);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    gap: 8px;
}

    .cmp-sem-foto > i {
        font-size: 2rem;
        color: var(--teal);
        opacity: .2;
    }

/* ════════════════════════════════════════════════
   MENSAGENS
   ════════════════════════════════════════════════ */
.inbox-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .inbox-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.enviadas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .enviadas-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.thread-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
}

.thread-card {
    overflow: hidden;
}

.thread-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
    max-height: 65vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 4px;
}

    .thread-messages::-webkit-scrollbar {
        width: 4px;
    }

    .thread-messages::-webkit-scrollbar-thumb {
        background: var(--teal);
        border-radius: 4px;
    }

.thread-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    opacity: .5;
}

    .thread-empty > i {
        font-size: 1.6rem;
        color: var(--teal);
    }

.thread-bubble-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.thread-bubble-wrap--me {
    flex-direction: row-reverse;
}

.thread-bubble {
    max-width: min(520px, 82%);
    padding: 12px 14px;
    border-radius: 16px;
    position: relative;
}

.thread-bubble--other {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.thread-bubble--me {
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-bottom-right-radius: 4px;
}

.thread-bubble-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.thread-bubble-author {
    font-size: .7rem;
    font-weight: 700;
    color: var(--teal-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.thread-bubble-titulo {
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 5px;
}

.thread-bubble-conteudo {
    font-size: .86rem;
    color: var(--ink);
    white-space: pre-wrap;
    line-height: 1.55;
}

.thread-bubble-time {
    font-size: .68rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
}

.thread-char-count {
    font-size: .72rem;
    color: var(--slate);
    text-align: right;
    margin-top: 4px;
}

.thread-participants {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.thread-participant {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.nova-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
}

/* ════════════════════════════════════════════════
   ALERTAS ADMIN
   ════════════════════════════════════════════════ */
.alerta-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.alerta-toggle-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--snow);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s;
    max-width: 480px;
}

    .alerta-toggle-info:hover {
        border-color: var(--teal);
    }

    .alerta-toggle-info input {
        display: none;
    }

.alerta-toggle-box {
    width: 20px;
    height: 20px;
    background: var(--teal);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .75rem;
    flex-shrink: 0;
}

.alerta-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .alerta-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.alerta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.alerta-card {
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left-width: 4px;
}

.alerta-card--danger {
    border-left-color: #c0452a;
    background: #fffafa;
}

.alerta-card--warning {
    border-left-color: #f0a500;
    background: #fffdf5;
}

.alerta-card--success {
    border-left-color: var(--teal);
}

.alerta-card--info {
    border-left-color: #3b82f6;
    background: #f8fbff;
}

.alerta-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.alerta-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.alerta-link-btn {
    padding: 5px 10px;
    font-size: .74rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.alerta-card-meta {
    font-size: .78rem;
}

.alerta-card-desc {
    font-size: .85rem;
    color: var(--ink);
    line-height: 1.55;
}

.alerta-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════
   ADMIN ALUNO DETALHES
   ════════════════════════════════════════════════ */
.aldet-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.aldet-lote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.aldet-treino-unico {
    padding: 4px 0;
}

.aldet-ex-item {
    padding: 10px 0;
    align-items: center;
    gap: 10px;
}

.aldet-ex-num {
    width: 24px;
    height: 24px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
}

.aldet-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aldet-acc-item {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.aldet-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: var(--snow);
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-align: left;
}

    .aldet-acc-btn:hover {
        background: #f0f0f0;
    }

    .aldet-acc-btn:not(.collapsed) {
        background: var(--teal-dim);
        border-bottom: 1.5px solid var(--teal);
    }

.aldet-acc-chevron {
    font-size: .8rem;
    color: var(--teal);
    transition: transform .2s;
}

.aldet-acc-btn:not(.collapsed) .aldet-acc-chevron {
    transform: rotate(180deg);
}

.aldet-acc-body {
    padding: 14px;
    background: var(--white);
}

.aldet-sessao-item {
    padding: 12px 0;
    align-items: center;
}

.aldet-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 20px;
    opacity: .5;
}

    .aldet-empty > i {
        font-size: 1.6rem;
        color: var(--teal);
    }

/* ════════════════════════════════════════════════
   PLANOS (admin)
   ════════════════════════════════════════════════ */
.planos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px;
    text-align: center;
    gap: 8px;
}

    .planos-empty > i {
        font-size: 2.4rem;
        color: var(--teal);
        opacity: .35;
        margin-bottom: 8px;
    }

.planos-ordem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal);
    font-size: .72rem;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
}

.planos-table-wrap {
    display: block;
}

.planos-card-list {
    display: none;
}

.planos-mobile-card {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

    .planos-mobile-card:last-child {
        border-bottom: none;
    }

.planos-mobile-card--destaque {
    border-left: 3px solid var(--teal);
    padding-left: 13px;
}

.planos-nome {
    font-weight: 700;
    color: var(--ink);
}

.planos-preco {
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
}

.planos-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.planos-mobile-actions {
    display: flex;
    gap: 8px;
}

    .planos-mobile-actions .ef-btn-primary {
        flex: 1;
        justify-content: center;
    }

.planodel-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 22px;
    align-items: start;
}

.planodel-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.planodet-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 22px;
    align-items: start;
}

.planodet-perm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

    .planodet-perm-row:last-child {
        border-bottom: none;
    }

/* Plano Card (público) */
.plano-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

    .plano-card:hover {
        box-shadow: 0 8px 32px rgba(34,170,178,.13);
        transform: translateY(-3px);
    }

.plano-card--destaque {
    border-color: var(--teal);
    box-shadow: 0 4px 24px rgba(34,170,178,.18);
}

.plano-card-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    background: var(--teal);
    color: white;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 36px;
    transform: rotate(45deg);
    letter-spacing: .04em;
    z-index: 2;
}

.plano-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px 14px;
    background: #ffffff;
    border-bottom: 2px solid var(--cor);
    position: relative;
}

.plano-card-nome {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.plano-card-desconto {
    background: var(--cor);
    color: white;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.plano-card-desconto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e05c5c;
    color: white;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
    letter-spacing: .02em;
}

.plano-card-preco {
    text-align: center;
    padding: 20px 20px 0;
}

.plano-card-preco-original {
    font-size: .95rem;
    color: var(--slate);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.plano-card-preco-valor {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.plano-card-preco-sub {
    font-size: .8rem;
    color: var(--slate);
    margin-top: 6px;
}

.plano-card-divider {
    height: 2px;
    opacity: .15;
    margin: 18px 20px 0;
    border-radius: 2px;
}

.plano-card-lista {
    list-style: none;
    padding: 16px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

    .plano-card-lista li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: .86rem;
        color: var(--ink);
    }

        .plano-card-lista li i {
            color: var(--teal);
            font-size: .9rem;
            flex-shrink: 0;
        }

.plano-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 20px 20px;
    padding: 13px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

    .plano-card-btn:hover {
        opacity: .88;
        transform: translateY(-1px);
        color: white;
    }

.plano-card-btn--disabled {
    background: var(--border);
    color: var(--slate);
    cursor: not-allowed;
}

    .plano-card-btn--disabled:hover {
        opacity: 1;
        transform: none;
    }

/* Planos públicos */
.planos-pub-hero {
    text-align: center;
    padding: 56px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .planos-pub-hero .ef-heading-display {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .planos-pub-hero .ef-text-body {
        max-width: 480px;
    }

.planos-pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
    align-items: start;
}

.planos-faq-item {
    padding: 4px 0;
}

.planos-faq-item--border {
    border-bottom: 1px solid var(--border-light);
}

.planos-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.planos-faq-body {
    padding: 0 0 12px;
}

.planos-faq-chev {
    font-size: .8rem;
    color: var(--teal);
    flex-shrink: 0;
    transition: transform .2s;
}

.planos-faq-chev--open {
    transform: rotate(180deg);
}

/* ════════════════════════════════════════════════
   ASSINATURAS
   ════════════════════════════════════════════════ */
.ass-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .ass-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.ass-table-wrap {
    display: block;
}

.ass-card-list {
    display: none;
}

.ass-mobile-card {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 10px;
}

.assdet-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
}

.assdet-info-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

    .assdet-info-row:last-child {
        border-bottom: none;
    }

.assdet-pag-table-wrap {
    display: block;
}

.assdet-pag-card-list {
    display: none;
}

/* Assinatura Histórico */
.asshist-card {
    border-left: 4px solid var(--border-light);
}

.asshist-card--active {
    border-left-color: var(--teal);
}

.asshist-card--pending {
    border-left-color: #f0a500;
}

.asshist-card--alert {
    border-left-color: #e05c5c;
}

.asshist-card--inactive {
    border-left-color: var(--slate);
}

.asshist-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.asshist-pagtos-table {
    display: block;
}

.asshist-pagtos-cards {
    display: none;
}

.asshist-pagto-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

    .asshist-pagto-card:last-child {
        border-bottom: none;
    }

/* Assinatura aluno (Index) */
.ass-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
}

.ass-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ass-feature-item {
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 14px 10px;
    text-align: center;
}

/* ════════════════════════════════════════════════
   ADMIN RESUMO ALUNO
   ════════════════════════════════════════════════ */
.rsm-selector-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.rsm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 20px;
    text-align: center;
    gap: 10px;
}

    .rsm-empty-state > i {
        font-size: 3rem;
        color: var(--teal);
        opacity: .25;
        margin-bottom: 8px;
    }

.rsm-aluno-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.rsm-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.rsm-chart-box {
    height: 200px;
    position: relative;
    padding: 8px 0;
}

.rsm-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.rsm-section-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0;
    opacity: .5;
}

    .rsm-section-empty > i {
        font-size: 1.4rem;
        color: var(--teal);
    }

.rsm-table-wrap {
    display: block;
}

.rsm-card-list {
    display: none;
}

.rsm-sessao-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

    .rsm-sessao-card:last-child {
        border-bottom: none;
    }

.rsm-fotos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rsm-foto-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.rsm-foto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: var(--snow);
}

.rsm-foto-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity .2s;
    display: block;
}

    .rsm-foto-img:hover {
        opacity: .85;
    }

.rsm-modal-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: contain;
    max-height: 80vh;
}

/* ════════════════════════════════════════════════
   TREINO SESSOES — Index
   ════════════════════════════════════════════════ */
.tsd-treino-unico {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
}

.tsd-treino-unico-icon {
    width: 64px;
    height: 64px;
    background: var(--teal-dim);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--teal);
    margin-bottom: 16px;
}

.tsd-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsd-acc-item {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.tsd-acc-item--destaque {
    border-color: var(--teal);
    box-shadow: 0 2px 12px rgba(34,170,178,.1);
}

.tsd-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: background .15s;
}

    .tsd-acc-header:hover, .tsd-acc-header.open {
        background: var(--snow);
    }

.tsd-acc-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.tsd-acc-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--teal-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--teal);
}

.tsd-acc-title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
}

.tsd-acc-chevron {
    color: var(--teal);
    transition: transform .25s;
    flex-shrink: 0;
}

.tsd-acc-header.open .tsd-acc-chevron {
    transform: rotate(180deg);
}

.tsd-acc-body {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-light);
}

.tsd-acc-detalhes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.tsd-detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .82rem;
}

    .tsd-detalhe-item span {
        font-size: .74rem;
    }

.tsd-hist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    text-align: center;
    gap: 8px;
}

    .tsd-hist-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .25;
        margin-bottom: 8px;
    }

.tsd-table-wrap {
    display: block;
}

.tsd-card-list {
    display: none;
}

.tsd-hist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

    .tsd-hist-card:last-child {
        border-bottom: none;
    }

/* ─── TSD Session Banner ─── */
.tsd-sess-banner {
    background: linear-gradient(135deg, #fff8e8 0%, #fffaf2 100%);
    border: 2px solid #f0a500;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.tsd-sess-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0a500, #e07800);
}
.tsd-sess-banner-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.tsd-sess-pulse {
    width: 9px; height: 9px;
    background: #f0a500;
    border-radius: 50%;
    flex-shrink: 0;
    animation: tsdsespulse 1.5s ease-in-out infinite;
}
@keyframes tsdsespulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.6); }
}
.tsd-sess-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #a06500;
}
.tsd-sess-info { margin-bottom: 14px; }
.tsd-sess-nome {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 4px;
}
.tsd-sess-hora {
    font-size: .78rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}
.tsd-sess-hora i { color: #f0a500; }
.tsd-sess-actions { display: flex; gap: 10px; }
.tsd-sess-btn-cancel {
    flex: 1;
    padding: 11px;
    background: #fff4e0;
    border: 1.5px solid #f0a500;
    border-radius: var(--radius);
    color: #a06500;
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: filter .15s;
}
.tsd-sess-btn-cancel:hover { filter: brightness(.95); }
.tsd-sess-btn-continue {
    flex: 2;
    padding: 11px;
    background: #f0a500;
    border-radius: var(--radius);
    color: white;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    -webkit-tap-highlight-color: transparent;
    transition: filter .15s;
}
.tsd-sess-btn-continue:hover { filter: brightness(1.06); color: white; }

/* ─── TSD Hero (treino único) ─── */
.tsd-hero {
    background: linear-gradient(145deg, var(--teal) 0%, #1a8a91 100%);
    border-radius: var(--radius-lg);
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tsd-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}
.tsd-hero::after {
    content: '';
    position: absolute;
    bottom: -70px; left: -30px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.tsd-hero-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.tsd-hero-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.2);
}
.tsd-hero-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    line-height: 1.25;
}
.tsd-hero-divisao {
    font-size: .76rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.tsd-hero-desc {
    font-size: .82rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}
.tsd-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.tsd-chip {
    background: rgba(255,255,255,.18);
    color: white;
    font-size: .74rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.2);
}
.tsd-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: white;
    color: var(--teal-dark);
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.tsd-hero-btn:hover {
    background: #f0feff;
    color: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.tsd-hero-btn:active { transform: scale(0.99); }

/* ─── TSD Multiple trainings ─── */
.tsd-multi { display: flex; flex-direction: column; gap: 12px; }
.tsd-multi-item {
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s;
}
.tsd-multi-item--featured {
    border-color: var(--teal);
    box-shadow: 0 4px 18px rgba(34,170,178,.15);
}
.tsd-featured-ribbon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: linear-gradient(90deg, var(--teal) 0%, #1a8a91 100%);
    color: white;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tsd-multi-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px 14px;
}
.tsd-multi-letter {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--teal-dim);
    color: var(--teal-dark);
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tsd-multi-item--featured .tsd-multi-letter { background: var(--teal); color: white; }
.tsd-multi-info { flex: 1; min-width: 0; }
.tsd-multi-name {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tsd-multi-chips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tsd-multi-chip {
    font-size: .72rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 3px;
}
.tsd-multi-chip i { color: var(--teal); }
.tsd-multi-desc {
    padding: 0 18px 12px;
    font-size: .8rem;
    color: var(--slate);
    line-height: 1.5;
}
.tsd-multi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border: none;
    border-top: 1px solid var(--border-light);
    background: var(--snow);
    color: var(--slate);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.tsd-multi-item--featured .tsd-multi-btn {
    background: var(--teal-dim);
    color: var(--teal-dark);
    border-top-color: rgba(34,170,178,.15);
}
.tsd-multi-btn:hover  { filter: brightness(.96); }
.tsd-multi-btn:active { filter: brightness(.92); }

/* ─── TSD Dicas ─── */
.tsd-dicas {
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}
.tsd-dicas-title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}
.tsd-dicas-title i { color: var(--teal); }
.tsd-dicas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tsd-dica-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--slate);
}
.tsd-dica-item i { color: var(--teal); font-size: .88rem; flex-shrink: 0; }

/* ─── TSD History Rows (mobile cards) ─── */
.tsd-hist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border-light);
}
.tsd-hist-row:last-child { border-bottom: none; }
.tsd-hist-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.tsd-hist-dot--done      { background: #e8f9f2; color: #1a8a55; }
.tsd-hist-dot--ongoing   { background: var(--teal-dim); color: var(--teal-dark); }
.tsd-hist-dot--cancelled { background: #fce8e4; color: #c0452a; }
.tsd-hist-body { flex: 1; min-width: 0; }
.tsd-hist-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.tsd-hist-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.tsd-hist-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    color: var(--slate);
}
.tsd-hist-meta-item i { color: var(--teal); font-size: .7rem; }
.tsd-hist-action { flex-shrink: 0; }

/* ════════════════════════════════════════════════
   TREINO SESSOES — Execute (mobile-first)
   ════════════════════════════════════════════════ */

/* Top bar */
.exe-top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin: -16px -16px 0;
    padding: 12px 16px 0;
}

.exe-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.exe-top-info {
    flex: 1;
    min-width: 0;
}

.exe-top-nome {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .97rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exe-top-meta {
    font-size: .72rem;
    color: var(--slate);
}

.exe-top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.exe-progress-wrap {
    height: 4px;
    background: var(--border-light);
    margin: 0 -16px;
}

.exe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 0 4px 4px 0;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* Step dots */
.exe-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px 4px;
    flex-wrap: wrap;
}

.exe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: 1.5px solid var(--border);
    transition: all .25s;
    flex-shrink: 0;
}

.exe-dot.active {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.25);
}

.exe-dot.done {
    background: var(--teal-pale);
    border-color: var(--teal);
}

/* Step card */
.exe-step-card {
    margin-top: 12px;
}

.exe-step-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 14px 16px;
}

.exe-step-nome {
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
    flex: 1;
    min-width: 0;
}

.exe-step-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: .95rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .3s;
}

.exe-step-check.visible {
    opacity: 1;
}

.exe-planned-strip {
    background: var(--teal-dim);
    border-left: 1.5px solid var(--border-light);
    border-right: 1.5px solid var(--border-light);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.exe-planned-label {
    font-size: .72rem;
    color: var(--slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.exe-planned-values {
    font-size: .88rem;
    font-weight: 800;
    color: var(--teal-dark);
}

/* Image */
.exe-step-img-wrap {
    border-left: 1.5px solid var(--border-light);
    border-right: 1.5px solid var(--border-light);
    background: var(--snow);
    overflow: hidden;
}

.exe-step-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.exe-step-img-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--teal-light);
    cursor: pointer;
}

/* Inputs card */
.exe-inputs-card {
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 16px;
}

.exe-btn-use-planned {
    width: 100%;
    padding: 13px;
    background: var(--teal-dim);
    border: 1.5px dashed var(--teal);
    border-radius: var(--radius);
    color: var(--teal-dark);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: background .15s;
}

.exe-btn-use-planned:active {
    background: var(--teal-pale);
}

.exe-btn-detalhes {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 11px 14px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 14px;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.exe-btn-detalhes:active {
    background: var(--teal-dim);
    border-color: var(--teal);
}
.exe-btn-detalhes-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--teal);
}
.exe-btn-detalhes-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.exe-btn-detalhes-titulo {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.exe-btn-detalhes-sub {
    font-size: .7rem;
    color: var(--slate);
    line-height: 1.2;
}

.exe-inputs-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.exe-input-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: 5px;
}

.exe-input-big {
    width: 100%;
    padding: 14px 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--off-white);
    color: var(--ink);
    outline: none;
    transition: border-color .15s;
    -moz-appearance: textfield;
}

.exe-input-big::-webkit-outer-spin-button,
.exe-input-big::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.exe-input-big:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--teal-dim);
}

.exe-input-carga-wrap {
    position: relative;
}

.exe-input-carga-wrap .exe-input-big {
    padding-right: 38px;
}

.exe-input-kg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    font-weight: 700;
    color: var(--slate);
    pointer-events: none;
}

/* RPE */
.exe-rpe-wrap {
    margin-bottom: 14px;
}

.exe-rpe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.exe-rpe-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.exe-rpe-badge {
    min-width: 32px;
    height: 28px;
    background: var(--teal);
    color: white;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    transition: background .2s;
}

.exe-rpe-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exe-rpe-caption {
    font-size: .68rem;
    color: var(--ink-light);
    flex-shrink: 0;
}

.exe-slider-v2 {
    -webkit-appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--teal) 60%, var(--border-light) 60%);
    outline: none;
    cursor: pointer;
}

.exe-slider-v2::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--teal);
    box-shadow: 0 2px 8px rgba(34,170,178,.25);
    cursor: pointer;
}

/* Observação field */
.exe-obs-field {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--off-white);
    font-size: .88rem;
    font-family: var(--font-body);
    color: var(--ink);
    resize: none;
    outline: none;
    transition: border-color .15s;
}

.exe-obs-field:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--teal-dim);
}

/* Observação geral card */
.exe-obs-geral-card {
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: 12px;
    overflow: hidden;
}

.exe-obs-geral-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.exe-obs-geral-body {
    padding: 0 16px 14px;
    display: none;
}

.exe-obs-geral-body.open {
    display: block;
}

/* Bottom step nav */
.exe-step-nav {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.exe-step-nav .ef-btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.exe-step-nav .ef-btn-outline,
.exe-step-nav .ef-btn-primary,
.exe-step-nav .ef-btn-ghost {
    flex: 1;
    justify-content: center;
    padding: 13px;
    font-size: .88rem;
    font-weight: 700;
}

/* Page bottom padding */
.exe-page-wrap {
    padding-bottom: 130px;
}

/* Modal loading */
.exe-modal-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 32px 0;
    justify-content: center;
}

.exe-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-light);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: exeSpin .7s linear infinite;
}

@keyframes exeSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ────────────────────────────────────────────────
   EXECUTE — Séries Bubbles
   ──────────────────────────────────────────────── */
.exe-series-section {
    margin-bottom: 18px;
}
.exe-series-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--slate);
    margin-bottom: 8px;
}
.exe-series-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.exe-serie-bubble {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--slate);
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.exe-serie-bubble.active {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-dim);
    transform: scale(1.08);
}
.exe-serie-bubble.done {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}
.exe-serie-bubble.disabled {
    opacity: .35;
    cursor: default;
}

/* ────────────────────────────────────────────────
   EXECUTE — Rest Timer Overlay
   ──────────────────────────────────────────────── */
.exe-rest-overlay {
    position: fixed;
    bottom: 72px;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--ink);
    color: white;
    padding: 14px 20px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -6px 28px rgba(0,0,0,.35);
    border-radius: 16px 16px 0 0;
    animation: exeRestUp .22s ease;
}
@keyframes exeRestUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.exe-rest-info {
    flex: 1;
    min-width: 0;
}
.exe-rest-label {
    font-size: .68rem;
    opacity: .65;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}
.exe-rest-timer-val {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--teal);
    font-family: var(--font-display);
}
.exe-rest-timer-unit {
    font-size: .9rem;
    opacity: .6;
    margin-left: 2px;
}
.exe-rest-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}
.exe-rest-bar-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 999px;
    width: 0%;
}
.exe-rest-skip {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.exe-rest-skip:active {
    background: rgba(255,255,255,.25);
}

/* ════════════════════════════════════════════════
   TREINO SESSOES — Details
   ════════════════════════════════════════════════ */
.sess-ex-card--ok {
    border-left: 4px solid var(--teal);
}

.sess-ex-card--pending {
    border-left: 4px solid #f0a500;
}

/* ════════════════════════════════════════════════
   ALUNO — Dashboard
   ════════════════════════════════════════════════ */
.alu-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.alu-hist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    text-align: center;
    gap: 8px;
}

    .alu-hist-empty > i {
        font-size: 2.8rem;
        color: var(--teal);
        opacity: .3;
        margin-bottom: 8px;
    }

.alu-hist-empty-title {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.alu-sessoes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alu-sessao-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.alu-sessao-borda {
    width: 4px;
    height: 44px;
    background: var(--teal);
    border-radius: 4px;
    flex-shrink: 0;
}

.alu-sessao-body {
    flex: 1;
    min-width: 0;
}

.alu-sessao-nome-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.alu-sessao-divisao {
    font-size: .64rem;
}

.alu-sessao-nome {
    font-weight: 700;
    color: var(--ink);
    font-size: .9rem;
}

.alu-sessao-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .76rem;
}

.alu-sessao-btn {
    font-size: .78rem;
    flex-shrink: 0;
}

.alu-hist-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: 6px;
}

.alu-hist-ver-todas-btn {
    justify-content: center;
    font-size: .84rem;
}

/* ════════════════════════════════════════════════
   ALUNO — Avaliações
   ════════════════════════════════════════════════ */
.aav-table-wrap {
    display: block;
}

.aav-card-list {
    display: none;
}

.aav-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

    .aav-card:last-child {
        border-bottom: none;
    }

.aav-card--ok {
    border-left: 3px solid var(--teal);
    padding-left: 10px;
}

.aav-card--pending {
    border-left: 3px solid #f0a500;
    padding-left: 10px;
}

.aavd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.aavd-destaque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    align-items: stretch;
}

.aavd-medida-destaque {
    background: var(--teal-dim);
    border-radius: var(--radius);
    padding: 12px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 90px;
}

    .aavd-medida-destaque > i {
        font-size: 1.2rem;
        color: var(--teal);
        flex-shrink: 0;
    }

    .aavd-medida-destaque .ef-label {
        font-size: .6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

.aavd-medida-valor {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-weight: 700;
    color: var(--teal-dark);
    white-space: nowrap;
}

    .aavd-medida-valor small {
        font-size: .65rem;
        font-family: 'Nunito', sans-serif;
    }

.aavd-medida-item {
    background: var(--snow);
    border-radius: var(--radius);
    padding: 10px 12px;
    text-align: center;
    border: 1px solid var(--border-light);
}

/* ─── Fotos de avaliação — cards de upload ─────────────────────── */
.aavd-fotos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.aavd-foto-card {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--snow);
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4;
    transition: border-color .2s;
    cursor: pointer;
}

.aavd-foto-card:hover:not(.tem-foto):not(.bloqueado) {
    border-color: var(--teal);
    background: var(--teal-dim);
}

.aavd-foto-card.tem-foto {
    border: 2px solid var(--teal);
    cursor: pointer;
}

.aavd-foto-card.bloqueado {
    cursor: default;
    opacity: .55;
}

.aavd-foto-card form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aavd-foto-zona {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 10px 6px;
    text-align: center;
    gap: 4px;
    min-height: 0;
}

.aavd-foto-zona i {
    font-size: 1.8rem;
    color: var(--teal);
    opacity: .5;
    flex-shrink: 0;
}

.aavd-foto-zona-nome {
    font-weight: 700;
    font-size: .8rem;
    color: var(--ink);
}

.aavd-foto-zona-hint {
    font-size: .66rem;
    color: var(--slate);
}

.aavd-foto-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.aavd-foto-thumb {
    width: 100%;
    flex: 1;
    object-fit: cover;
    object-position: top;
    min-height: 0;
    display: block;
}

.aavd-foto-card-rodape {
    padding: 5px 8px;
    background: white;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-shrink: 0;
}

.aavd-foto-card-confirmar {
    display: none;
    padding: 5px 8px;
    background: white;
    border-top: 1px solid var(--border-light);
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .aavd-fotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.avc-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.avc-sidebar {
    position: sticky;
    top: 80px;
}

.avc-medidas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.avc-circ-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.avc-unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .74rem;
    font-weight: 600;
    color: var(--slate);
    pointer-events: none;
}

/* ════════════════════════════════════════════════
   ALUNO — Progresso
   ════════════════════════════════════════════════ */
.pgr-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

.pgr-medida-destaque {
    background: var(--teal-dim);
    border-radius: var(--radius);
    padding: 12px 14px;
    text-align: center;
}

.pgr-medida-valor {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-top: 2px;
}

    .pgr-medida-valor small {
        font-size: .7rem;
        font-family: 'Nunito', sans-serif;
    }

.pgr-deltas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pgr-delta-card {
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 12px 12px 10px;
}

/* ════════════════════════════════════════════════
   AUTH — Login e Register
   ════════════════════════════════════════════════ */
.auth-body {
    min-height: 100vh;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-brand {
    text-align: center;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.01em;
}

    .auth-logo span {
        color: var(--teal);
    }

.auth-tagline {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    margin: 2px 0 0;
}

.auth-card {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 36px 32px 28px;
    box-shadow: var(--shadow-md);
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 6px;
}

    .auth-card-title em {
        font-style: italic;
        color: var(--teal);
    }

.auth-card-sub {
    font-size: .88rem;
    color: var(--slate);
}

.auth-input-eye {
    position: relative;
    display: flex;
    align-items: center;
}

    .auth-input-eye .ef-input {
        padding-right: 44px;
    }

.auth-eye-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--slate);
    cursor: pointer;
    font-size: 1rem;
    transition: color .15s;
}

    .auth-eye-btn:hover {
        color: var(--teal);
    }

.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    color: var(--ink);
    cursor: pointer;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
    cursor: pointer;
}

.auth-forgot {
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

    .auth-forgot:hover {
        color: var(--teal-dark);
        text-decoration: underline;
    }

.auth-btn-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: .95rem;
    border-radius: var(--radius);
    margin-top: 4px;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

.auth-spin {
    display: inline-block;
    animation: authSpin .7s linear infinite;
}

.auth-link-row {
    text-align: center;
    font-size: .85rem;
    color: var(--slate);
    margin-top: 18px;
    margin-bottom: 0;
}

    .auth-link-row a {
        font-weight: 700;
        color: var(--teal);
        text-decoration: none;
    }

        .auth-link-row a:hover {
            color: var(--teal-dark);
            text-decoration: underline;
        }

.auth-error {
    display: block;
    font-size: .76rem;
    color: #c0452a;
    margin-top: 3px;
}

.auth-error-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

    .auth-error-list li {
        font-size: .84rem;
    }

.auth-terms {
    font-size: .76rem;
    color: var(--slate);
    text-align: center;
    margin: 0;
}

    .auth-terms a {
        color: var(--teal);
        text-decoration: none;
        font-weight: 600;
    }

        .auth-terms a:hover {
            text-decoration: underline;
        }

/* ════════════════════════════════════════════════
   RESPONSIVO — TABLET
   ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .ef-grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .ef-grid-main-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .rsm-fotos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .create-layout {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 900px) {
    .exdet-layout {
        grid-template-columns: 1fr;
    }

        .exdet-layout > div:last-child {
            order: -1;
        }

    .exedit-layout {
        grid-template-columns: 1fr;
    }

        .exedit-layout > div:last-child {
            order: -1;
        }

    .exdel-layout {
        grid-template-columns: 1fr;
    }

    .exdel-info-grid {
        grid-template-columns: 1fr;
    }

    .gerenciar-layout {
        grid-template-columns: 1fr;
    }

    .gerenciar-sticky {
        position: static;
    }

    .details-layout {
        grid-template-columns: 1fr;
    }

    .avaldet-layout {
        grid-template-columns: 1fr;
    }

    .avaledit-layout {
        grid-template-columns: 1fr;
    }

    .chkrev-layout {
        grid-template-columns: 1fr;
    }

    .chtedit-layout {
        grid-template-columns: 1fr;
    }

    .aldet-layout {
        grid-template-columns: 1fr;
    }

    .assdet-layout {
        grid-template-columns: 1fr;
    }

    .thread-layout {
        grid-template-columns: 1fr;
    }

    .nova-layout {
        grid-template-columns: 1fr;
    }

    .rsm-charts-grid {
        grid-template-columns: 1fr;
    }

    .rsm-bottom-grid {
        grid-template-columns: 1fr;
    }

    .rsm-fotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aavd-grid {
        grid-template-columns: 1fr;
    }

    .avc-grid {
        grid-template-columns: 1fr;
    }

    .avc-sidebar {
        position: static;
    }

    .avc-medidas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .avc-circ-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pgr-grid {
        grid-template-columns: 1fr;
    }

    .pgr-deltas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planodel-layout {
        grid-template-columns: 1fr;
    }

    .planodet-layout {
        grid-template-columns: 1fr;
    }

    .prescrever-divisao-sugestao {
        grid-template-columns: 1fr 1fr;
    }

    .prescrever-sugestao-edit {
        grid-column: 1 / -1;
    }

    .alerta-grid {
        grid-template-columns: 1fr;
    }

    .ass-grid {
        grid-template-columns: 1fr;
    }

    .ass-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alu-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ════════════════════════════════════════════════
   RESPONSIVO — MOBILE (<= 768px)
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ef-sidebar, .ef-topbar {
        display: none;
    }

    .ef-topbar-mobile {
        display: flex;
    }

    .ef-bottom-nav {
        display: flex;
    }

    .ef-main {
        margin-left: 0;
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .ef-page {
        padding: 16px;
    }

    .ef-grid-4, .ef-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ef-grid-2, .ef-grid-main-side {
        grid-template-columns: 1fr;
    }

    .ef-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

        .ef-page-header .flex-gap-sm {
            width: 100%;
            flex-wrap: wrap;
        }

            .ef-page-header .flex-gap-sm a,
            .ef-page-header .flex-gap-sm button {
                flex: 1;
                justify-content: center;
            }

    /* Treinos */
    .treinos-grid {
        grid-template-columns: 1fr;
    }

    /* Sessão */
    .sessao-table-wrap {
        display: none;
    }

    .sessao-card-list {
        display: block;
    }

    .sessao-info-item {
        min-width: calc(50% - 1px);
        border-bottom: 1px solid var(--border-light);
    }

        .sessao-info-item:nth-child(even) {
            border-right: none;
        }

    /* Sessões admin */
    .sess-table-wrap, .sessdet-table-wrap {
        display: none;
    }

    .sess-card-list, .sessdet-card-list {
        display: block;
    }

    .sess-filter-form {
        flex-direction: column;
    }

    .chkrev-status-item {
        min-width: calc(50% - 1px);
        border-bottom: 1px solid var(--border-light);
    }

        .chkrev-status-item:nth-child(even) {
            border-right: none;
        }

    /* Progresso */
    .progresso-table-wrap {
        display: none;
    }

    .progresso-card-list {
        display: block;
    }

    .prog-table-wrap {
        display: none;
    }

    .prog-card-list {
        display: block;
    }

    .prog-filter-form {
        flex-direction: column;
    }

    /* Alunos */
    .alunos-table-wrap {
        display: none;
    }

    .alunos-card-list {
        display: block;
    }

    .alunos-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .alunos-footer {
        justify-content: center;
    }

    /* Exercícios */
    .gerenciar-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .exedit-checkgrid {
        grid-template-columns: 1fr;
    }

    .exdel-actions {
        flex-direction: column-reverse;
    }

        .exdel-actions .ef-btn-primary, .exdel-actions .ef-btn-outline {
            width: 100%;
            justify-content: center;
        }

    /* Treino Create/Delete */
    .create-layout {
        grid-template-columns: 1fr;
    }

    .create-actions {
        flex-direction: column;
    }

        .create-actions .ef-btn-primary, .create-actions .ef-btn-outline {
            width: 100%;
            justify-content: center;
        }

    .delete-layout {
        grid-template-columns: 1fr;
    }

    .delete-info-grid {
        grid-template-columns: 1fr;
    }

    .delete-actions {
        flex-direction: column-reverse;
    }

        .delete-actions .ef-btn-primary, .delete-actions .ef-btn-outline {
            width: 100%;
            justify-content: center;
        }

    .treino-delete-info {
        flex-direction: column;
    }

    /* TreinoSessoes Index */
    .tsd-table-wrap {
        display: none;
    }

    .tsd-card-list {
        display: block;
    }

    .tsd-acc-detalhes {
        grid-template-columns: 1fr;
    }

    .tsd-treino-unico {
        padding: 28px 16px;
    }

    /* TreinoSessoes Execute — já é mobile-first, sem overrides necessários */

    /* Checklists */
    .chk-table-wrap {
        display: none;
    }

    .chk-card-list {
        display: block;
    }

    .chk-filtros-wrap {
        flex-direction: column;
        gap: 14px;
    }

    .chk-filtro-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .chk-semana-grid {
        grid-template-columns: 1fr;
    }

    .chkd-table-wrap {
        display: none;
    }

    .chkd-card-list {
        display: block;
    }

    .chtcr-layout {
        grid-template-columns: 1fr;
    }

    .chtedit-table-wrap {
        display: none;
    }

    .chtedit-card-list {
        display: block;
    }

    .chka-sticky-bar {
        margin: -16px -16px 16px;
        padding: 0 16px;
    }

    .chka-bottom-bar {
        margin: 0 -16px;
        padding: 12px 16px;
    }

        .chka-bottom-bar button, .chka-bottom-bar a {
            flex: 1;
            justify-content: center;
        }

    .chka-pergunta-input {
        padding-left: 0;
    }

    .chka-escala-btn {
        width: 40px;
        height: 40px;
        font-size: .82rem;
    }

    /* Avaliações */
    .aval-table-wrap {
        display: none;
    }

    .aval-card-list {
        display: block;
    }

    .aval-filter-form {
        flex-direction: column;
    }

        .aval-filter-form .ef-btn-primary {
            width: 100%;
            justify-content: center;
        }

    .aval-compare-form {
        flex-direction: column;
    }

    .aval-compare-vs {
        display: none;
    }

    .aval-compare-form .ef-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .avaledit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .avaldet-fotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cmp-fotos-grid {
        grid-template-columns: 1fr;
    }

    .aav-table-wrap {
        display: none;
    }

    .aav-card-list {
        display: block;
    }

    .avc-medidas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .avc-circ-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mensagens */
    .inbox-item-titulo {
        white-space: normal;
    }

    .thread-messages {
        max-height: 55vh;
    }

    /* Alertas */
    .alerta-filter-form {
        flex-direction: column;
    }

        .alerta-filter-form .ef-btn-primary {
            width: 100%;
            justify-content: center;
        }

    .alerta-toggle-info {
        max-width: unset;
    }

    /* AdminAlunoDetalhes */
    .aldet-lote-row {
        flex-direction: column;
        align-items: flex-start;
    }

        .aldet-lote-row .flex-gap-sm {
            width: 100%;
        }

            .aldet-lote-row .flex-gap-sm button,
            .aldet-lote-row .flex-gap-sm > form button {
                flex: 1;
                justify-content: center;
            }

    /* Planos admin */
    .planos-table-wrap {
        display: none;
    }

    .planos-card-list {
        display: block;
    }

    .planodel-actions {
        flex-direction: column-reverse;
    }

        .planodel-actions a, .planodel-actions button {
            flex: unset !important;
        }

    /* Planos públicos */
    .planos-pub-hero {
        padding: 36px 16px 28px;
    }

    .planos-pub-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 48px;
    }

    .plano-card--destaque {
        transform: none;
    }

    /* Assinaturas */
    .ass-table-wrap {
        display: none;
    }

    .ass-card-list {
        display: block;
    }

    .assdet-pag-table-wrap {
        display: none;
    }

    .assdet-pag-card-list {
        display: block;
    }

    .asshist-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .asshist-pagtos-table {
        display: none;
    }

    .asshist-pagtos-cards {
        display: block;
    }

    /* Admin Resumo */
    .rsm-selector-form {
        flex-direction: column;
    }

    .rsm-table-wrap {
        display: none;
    }

    .rsm-card-list {
        display: block;
    }

    .rsm-aluno-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsm-fotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Prescrever */
    .prescrever-layout {
        grid-template-columns: 1fr;
    }

    .prescrever-side {
        position: static;
        order: -1;
    }

    .prescrever-modo-grid {
        grid-template-columns: 1fr;
    }

    .prescrever-actions {
        flex-direction: column;
    }

        .prescrever-actions .ef-btn-primary,
        .prescrever-actions .ef-btn-outline {
            width: 100%;
            justify-content: center;
        }

    /* Auth */
    .auth-card {
        padding: 28px 20px 24px;
    }

    .auth-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-card-title {
        font-size: 1.6rem;
    }

    /* Aluno Dashboard */
    .alu-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ef-nav-card {
        padding: 14px 10px;
        gap: 5px;
    }

    .ef-nav-card--row {
        padding: 12px;
        gap: 10px;
    }

    .ef-nav-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .ef-nav-card-arrow {
        display: none;
    }

    /* Aluno Avaliações */
    .aavd-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cmp-fotos-grid {
        grid-template-columns: 1fr;
    }

    .alunos-search-form .ef-btn-primary,
    .alunos-search-form .ef-btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .ef-grid-3[style*="repeat(4"] {
        grid-template-columns: repeat(2,1fr) !important;
    }

    .asshist-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .alu-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .avc-medidas-grid, .avc-circ-grid {
        grid-template-columns: 1fr;
    }

    .pgr-deltas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ass-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .gerenciar-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .alu-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
/* ─── HOME / LANDING PAGE ────────────────────────────────────────────────── */

.home-body {
    margin: 0;
    padding: 0;
    background: var(--white);
    overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.home-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-nav-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.01em;
    flex-shrink: 0;
}

    .home-nav-brand span {
        color: var(--teal);
    }

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .home-nav-links a {
        font-size: .88rem;
        font-weight: 600;
        color: var(--slate);
        text-decoration: none;
        transition: color .2s;
    }

        .home-nav-links a:hover {
            color: var(--teal);
        }

.home-nav-btn-outline {
    padding: 7px 18px;
    border: 2px solid var(--teal);
    border-radius: var(--radius-pill);
    color: var(--teal) !important;
    font-size: .84rem !important;
}

    .home-nav-btn-outline:hover {
        background: var(--teal);
        color: white !important;
    }

.home-nav-btn-primary {
    padding: 8px 20px;
    background: var(--teal);
    border-radius: var(--radius-pill);
    color: white !important;
    font-size: .84rem !important;
    transition: background .2s;
}

    .home-nav-btn-primary:hover {
        background: var(--teal-dark) !important;
        color: white !important;
    }

/* Hamburger */
.home-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

    .home-nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: all .25s;
        transform-origin: center;
    }

    .home-nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .home-nav-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .home-nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile nav */
.home-nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-light);
    gap: 4px;
    background: var(--white);
}

    .home-nav-mobile.open {
        display: flex;
    }

    .home-nav-mobile a {
        font-size: .92rem;
        font-weight: 600;
        color: var(--slate);
        text-decoration: none;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-light);
        transition: color .15s;
    }

        .home-nav-mobile a:last-child {
            border-bottom: none;
        }

        .home-nav-mobile a:hover {
            color: var(--teal);
        }

    .home-nav-mobile .home-nav-btn-primary {
        margin-top: 8px;
        text-align: center;
        padding: 12px;
        border-radius: var(--radius);
    }

/* ─── CONTAINERS ─────────────────────────────────────────────────────────── */
.home-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-container--narrow {
    max-width: 780px;
}

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.home-section {
    padding: 88px 0;
}

.home-section--snow {
    background: var(--snow);
}

.home-section-heading {
    text-align: center;
    margin-bottom: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .home-section-heading .ef-label {
        margin-bottom: 4px;
    }

    .home-section-heading .ef-text-body {
        max-width: 520px;
    }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.home-hero {
    padding: 120px 0 88px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--teal-pale) 100%);
    position: relative;
    overflow: hidden;
}

    .home-hero::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
        border-radius: 50%;
    }

.home-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.02em;
}

    .home-hero-title em {
        font-style: italic;
        color: var(--teal);
    }

.home-hero-sub {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.75;
    max-width: 520px;
}

.home-hero-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

    .home-hero-checks li {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: .9rem;
        font-weight: 600;
        color: var(--ink);
    }

        .home-hero-checks li i {
            color: var(--teal);
            font-size: .95rem;
        }

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.home-btn-lg {
    padding: 13px 28px;
    font-size: .95rem;
    border-radius: var(--radius-pill);
}

/* ─── PERSONAL CARD ──────────────────────────────────────────────────────── */
.home-personal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.home-personal-photo {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--snow);
}

    .home-personal-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
        transition: transform .4s ease;
    }

.home-personal-card:hover .home-personal-photo img {
    transform: scale(1.03);
}

.home-personal-info {
    padding: 20px 20px 16px;
}

.home-personal-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.home-personal-role {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--teal);
}

.home-personal-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--teal);
    color: white;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── DIFERENCIAIS ───────────────────────────────────────────────────────── */
.home-diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.home-diferencial-card {
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

    .home-diferencial-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        border-color: var(--teal);
    }

.home-diferencial-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--teal);
}

.home-diferencial-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.home-diferencial-card p {
    font-size: .88rem;
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
}

/* ─── PLANOS ─────────────────────────────────────────────────────────────── */
.home-planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.home-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.home-faq-item {
    border-bottom: 1px solid var(--border-light);
}

    .home-faq-item:last-child {
        border-bottom: none;
    }

.home-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    transition: background .15s;
}

    .home-faq-btn:hover {
        background: var(--snow);
    }

    .home-faq-btn.open {
        background: var(--teal-dim);
        color: var(--teal-dark);
    }

.home-faq-chev {
    font-size: .8rem;
    color: var(--teal);
    flex-shrink: 0;
    transition: transform .2s;
}

.home-faq-body {
    display: none;
    padding: 0 24px 20px;
    font-size: .92rem;
    color: var(--slate);
    line-height: 1.75;
}

/* ─── CTA ────────────────────────────────────────────────────────────────── */
.home-cta {
    background: var(--teal);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .home-cta::before {
        content: '';
        position: absolute;
        top: -60px;
        left: -60px;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,.07);
        border-radius: 50%;
    }

    .home-cta::after {
        content: '';
        position: absolute;
        bottom: -80px;
        right: -40px;
        width: 360px;
        height: 360px;
        background: rgba(255,255,255,.05);
        border-radius: 50%;
    }

.home-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 12px 0 16px;
}

    .home-cta-title em {
        font-style: italic;
        color: var(--teal-pale);
    }

.home-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 36px;
}

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all .2s;
    position: relative;
    z-index: 1;
}

    .home-cta-btn:hover {
        background: var(--teal-pale);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,.15);
    }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.home-footer {
    background: var(--ink);
    padding: 48px 0 32px;
}

.home-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.home-footer-brand .home-nav-brand {
    color: white;
    display: block;
    margin-bottom: 8px;
}

.home-footer-brand p {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    max-width: 260px;
    line-height: 1.6;
}

.home-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
}

    .home-footer-links a {
        font-size: .84rem;
        color: rgba(255,255,255,.6);
        text-decoration: none;
        transition: color .15s;
    }

        .home-footer-links a:hover {
            color: white;
        }

.home-footer-copy {
    font-size: .76rem;
    color: rgba(255,255,255,.35);
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    text-align: center;
}

/* ─── RESPONSIVO ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-hero-card {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .home-nav-links {
        display: none;
    }

    .home-nav-hamburger {
        display: flex;
    }

    .home-hero {
        padding: 96px 0 64px;
    }

    .home-hero-title {
        font-size: 2.2rem;
    }

    .home-section {
        padding: 64px 0;
    }

    .home-hero-actions {
        flex-direction: column;
    }

        .home-hero-actions a {
            text-align: center;
            justify-content: center;
        }

    .home-diferenciais-grid {
        grid-template-columns: 1fr;
    }

    .home-planos-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .home-cta {
        padding: 64px 0;
    }

    .home-footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .home-footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .home-hero-checks {
        flex-direction: column;
        gap: 8px;
    }

    .home-personal-card {
        max-width: 320px;
        margin: 0 auto;
    }
}
/* ─── EXERCÍCIO CREATE ───────────────────────────────────────────────────── */

.excriar-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.excriar-side {
    position: sticky;
    top: 24px;
}

/* ─── CHECKGRID DE GRUPOS MUSCULARES ─────────────────────────────────────── */
.excriar-checkgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal-pale) transparent;
}

/* ─── ERROS ──────────────────────────────────────────────────────────────── */
.excriar-error {
    display: block;
    font-size: .76rem;
    color: #c0452a;
    margin-top: 3px;
}

/* ─── OPCIONAL LABEL ─────────────────────────────────────────────────────── */
.excriar-opcional {
    font-size: .72rem;
    font-weight: 400;
    color: var(--ink-light);
    margin-left: 4px;
}

/* ─── AÇÕES ──────────────────────────────────────────────────────────────── */
.excriar-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

/* ─── RESPONSIVO ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .excriar-layout {
        grid-template-columns: 1fr;
    }

    .excriar-side {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .ef-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

        .ef-page-header .flex-gap-sm {
            width: 100%;
        }

            .ef-page-header .flex-gap-sm a {
                flex: 1;
                justify-content: center;
            }

    .excriar-checkgrid {
        grid-template-columns: 1fr;
    }

    .excriar-actions {
        flex-direction: column;
    }

        .excriar-actions .ef-btn-primary,
        .excriar-actions .ef-btn-outline {
            width: 100%;
            justify-content: center;
        }
}
/* ─── _ExercicioDetails partial ─────────────────────────────────────────── */
.exd-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Imagem */
.exd-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--snow);
    border: 1px solid var(--border-light);
    text-align: center;
}

.exd-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Grupos musculares */
.exd-grupos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.exd-badge-principal {
    font-size: .76rem;
}

.exd-badge-sec {
    font-size: .72rem;
}

/* Blocos de conteúdo */
.exd-bloco {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

    .exd-bloco:last-child {
        border-bottom: none;
    }

.exd-bloco-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exd-bloco-text {
    font-size: .88rem;
    color: var(--ink);
    line-height: 1.7;
    margin: 0;
}

/* Instruções */
.exd-instrucoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exd-instrucao-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .86rem;
    color: var(--ink);
    line-height: 1.55;
}

.exd-bullet {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    margin-top: 1px;
}

/* Vídeo */
.exd-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

    .exd-video-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.exd-video-native {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    max-height: 280px;
}

.exd-yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: #ff4444;
    color: white;
    border-radius: var(--radius-pill);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

    .exd-yt-btn:hover {
        background: #cc0000;
        color: white;
    }

/* Observações */
.exd-obs {
    font-size: .84rem;
    line-height: 1.65;
    margin: 0;
}

/* Vazio */
.exd-info-vazio {
    font-size: .84rem;
    margin: 0;
}

/* ─── MOBILE ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .exd-img {
        max-height: 200px;
    }

    .exd-bloco {
        padding: 12px 0;
    }

    .exd-instrucao-item {
        font-size: .83rem;
    }

    .exd-bullet {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: .62rem;
    }
}
/* ─── AUTH PAGES — Login e Register ─────────────────────────────────────── */

/* Body */
.auth-body {
    min-height: 100vh;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* Wrapper central */
.auth-wrap {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ─── BRAND ──────────────────────────────────────────────────────────────── */
.auth-brand {
    text-align: center;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.01em;
}

    .auth-logo span {
        color: var(--teal);
    }

.auth-tagline {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    margin: 2px 0 0;
}

/* ─── CARD ───────────────────────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 36px 32px 28px;
    box-shadow: var(--shadow-md);
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 6px;
}

    .auth-card-title em {
        font-style: italic;
        color: var(--teal);
    }

.auth-card-sub {
    font-size: .88rem;
    color: var(--slate);
}

/* ─── INPUT COM OLHO ─────────────────────────────────────────────────────── */
.auth-input-eye {
    position: relative;
    display: flex;
    align-items: center;
}

    .auth-input-eye .ef-input {
        padding-right: 44px;
    }

.auth-eye-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--slate);
    cursor: pointer;
    font-size: 1rem;
    transition: color .15s;
}

    .auth-eye-btn:hover {
        color: var(--teal);
    }

/* ─── GRID 2 COLUNAS ─────────────────────────────────────────────────────── */
.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ─── REMEMBER + FORGOT ──────────────────────────────────────────────────── */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    color: var(--ink);
    cursor: pointer;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
    cursor: pointer;
}

.auth-forgot {
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

    .auth-forgot:hover {
        color: var(--teal-dark);
        text-decoration: underline;
    }

/* ─── BOTÃO SUBMIT ───────────────────────────────────────────────────────── */
.auth-btn-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: .95rem;
    border-radius: var(--radius);
    margin-top: 4px;
}

/* ─── SPINNER ────────────────────────────────────────────────────────────── */
@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

.auth-spin {
    display: inline-block;
    animation: authSpin .7s linear infinite;
}

/* ─── LINK ROW ───────────────────────────────────────────────────────────── */
.auth-link-row {
    text-align: center;
    font-size: .85rem;
    color: var(--slate);
    margin-top: 18px;
    margin-bottom: 0;
}

    .auth-link-row a {
        font-weight: 700;
        color: var(--teal);
        text-decoration: none;
    }

        .auth-link-row a:hover {
            color: var(--teal-dark);
            text-decoration: underline;
        }

/* ─── ERROS ──────────────────────────────────────────────────────────────── */
.auth-error {
    display: block;
    font-size: .76rem;
    color: #c0452a;
    margin-top: 3px;
}

.auth-error-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

    .auth-error-list li {
        font-size: .84rem;
    }

/* ─── TERMOS ─────────────────────────────────────────────────────────────── */
.auth-terms {
    font-size: .76rem;
    color: var(--slate);
    text-align: center;
    margin: 0;
}

    .auth-terms a {
        color: var(--teal);
        text-decoration: none;
        font-weight: 600;
    }

        .auth-terms a:hover {
            text-decoration: underline;
        }

/* ─── RESPONSIVO ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
    }

    .auth-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-card-title {
        font-size: 1.6rem;
    }
}

/* ─── FORGOT PASSWORD — ícone central ───────────────────────────────────── */
.auth-forgot-icon {
    width: 56px;
    height: 56px;
    background: var(--teal-dim);
    border: 2px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--teal);
    margin-bottom: 16px;
}

/* ─── FORGOT PASSWORD ────────────────────────────────────────────────────── */
.forgot-wrap {
    display: flex;
    justify-content: center;
}

.forgot-card {
    width: 100%;
    max-width: 480px;
}

.forgot-icon {
    width: 52px;
    height: 52px;
    background: var(--teal-dim);
    border: 2px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--teal);
    margin-bottom: 20px;
}

/* ─── PROFILE — itens de informação ─────────────────────────────────────── */
.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: var(--snow);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.profile-info-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal);
}

.profile-info-value {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
}
/* ─── COMPLETE PROFILE ───────────────────────────────────────────────────── */
.cprofile-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.cprofile-main {
    min-width: 0;
}

.cprofile-side {
    position: sticky;
    top: 24px;
}

.cprofile-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cprofile-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .cprofile-layout {
        grid-template-columns: 1fr;
    }

    .cprofile-side {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cprofile-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cprofile-grid-2,
    .cprofile-grid-3 {
        grid-template-columns: 1fr;
    }
}
/* ─── EDIT FOTO ──────────────────────────────────────────────────────────── */
.editfoto-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.editfoto-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal);
    box-shadow: var(--shadow-sm);
}

.editfoto-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--teal-dim);
    border: 3px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--teal);
}

.ef-bottom-nav-item > span[style*="background:#e05c5c"] {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
}

#btnEnviar {
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
}

.contato-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .contato-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .contato-layout > .ef-card-flat [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
/* ── BOTTOM NAV ALUNO — FAB centralizado com itens equilibrados ── */
.ef-bottom-nav-inner .ef-bottom-nav-item.center {
    flex: 1; /* mesmo flex dos outros — sem fixo */
    width: auto;
    height: auto;
    margin: 0;
    padding: 6px 4px;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
    color: var(--slate);
    transform: translateY(-13px);
}

    .ef-bottom-nav-inner .ef-bottom-nav-item.center i {
        font-size: 1.6rem;
        color: inherit;
        background: var(--teal);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 12px var(--teal-glow);
        align-items: flex-start;
        padding-top: 12px;
    }

    .ef-bottom-nav-inner .ef-bottom-nav-item.center:hover {
        background: transparent;
        transform: none;
    }

        .ef-bottom-nav-inner .ef-bottom-nav-item.center:hover i {
            background: var(--teal-dark);
            transform: scale(1.08);
        }

    .ef-bottom-nav-inner .ef-bottom-nav-item.center::before {
        display: none;
    }

.aav-fotos-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--teal-dim);
    border: 1px solid var(--teal-pale);
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 600;
    color: var(--teal-dark);
}

    .aav-fotos-badge i {
        font-size: .8rem;
        color: var(--teal);
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Copie os estilos da página de detalhes se necessário, ou mantenha os do modal original */
.exdet-video-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: var(--radius);
}

    .exdet-video-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.exdet-img-wrap {
    background: var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}

    .exdet-img-wrap img {
        max-width: 100%;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

.exdet-no-img {
    background: var(--border-light);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--slate);
}

    .exdet-no-img i {
        font-size: 2.5rem;
        opacity: 0.5;
        margin-bottom: 12px;
        display: inline-block;
    }

.exd-instrucoes {
    background: var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
}

.exd-instrucao-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: .85rem;
}

.exd-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: bold;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ef-modal-header {
        padding: 12px 16px 0 !important;
    }

    .ef-heading-display {
        font-size: 1.1rem !important;
    }

    .ef-text-muted {
        font-size: 0.7rem !important;
    }

    .ef-modal-close {
        font-size: 1.8rem !important;
        padding: 4px 8px;
    }
}

/* Estilo do botão de fechar */
.ef-modal-close:hover {
    color: var(--teal);
    background: var(--border-light);
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════
   TREINOS/EDIT — TAB NAV
═══════════════════════════════════════════════ */

.ex-tab-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.ex-tab {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: .85rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s;
    font-family: inherit;
    overflow: hidden;
}

.ex-tab.ex-tab-ativo {
    background: #f8fafc;
    color: #1a7a5e;
    border-bottom-color: #1a7a5e;
}

.ex-tab-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ex-tab-badge {
    background: #e8f5f0;
    color: #1a7a5e;
    font-size: .72rem;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.ex-tab:not(.ex-tab-ativo) .ex-tab-badge {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Em telas pequenas: esconde texto, mantém ícone + badge */
@media (max-width: 420px) {
    .ex-tab { padding: 12px 8px; gap: 4px; font-size: .76rem; }
    .ex-tab-label { display: none; }
    .ex-tab { font-size: 1rem; } /* ícone fica maior quando texto some */
}

/* ═══════════════════════════════════════════════
   TREINOS/EDIT — CARD PADDING MOBILE
═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ef-card-flat, .ef-card-snow, .ef-card-teal {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .ef-card-flat, .ef-card-snow, .ef-card-teal {
        padding: 14px;
    }
}

/* ═══════════════════════════════════════════════
   TREINOS/EDIT — LAYOUT MOBILE
═══════════════════════════════════════════════ */

/* Garante que filhos do grid não ultrapassem a coluna */
.create-layout > * { min-width: 0; }

/* ═══════════════════════════════════════════════
   EXERCÍCIO PICKER — Treinos/Edit — Aba Adicionar
═══════════════════════════════════════════════ */

/* Grid de 2 colunas que colapsa em telas muito pequenas */
.ex-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 360px) {
    .ex-grid-2 { grid-template-columns: 1fr; }
}

.ex-busca-wrap { padding: 16px 16px 8px; }

.ex-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 16px 10px;
}

.ex-chip {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-light);
    background: white;
    color: var(--slate);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}
.ex-chip.ativo { background: var(--teal); border-color: var(--teal); color: white; }
.ex-chip:active { opacity: .75; }

.ex-chips-label {
    padding: 10px 16px 2px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ex-chip-mais {
    border-style: dashed;
    color: var(--teal);
    border-color: var(--teal);
    background: white;
}

.ex-lista {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ex-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    -webkit-tap-highlight-color: rgba(34,170,178,.08);
    user-select: none;
}
.ex-card:active,
.ex-card:hover { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }

.ex-card-gif {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--snow);
}
.ex-card-gif-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-card-gif-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 1.6rem;
    background: var(--teal-dim);
}

.ex-card-body { flex: 1; min-width: 0; }
.ex-card-nome {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ex-card-grupo {
    font-size: .72rem;
    background: var(--teal-dim);
    color: var(--teal-dark);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
    font-weight: 600;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ex-card-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .15s, background .15s;
}
.ex-card-btn:active { transform: scale(.88); background: var(--teal-dark); }

.ex-vazio {
    text-align: center;
    padding: 32px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: .9rem;
}

/* Step 2 — Configuração */
.ex-config-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--snow);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 20px;
    border: 1.5px solid var(--border-light);
}
.ex-config-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid var(--border-light);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: .95rem;
    transition: border-color .15s, color .15s;
}
.ex-config-back:active { border-color: var(--teal); color: var(--teal); }

.ex-config-gif {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--teal-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ex-config-gif-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-config-gif-placeholder { color: var(--teal); font-size: 1.4rem; }

.ex-config-info { flex: 1; min-width: 0; }
.ex-config-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}
.ex-config-nome {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stepper de séries/reps */
.ex-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
}
.ex-stepper-btn {
    width: 44px;
    height: 46px;
    background: var(--snow);
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .1s;
    line-height: 1;
    font-family: inherit;
}
.ex-stepper-btn:active { background: var(--teal-dim); }
.ex-stepper-input {
    flex: 1;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    border: none;
    outline: none;
    padding: 0;
    background: white;
    -moz-appearance: textfield;
    width: 0;
    min-width: 0;
}
.ex-stepper-input::-webkit-outer-spin-button,
.ex-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Steppers menores em telas muito pequenas */
@media (max-width: 360px) {
    .ex-stepper-btn { width: 36px; height: 40px; font-size: 1.1rem; }
    .ex-stepper-input { font-size: 1rem; }
}

/* Garante que cards e listas não ultrapassem o container */
.ex-lista, .ex-card, .ex-card-body { min-width: 0; }
.ex-config-header { min-width: 0; }
.ex-config-info { min-width: 0; overflow: hidden; }

/* ═══════════════════════════════════════════════════════
   PRESCREVER TREINO
   ═══════════════════════════════════════════════════════ */

/* Layout 2 colunas igual ao create-layout */
.prescrever-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .prescrever-layout { grid-template-columns: 1fr; }
    .prescrever-side { order: -1; }
}
.prescrever-main { min-width: 0; }

/* Info do aluno selecionado */
.prescrever-aluno-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.prescrever-aluno-nome {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.prescrever-aluno-info {
    font-size: .8rem;
    color: var(--slate);
    margin-top: 2px;
}

/* Linha de divisão ativa */
.presc-divisao-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background .15s;
}
.presc-divisao-row:last-child { border-bottom: none; }
.presc-divisao-row:hover { background: var(--teal-dim); }

.presc-divisao-letra {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal-dim);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.presc-divisao-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.presc-divisao-nome {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.presc-divisao-data {
    font-size: .75rem;
    color: var(--slate);
}

.presc-btn-subst {
    gap: 5px;
    padding: 6px 12px;
    font-size: .8rem !important;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
}
.presc-btn-subst:hover { border-color: var(--teal); color: var(--teal); }

@media (max-width: 480px) {
    .presc-btn-subst-label { display: none; }
    .presc-btn-subst { padding: 6px 10px; }
}

/* Cabeçalho do painel de substituição */
.presc-subst-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 14px;
}

/* Grade de 2 colunas nos formulários */
.presc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .presc-form-grid { grid-template-columns: 1fr; }
}

/* CTA — Criar treino personalizado */
.presc-criar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 2px dashed var(--teal);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    color: inherit;
    margin-bottom: 16px;
}
.presc-criar-card:hover {
    background: var(--teal-dim);
    border-color: var(--teal-dark);
    text-decoration: none;
    color: inherit;
}
.presc-criar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal-dim);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.presc-criar-card:hover .presc-criar-icon {
    background: var(--teal);
    color: white;
}
.presc-criar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.presc-criar-body strong {
    font-size: .92rem;
    color: var(--teal-dark);
}
.presc-criar-body span {
    font-size: .8rem;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA — Prescrever para aluno (no Edit) */
.presc-cta-edit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--teal);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    text-decoration: none;
    color: white;
    transition: background .15s;
}
.presc-cta-edit:hover {
    background: var(--teal-dark);
    text-decoration: none;
    color: white;
}
.presc-cta-edit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.presc-cta-edit-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.presc-cta-edit-body strong {
    font-size: .9rem;
    font-weight: 700;
}
.presc-cta-edit-body span {
    font-size: .78rem;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   EXERCÍCIO GRID — Biblioteca de Exercícios
   ============================================= */

.exercicio-filtros-wrap {
    padding: 14px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Busca */
.exercicio-busca-wrap {
    position: relative;
    max-width: 340px;
}
.exercicio-busca-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal);
    font-size: .95rem;
    pointer-events: none;
}
.exercicio-busca-input {
    padding-left: 36px !important;
    width: 100%;
}

/* Pills de categoria */
.exercicio-categoria-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.exercicio-pill {
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-light);
    font-size: .8rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    background: #fff;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1.4;
}
.exercicio-pill:hover {
    background: var(--teal-dim);
    border-color: var(--teal);
    color: var(--teal-dark);
}
.exercicio-pill.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* Grid de cards */
.exercicio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) {
    .exercicio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .exercicio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 420px) {
    .exercicio-grid { grid-template-columns: 1fr; }
}

/* Card individual */
.exercicio-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    background: #fff;
    transition: box-shadow .2s, transform .15s;
}
.exercicio-card:hover {
    box-shadow: 0 6px 20px rgba(34, 170, 178, .14);
    transform: translateY(-2px);
}

/* Thumbnail */
.exercicio-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--snow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}
.exercicio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.exercicio-thumb-placeholder {
    color: var(--teal);
    font-size: 2.8rem;
    opacity: .35;
}

/* Corpo do card */
.exercicio-body {
    padding: 12px 12px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.exercicio-nome {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    line-height: 1.3;
}
.exercicio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Ações */
.exercicio-actions {
    padding: 8px 10px 10px;
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--border-light);
}
.exercicio-btn-ver {
    flex: 1;
    text-align: center;
    justify-content: center;
}
.exercicio-btn-excluir {
    color: #e74c3c !important;
    border-color: #e74c3c !important;
}
.exercicio-btn-excluir:hover {
    background: #fff0ef !important;
}
