:root {
    --bg: #0a0a0d;
    --panel: #121218;
    --panel2: #181820;
    --border: #292932;
    --text: #f7f7fa;
    --muted: #9393a2;
    --pink: #ff3d81;
    --pink2: #ff6aa0;
    --violet: #8d5cff;
    --green: #32d583;
    --danger: #ff5d6c;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .28)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text)
}

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

button,
input,
textarea,
select {
    font: inherit
}

button {
    cursor: pointer
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    font-family: Montserrat, Inter, sans-serif
}

.muted {
    color: var(--muted)
}

.app-shell {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    padding: 24px 16px;
    background: #0d0d12;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 40
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px
}



.brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.05
}

.brand small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: .14em;
    text-transform: uppercase
}

.side-nav {
    display: grid;
    gap: 7px;
    margin-top: 38px
}

.side-nav a,
.nav-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #a8a8b4;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left
}

.side-nav a svg,
.nav-logout svg {
    width: 19px
}

.side-nav a:hover,
.side-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 61, 129, .16), rgba(141, 92, 255, .08));
    box-shadow: inset 3px 0 0 var(--pink)
}

.sidebar-foot {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 16px
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px
}

.user-mini div {
    display: flex;
    flex-direction: column
}

.user-mini small {
    color: var(--muted);
    font-size: 11px
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffb0ca, var(--pink));
    color: #27000e;
    font-weight: 900
}

.avatar.lg {
    width: 52px;
    height: 52px
}

.avatar.xl {
    width: 72px;
    height: 72px;
    font-size: 25px
}

.main {
    margin-left: 250px;
    min-height: 100vh
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 30px;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 13, .85);
    backdrop-filter: blur(14px);
    z-index: 30
}

.topbar>div {
    display: flex;
    flex-direction: column
}

.topbar .muted {
    font-size: 12px;
    margin-top: 2px
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: #fff
}

.content {
    padding: 30px;
    max-width: 1450px;
    margin: auto
}

.eyebrow {
    display: block;
    color: var(--pink2);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .14em;
    margin-bottom: 8px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    background: var(--panel2);
    color: #fff
}

.btn svg {
    width: 18px
}

.btn.primary {
    background: linear-gradient(135deg, var(--pink), #e3286a);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(255, 61, 129, .2)
}

.btn.ghost {
    background: transparent
}

.btn.big {
    padding: 15px 22px
}

.btn.full {
    width: 100%
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06)
}

.text-link {
    color: var(--pink2);
    font-weight: 700
}

.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #17171f;
    border: 1px solid var(--border);
    transition: .5s
}

.alert.success {
    border-color: rgba(50, 213, 131, .35);
    color: #baf5d7
}

.alert.warning {
    border-color: #7c6730;
    color: #f7db8a
}

.alert.danger {
    border-color: #71313a;
    color: #ffb9c0
}

.alert.fade {
    opacity: 0;
    transform: translateY(-6px)
}

.welcome,
.program-head,
.page-actions,
.profile-hero,
.student-plan-hero,
.workout-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px
}

.welcome h1,
.program-head h1,
.student-welcome h1 {
    font-size: clamp(27px, 4vw, 42px);
    margin-bottom: 8px
}

.welcome p,
.program-head p,
.student-welcome p {
    color: var(--muted);
    margin-bottom: 0
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 61, 129, .1);
    color: var(--pink2)
}

.stat-icon svg {
    width: 21px
}

.stat-card div {
    display: flex;
    flex-direction: column
}

.stat-card small {
    color: var(--muted)
}

.stat-card strong {
    font: 800 28px Montserrat;
    margin-top: 3px
}

.two-col {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 20px;
    margin-bottom: 20px
}

.panel,
.form-card,
.day-card,
.student-exercise,
.finish-card,
.history-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px
}

.panel-head h2 {
    margin: 0;
    font-size: 20px
}

.person-row,
.log-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border)
}

.person-row>div,
.log-row>div {
    display: flex;
    flex-direction: column;
    flex: 1
}

.person-row small,
.log-row small {
    color: var(--muted);
    margin-top: 3px
}

.person-row>svg {
    width: 18px;
    color: var(--muted)
}

.log-row>svg {
    color: var(--green);
    width: 20px
}

.plan-card {
    background: linear-gradient(145deg, #15121c, #111116)
}

.plan-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(255, 61, 129, .13);
    color: var(--pink2);
    font-weight: 900;
    margin: 6px 0 14px
}

.feature {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: #d8d8df
}

.feature svg {
    color: var(--green);
    width: 18px
}

.empty {
    padding: 24px;
    color: var(--muted);
    text-align: center
}

.empty.wide {
    grid-column: 1/-1;
    background: var(--panel);
    border: 1px dashed #343440;
    border-radius: var(--radius)
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 9px 13px;
    border-radius: 12px;
    min-width: 300px
}

.search svg {
    width: 18px;
    color: var(--muted)
}

.search input {
    background: none;
    border: 0;
    outline: 0;
    color: #fff;
    width: 100%
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.student-card,
.plan-tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: .2s
}

.student-card:hover,
.plan-tile:hover {
    border-color: #4a3140;
    transform: translateY(-2px)
}

.student-top,
.plan-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px
}

.student-card h3,
.plan-tile h3 {
    margin-bottom: 7px
}

.student-card p,
.plan-tile p {
    color: var(--muted);
    min-height: 38px
}

.student-meta {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border)
}

.student-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px
}

.student-meta svg {
    width: 15px
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800
}

.status.ok {
    background: rgba(50, 213, 131, .1);
    color: #74e7ad
}

.status.off {
    background: #22222a;
    color: #999
}

.tile-foot {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 12px
}

.profile-hero {
    justify-content: flex-start;
    background: linear-gradient(135deg, #17131a, #111116);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px
}

.profile-hero>div {
    flex: 1
}

.profile-hero h1 {
    margin: 6px 0
}

.profile-hero p {
    color: var(--muted);
    margin: 0
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0
}

.chips span,
.pill {
    padding: 7px 10px;
    border-radius: 9px;
    background: #1d1d25;
    border: 1px solid var(--border);
    font-size: 12px;
    color: #c8c8d2
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-top: 18px
}

.inline-form select {
    flex: 1
}

.assessment-list {
    margin-top: 20px
}

.assessment {
    display: grid;
    grid-template-columns: 140px repeat(3, 1fr);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    color: #ccc
}

.measure-grid {
    grid-template-columns: repeat(5, 1fr) !important
}

.table-wrap {
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius)
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border)
}

th {
    color: #777787;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em
}

td strong,
td small {
    display: block
}

td small {
    color: var(--muted);
    margin-top: 4px
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #1d1d25;
    border: 1px solid var(--border);
    color: #ddd
}

.icon-btn svg {
    width: 17px
}

.icon-btn.danger {
    color: #ff7a87
}

.form-card {
    max-width: 900px
}

.form-grid {
    display: grid;
    gap: 16px
}

.form-grid.two {
    grid-template-columns: 1fr 1fr
}

.form-grid label {
    display: grid;
    gap: 7px;
    color: #d5d5dd;
    font-size: 13px;
    font-weight: 600
}

.form-grid label small {
    color: var(--muted);
    font-weight: 400
}

.span2 {
    grid-column: 1/-1
}

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

.form-grid input,
.form-grid textarea,
.form-grid select,
.inline-form select,
.add-exercise input,
.add-exercise select,
.finish-form input {
    width: 100%;
    background: #0e0e13;
    border: 1px solid #30303a;
    border-radius: 11px;
    padding: 12px;
    color: #fff;
    outline: 0
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: var(--pink)
}

.workout-days {
    display: grid;
    gap: 18px
}

.day-card {
    padding: 0;
    overflow: hidden
}

.day-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border)
}

.day-head small {
    color: var(--pink2);
    font-weight: 800
}

.day-head h2 {
    margin: 4px 0
}

.day-head p {
    color: var(--muted);
    margin: 0
}

.exercise-stack {
    padding: 0 20px
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border)
}

.order {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #23232c;
    display: grid;
    place-items: center;
    color: #aaa;
    font-weight: 800
}

.order.lg {
    width: 42px;
    height: 42px
}

.exercise-main {
    flex: 1;
    display: flex;
    flex-direction: column
}

.exercise-main small {
    color: var(--muted);
    margin-top: 4px
}

.rx {
    display: flex;
    flex-direction: column;
    text-align: right
}

.rx small {
    color: var(--muted);
    margin-top: 3px
}

.video-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 61, 129, .13);
    color: var(--pink2)
}

.video-dot svg {
    width: 15px
}

.add-exercise {
    display: grid;
    grid-template-columns: 2fr .6fr .8fr .7fr 1fr auto;
    gap: 8px;
    padding: 16px 20px;
    background: #0e0e13
}

.hidden {
    display: none !important
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100
}

.modal.show {
    display: flex
}

.modal-card {
    width: min(520px, 100%);
    background: #15151c;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px
}

.student-welcome {
    margin-bottom: 22px
}

.student-plan-hero {
    background: linear-gradient(135deg, #24111b, #17111f 55%, #151326);
    border: 1px solid #4a2637;
    border-radius: 24px;
    padding: 28px
}

.student-plan-hero h2 {
    font-size: 30px;
    margin: 4px 0 8px
}

.student-plan-hero p {
    color: #c3aeb7;
    margin: 0
}

.progress-orb,
.workout-count {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--pink) 72%, #2b2530 0);
    font: 900 29px Montserrat;
    position: relative
}

.progress-orb:after,
.workout-count:after {
    content: "";
    position: absolute;
    inset: 7px;
    background: #17131b;
    border-radius: 50%;
    z-index: 0
}

.progress-orb strong,
.workout-count strong {
    position: relative;
    z-index: 2;
    font: 900 29px Montserrat
}

.progress-orb small,
.workout-count small {
    position: absolute;
    z-index: 2;
    font: 500 10px Inter;
    margin-top: 40px;
    color: #bcaab2
}

.progress-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

.student-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px
}

.student-day {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px
}

.student-day:hover {
    border-color: #553247
}

.student-day>div {
    flex: 1
}

.student-day small {
    color: var(--pink2);
    font-size: 10px;
    font-weight: 800
}

.student-day h3 {
    margin: 3px 0
}

.student-day p {
    color: var(--muted);
    margin: 0;
    font-size: 12px
}

.student-day>svg {
    color: var(--muted)
}

.day-number {
    font: 900 24px Montserrat;
    color: #3f3f49
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px
}

.metrics>div {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #0e0e13;
    border-radius: 12px
}

.metrics strong,
.metrics b {
    font: 900 22px Montserrat
}

.metrics small,
.metrics span {
    color: var(--muted);
    font-size: 11px
}

.workout-hero {
    background: linear-gradient(135deg, #17131a, #111116);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border)
}

.workout-hero h1 {
    font-size: 34px;
    margin: 5px 0
}

.workout-hero p {
    color: var(--muted);
    margin: 0
}

.workout-count {
    background: linear-gradient(135deg, var(--pink), var(--violet))
}

.workout-count:after {
    background: #17131b
}

.student-exercises {
    display: grid;
    gap: 16px
}

.exercise-header {
    display: flex;
    align-items: center;
    gap: 14px
}

.exercise-header>div:nth-child(2) {
    flex: 1
}

.exercise-header small {
    color: var(--pink2);
    font-size: 10px;
    font-weight: 800
}

.exercise-header h2 {
    margin: 4px 0
}

.rx.big b {
    font-size: 18px
}

.student-exercise>p {
    color: #b9b9c4;
    line-height: 1.6;
    margin: 14px 0
}

.video-frame {
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    background: #050506;
    margin-top: 15px
}

.video-frame iframe,
.exercise-video {
    width: 100%;
    height: 100%;
    border: 0
}

.exercise-video {
    max-height: 520px;
    border-radius: 14px;
    background: #050506
}

.note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #0e0e13;
    color: #bcbcc7;
    display: flex;
    align-items: center;
    gap: 8px
}

.note svg {
    width: 18px;
    color: var(--pink2)
}

.finish-card {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #1e1318, #15151b)
}

.finish-card h2 {
    margin: 0
}

.finish-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 720px
}

.metrics-history {
    display: grid;
    gap: 14px
}

.history-card>.metrics {
    grid-template-columns: repeat(4, 1fr)
}

.history-card p {
    color: var(--muted);
    margin: 12px 0 0
}

.landing {
    min-height: 100vh;
    background: radial-gradient(circle at 80% 20%, rgba(141, 92, 255, .16), transparent 28%), radial-gradient(circle at 20% 20%, rgba(255, 61, 129, .13), transparent 27%), #09090c
}

.landing-nav {
    height: 78px;
    max-width: 1220px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.landing-actions {
    display: flex;
    gap: 8px
}

.hero {
    max-width: 1220px;
    margin: auto;
    min-height: calc(100vh - 78px);
    padding: 70px 24px;
    display: grid;
    grid-template-columns: 1.1fr .8fr;
    align-items: center;
    gap: 70px
}

.hero-copy h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
    margin: 12px 0 22px
}

.hero-copy h1 em {
    font-style: normal;
    color: var(--pink)
}

.hero-copy>p {
    font-size: 18px;
    line-height: 1.65;
    color: #b0b0bd;
    max-width: 660px
}

.hero-actions {
    margin: 28px 0
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px
}

.hero-stats span {
    display: flex;
    flex-direction: column
}

.hero-stats strong {
    font-family: Montserrat
}

.hero-stats small {
    color: var(--muted);
    margin-top: 5px
}

.phone-mock {
    justify-self: center;
    width: min(350px, 100%);
    padding: 10px;
    border-radius: 35px;
    background: linear-gradient(145deg, #282831, #111117);
    box-shadow: var(--shadow);
    transform: rotate(2deg)
}

.phone-screen {
    min-height: 590px;
    border-radius: 27px;
    background: #0d0d12;
    padding: 24px 18px
}

.mini-top {
    color: #aaa;
    margin: 10px 0 22px
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 15px;
    background: #17171e;
    border: 1px solid #282832;
    border-radius: 16px
}

.mini-card.accent {
    display: grid;
    background: linear-gradient(135deg, #3b1423, #231326);
    padding: 22px
}

.mini-card.accent strong {
    font: 800 21px Montserrat
}

.mini-card.accent small {
    color: var(--pink2)
}

.mini-card>span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #282832;
    display: grid;
    place-items: center
}

.mini-card>div {
    display: flex;
    flex-direction: column;
    flex: 1
}

.mini-card>div small {
    color: var(--muted);
    margin-top: 3px
}

.mini-card>b {
    color: var(--pink)
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background: radial-gradient(circle at 50% 0, rgba(255, 61, 129, .13), transparent 32%), #09090c
}

.auth-panel {
    width: min(460px, 100%)
}

.auth-panel>.brand {
    justify-content: center;
    margin-bottom: 24px
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow)
}

.auth-card h1 {
    font-size: 30px;
    margin-bottom: 7px
}

.check {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    align-items: center
}

.check input {
    width: auto !important
}

.demo-box {
    margin-top: 20px;
    padding: 12px;
    background: #0d0d12;
    border: 1px dashed #33333d;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.demo-box small {
    color: var(--muted);
    line-height: 1.55
}

.center {
    text-align: center;
    margin: 18px 0 0
}

@media(max-width:1050px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .card-grid,
    .student-days {
        grid-template-columns: repeat(2, 1fr)
    }

    .measure-grid {
        grid-template-columns: repeat(3, 1fr) !important
    }

    .add-exercise {
        grid-template-columns: 1fr 1fr 1fr
    }

    .hero {
        grid-template-columns: 1fr
    }

    .phone-mock {
        display: none
    }
}

@media(max-width:760px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .2s
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .main {
        margin-left: 0
    }

    .menu-btn {
        display: grid;
        place-items: center
    }

    .topbar {
        padding: 0 18px
    }

    .content {
        padding: 20px 15px
    }

    .welcome,
    .program-head,
    .page-actions,
    .profile-hero,
    .student-plan-hero,
    .workout-hero,
    .finish-card {
        align-items: flex-start;
        flex-direction: column
    }

    .stats-grid,
    .card-grid,
    .two-col,
    .student-days {
        grid-template-columns: 1fr
    }

    .measure-grid,
    .form-grid.two {
        grid-template-columns: 1fr !important
    }

    .span2 {
        grid-column: auto
    }

    .search {
        min-width: 0;
        width: 100%
    }

    .page-actions>.btn {
        width: 100%
    }

    .inline-form,
    .finish-form {
        flex-direction: column;
        width: 100%
    }

    .assessment {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .add-exercise {
        grid-template-columns: 1fr
    }

    .exercise-item {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .exercise-main {
        min-width: 55%
    }

    .rx {
        text-align: left
    }

    .student-plan-hero,
    .workout-hero {
        width: 100%
    }

    .metrics {
        grid-template-columns: repeat(3, 1fr)
    }

    .history-card>.metrics {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero {
        padding-top: 45px
    }

    .hero-copy h1 {
        font-size: 44px
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap
    }

    .landing-nav .ghost {
        display: none
    }
}

/* =========================
   MOBILE + PWA
   ========================= */
html, body {
    min-height: 100%;
}

body {
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

img, video, iframe {
    max-width: 100%;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(3px);
    z-index: 35;
}

.sidebar-backdrop[hidden] {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.pwa-install {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--pink), #d82d69);
    color: #fff;
    box-shadow: 0 16px 40px rgba(255, 61, 129, .28);
    font-weight: 800;
}

.pwa-install:not([hidden]) {
    display: inline-flex;
}

.pwa-install svg {
    width: 18px;
}

.pwa-offline-banner {
    position: fixed;
    left: 50%;
    top: calc(10px + env(safe-area-inset-top));
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(92vw, 560px);
    padding: 10px 14px;
    border-radius: 12px;
    background: #2a2111;
    border: 1px solid #67501f;
    color: #f3d78d;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.pwa-offline-banner[hidden] {
    display: none;
}

.pwa-offline-banner svg {
    width: 18px;
    flex: 0 0 auto;
}

.offline-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 12px;
    padding: 28px;
}

.offline-page img {
    width: min(180px, 45vw);
    margin-bottom: 12px;
}

.offline-page h1,
.offline-page p {
    margin-bottom: 0;
}

.offline-page p {
    color: var(--muted);
    max-width: 440px;
}

@media (display-mode: standalone) {
    .topbar {
        padding-top: env(safe-area-inset-top);
        height: calc(72px + env(safe-area-inset-top));
    }

    .sidebar {
        padding-top: calc(24px + env(safe-area-inset-top));
    }
}

@media(max-width:760px) {
    body.menu-open {
        overflow: hidden;
    }

    .app-shell {
        min-height: 100dvh;
    }

    .sidebar {
        width: min(86vw, 320px);
        max-width: 320px;
        padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
        box-shadow: 22px 0 60px rgba(0,0,0,.45);
        z-index: 50;
    }

    .main {
        min-height: 100dvh;
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .topbar {
        min-height: 64px;
        height: auto;
        padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
        gap: 10px;
    }

    .topbar > div {
        min-width: 0;
    }

    .topbar strong,
    .topbar .muted {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 72vw;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--panel);
        flex: 0 0 auto;
    }

    .content {
        padding: 18px 14px 24px;
    }

    .welcome,
    .program-head,
    .page-actions,
    .profile-hero,
    .student-plan-hero,
    .workout-hero,
    .finish-card {
        gap: 16px;
        margin-bottom: 20px;
    }

    .welcome h1,
    .program-head h1,
    .student-welcome h1,
    .workout-hero h1,
    .page-actions h1 {
        font-size: clamp(26px, 8vw, 34px);
        line-height: 1.05;
    }

    .welcome .btn,
    .program-head .btn,
    .page-actions .btn,
    .profile-hero .btn,
    .student-plan-hero .btn,
    .workout-hero .btn {
        width: 100%;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card strong {
        font-size: 24px;
    }

    .panel,
    .form-card,
    .day-card,
    .student-exercise,
    .finish-card,
    .history-card,
    .student-card,
    .plan-tile {
        border-radius: 15px;
    }

    .panel,
    .form-card,
    .student-exercise,
    .finish-card,
    .history-card,
    .student-card,
    .plan-tile {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .form-actions .btn {
        width: 100%;
    }

    .form-grid input,
    .form-grid textarea,
    .form-grid select,
    .inline-form select,
    .add-exercise input,
    .add-exercise select,
    .finish-form input {
        min-height: 46px;
        font-size: 16px;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 680px;
    }

    th,
    td {
        padding: 12px 13px;
    }

    .actions {
        justify-content: flex-start;
    }

    .day-head {
        flex-direction: column;
        padding: 16px;
    }

    .exercise-stack {
        padding: 0 16px;
    }

    .exercise-item {
        gap: 10px;
    }

    .exercise-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .exercise-header .rx.big {
        width: 100%;
        margin-left: 52px;
        text-align: left;
    }

    .video-frame iframe,
    .exercise-video {
        width: 100%;
        border-radius: 12px;
    }

    .metrics {
        gap: 8px;
    }

    .metrics > div {
        min-width: 0;
    }

    .metrics strong,
    .metrics b {
        font-size: clamp(18px, 5vw, 24px);
    }

    .assessment {
        font-size: 13px;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card {
        width: 100%;
        max-height: 88dvh;
        overflow: auto;
        border-radius: 20px 20px 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 7px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 18px;
        background: rgba(18,18,24,.94);
        backdrop-filter: blur(16px);
        box-shadow: 0 18px 50px rgba(0,0,0,.38);
    }

    .mobile-bottom-nav.two-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-bottom-nav a {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 7px 3px;
        border-radius: 12px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-bottom-nav a svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav a.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(255,61,129,.18), rgba(141,92,255,.13));
    }

    .pwa-install {
        right: 14px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        padding: 11px 14px;
    }

    .landing {
        min-height: 100dvh;
    }

    .landing-nav {
        padding-left: 16px;
        padding-right: 16px;
        gap: 12px;
    }

    .landing-nav .brand span:last-child {
        display: none;
    }

    .landing-actions .btn {
        padding: 10px 12px;
    }

    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 12vw, 52px);
        line-height: .98;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .auth-page {
        min-height: 100dvh;
        padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .auth-panel {
        width: 100%;
    }

    .auth-card {
        padding: 20px 16px;
    }
}

@media(max-width:390px) {
    .mobile-bottom-nav a span {
        font-size: 9px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: 1fr 1fr !important;
    }
}



/* =========================================================
   BIA BESSA PERSONAL
   LOGIN
========================================================= */

.login-page {
    min-height: 100dvh;
    width: 100%;

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

    position: relative;
    overflow: hidden;

    padding: 32px 20px;

    background:
        radial-gradient(
            circle at top,
            rgba(205, 134, 82, 0.12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #060606 0%,
            #0b0b0b 50%,
            #050505 100%
        );

    color: #ffffff;
}


/* =========================================================
   EFEITOS DE FUNDO
========================================================= */

.login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.login-glow-1 {
    width: 360px;
    height: 360px;

    top: -170px;
    right: -100px;

    background: rgba(216, 147, 96, 0.16);
}

.login-glow-2 {
    width: 300px;
    height: 300px;

    left: -140px;
    bottom: -160px;

    background: rgba(169, 100, 52, 0.12);
}


/* =========================================================
   CONTAINER
========================================================= */

.login-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 440px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.login-brand {
    display: block;

    margin-bottom: 24px;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.login-brand:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.login-logo {
    display: block;

    width: 220px;
    max-width: 75vw;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 14px 28px rgba(0, 0, 0, 0.45)
        );
}


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

.login-card {
    width: 100%;

    padding: 34px;

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(25, 25, 25, 0.96),
            rgba(13, 13, 13, 0.98)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(16px);
}


/* =========================================================
   HEADER
========================================================= */

.login-card-header {
    margin-bottom: 30px;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #dba070;
}

.login-card h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1.1;

    letter-spacing: -1px;

    color: #ffffff;
}

.login-card-header p {
    margin:
        12px
        0
        0;

    max-width: 340px;

    font-size: 14px;
    line-height: 1.6;

    color: #969696;
}


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

.login-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;

    color: #d7d7d7;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-wrapper > svg {
    position: absolute;

    left: 16px;

    width: 18px;
    height: 18px;

    color: #8f8f8f;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 54px;

    padding:
        0
        48px;

    border-radius: 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    outline: none;

    background: #101010;

    color: #ffffff;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #646464;
}

.input-wrapper input:hover {
    border-color:
        rgba(219, 160, 112, 0.28);
}

.input-wrapper input:focus {
    background: #121212;

    border-color: #c98757;

    box-shadow:
        0
        0
        0
        4px
        rgba(201, 135, 87, 0.10);
}


/* =========================================================
   MOSTRAR SENHA
========================================================= */

.toggle-password {
    position: absolute;

    right: 8px;

    width: 40px;
    height: 40px;

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

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    background: transparent;

    color: #868686;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.toggle-password:hover {
    background:
        rgba(255, 255, 255, 0.05);

    color: #dba070;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   OPÇÕES
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: -3px;
}

.login-options > a {
    font-size: 13px;
    font-weight: 600;

    color: #dba070;

    text-decoration: none;
}

.login-options > a:hover {
    text-decoration: underline;
}


/* =========================================================
   CHECKBOX
========================================================= */

.remember-check {
    display: flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;

    font-size: 13px;

    color: #a7a7a7;

    user-select: none;
}

.remember-check input {
    display: none;
}

.custom-check {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

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

    border-radius: 6px;

    background: #101010;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    transition: 0.2s ease;
}

.custom-check svg {
    width: 13px;
    height: 13px;

    stroke-width: 3;

    opacity: 0;

    color: #080808;
}

.remember-check input:checked + .custom-check {
    background:
        linear-gradient(
            135deg,
            #e7b187,
            #b96f3e
        );

    border-color: transparent;
}

.remember-check input:checked + .custom-check svg {
    opacity: 1;
}


/* =========================================================
   BOTÃO
========================================================= */

.login-button {
    width: 100%;
    height: 56px;

    margin-top: 5px;

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

    gap: 10px;

    border: 0;
    border-radius: 15px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #edba91 0%,
            #cc8958 48%,
            #aa6239 100%
        );

    color: #111111;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 12px 30px
        rgba(176, 101, 55, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.05);

    box-shadow:
        0 16px 38px
        rgba(176, 101, 55, 0.30);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    width: 18px;
    height: 18px;

    transition:
        transform 0.2s ease;
}

.login-button:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);

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

    gap: 8px;

    color: #696969;

    font-size: 11px;
}

.login-footer svg {
    width: 14px;
    height: 14px;

    color: #a46a44;
}


/* =========================================================
   MOBILE / PWA
========================================================= */

@media (max-width: 520px) {

    .login-page {
        min-height: 100dvh;

        align-items: center;

        padding:
            22px
            16px
            max(
                22px,
                env(safe-area-inset-bottom)
            );
    }

    .login-container {
        max-width: 100%;
    }

    .login-brand {
        margin-bottom: 20px;
    }

    .login-logo {
        width: 180px;
    }

    .login-card {
        padding:
            28px
            22px;

        border-radius: 22px;
    }

    .login-card h1 {
        font-size: 30px;
    }

    .login-card-header p {
        font-size: 13px;
    }

    .input-wrapper input {
        height: 52px;

        font-size: 16px;
    }

    .login-button {
        height: 54px;
    }

}


/* celulares pequenos */
@media (max-width: 360px) {

    .login-page {
        padding:
            18px
            12px;
    }

    .login-logo {
        width: 155px;
    }

    .login-card {
        padding:
            24px
            18px;
    }

    .login-card h1 {
        font-size: 27px;
    }

}
