.app-body { background: #f6f1ea; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; background: var(--plum-950); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.login-art img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(29, 10, 43, .92)); }
.login-quote { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 1; color: #fff; }
.login-quote .icon { color: var(--gold); width: 28px; height: 28px; }
.login-quote p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-style: italic; line-height: 1.3; margin: 12px 0 8px; }
.login-quote small { color: var(--gold-soft); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-panel { padding: 48px clamp(24px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; max-width: 620px; width: 100%; }
.login-logo img { height: 58px; width: auto; margin-bottom: 36px; }
.login h1 { font-size: 42px; color: var(--plum-900); margin-bottom: 8px; }
.login .muted { margin-bottom: 28px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-demo button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.login-demo button:hover { border-color: var(--plum-500); transform: translateY(-2px); box-shadow: var(--shadow); }
.login-demo button.hl { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.login-demo .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--plum-100); color: var(--plum-700); }
.login-demo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.login-demo b { display: block; color: var(--plum-900); font-size: 15px; }
.login-demo span { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; display: block; }
.login-back { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--plum-950); color: #cbb9d9; padding: 22px 16px; display: flex; flex-direction: column; }
.side-logo { display: block; padding: 6px 10px 22px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side-logo img { height: auto; width: 82%; margin: 0 auto; }
.side-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 0 12px 14px; }
.side-tag .icon { width: 16px; height: 16px; }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, rgba(194, 154, 69, .22), rgba(194, 154, 69, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side nav a.on .icon { color: var(--gold); }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.side-plan { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px; margin-bottom: 8px; }
.side-plan small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9c86ad; }
.side-plan b { color: #fff; font-family: var(--serif); font-size: 18px; }
.side-plan a { display: block; font-size: 13px; color: var(--gold-soft); margin-top: 4px; }
.side-switch, .side-out { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #cbb9d9; }
.side-switch { color: var(--gold-soft); border: 1px dashed rgba(194, 154, 69, .4); }
.side-switch:hover, .side-out:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; background: rgba(246, 241, 234, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 44px; width: min(420px, 100%); color: var(--ink-3); }
.top-search input { border: 0; outline: none; background: none; flex: 1; min-width: 0; height: 100%; }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--plum-800); }
.top-ic i { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: #e53935; border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 10px; }
.me img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.me b { display: block; font-size: 14px; line-height: 1.2; }
.me small { font-size: 12px; color: var(--ink-3); }
.me-av { width: 40px; height: 40px; border-radius: 50%; background: var(--plum-600); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 17px; flex: none; }
.me-av.lg { width: 64px; height: 64px; font-size: 26px; }

.view { padding: 32px; max-width: 1280px; }
.view.enter { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.tabbar { display: none; }

.card { background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-h h3, .row-h h3 { font-family: var(--sans); font-size: 17px; font-weight: 800; color: var(--plum-900); letter-spacing: 0; }
.row-h { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 16px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-h h1 { font-size: 40px; color: var(--plum-900); margin-bottom: 6px; }
.page-h h1 em { color: var(--gold-600); font-weight: 500; }
.bar { height: 8px; border-radius: 99px; background: var(--plum-100); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--plum-600), var(--gold)); transition: width .6s var(--ease); }
.bar.sm { height: 6px; margin: 0; width: 110px; }
.chip-live { background: #e53935; color: #fff; }
.chip-live .live-dot { background: #fff; }
.chip-glass { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip .icon { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: .2s; }
.fchip:hover { border-color: var(--plum-500); }
.fchip.on { background: var(--plum-800); color: #fff; border-color: var(--plum-800); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); }
.icon-btn:hover { background: var(--plum-50); color: var(--plum-700); }

/* ---------- Home ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.hello small { font-weight: 700; color: var(--ink-3); }
.hello h1 { font-size: clamp(32px, 4vw, 44px); color: var(--plum-900); margin-top: 6px; }
.hello h1 em { color: var(--gold-600); font-weight: 500; }
.streak { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.streak .icon { color: #e8772e; }
.streak b { font-size: 20px; color: var(--plum-900); }
.streak span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.grid-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.live-card { position: relative; overflow: hidden; background: radial-gradient(400px 260px at 100% 0%, rgba(194, 154, 69, .35), transparent 70%), linear-gradient(140deg, var(--plum-700), var(--plum-950)); color: #e6d7f0; border: 0; padding: 28px; }
.lc-top { display: flex; align-items: center; gap: 12px; }
.muted-l { font-size: 13px; color: #c6b1d6; font-weight: 600; }
.live-card h2 { color: #fff; font-size: 32px; margin: 18px 0 6px; max-width: 70%; }
.live-card p { color: #c6b1d6; }
.lc-count { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 22px; font-variant-numeric: tabular-nums; }
.lc-count b { font-family: var(--serif); font-size: 40px; color: #fff; line-height: 1; }
.lc-count span { font-size: 14px; color: var(--gold-soft); margin-right: 12px; font-weight: 700; }
.lc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lc-face { position: absolute; right: 24px; top: 24px; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(194, 154, 69, .2); }
.verse-card { background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.verse-card > span .icon { color: var(--gold); width: 28px; height: 28px; }
.verse-card small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin: 12px 0 8px; }
.verse-card p { font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--plum-900); line-height: 1.35; }
.verse-card b { margin-top: 12px; color: var(--plum-600); font-size: 14px; }
.plan-flex { display: flex; gap: 24px; align-items: center; }
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--plum-100); }
.ring-fg { stroke: var(--leaf); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: var(--plum-900); }
.tasks { display: grid; gap: 8px; flex: 1; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; transition: background .2s; }
.task:hover { background: var(--plum-50); }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--plum-200); display: grid; place-items: center; color: transparent; transition: .2s var(--ease); flex: none; }
.tick .icon { width: 16px; height: 16px; stroke-width: 3; }
.task.on .tick { background: var(--leaf); border-color: var(--leaf); color: #fff; transform: scale(1.08); }
.task.on { color: var(--ink-3); text-decoration: line-through; }
.task input:focus-visible + .tick { outline: 2px solid var(--gold); outline-offset: 2px; }
.cont { display: flex; gap: 18px; align-items: center; }
.cont-art { position: relative; width: 150px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; }
.cont-art .big-icon { position: absolute; width: 110px; height: 110px; right: -16px; bottom: -16px; opacity: .25; color: #fff; }
.cont-art button { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--plum-800); display: grid; place-items: center; position: relative; transition: transform .2s var(--ease); }
.cont-art button:hover { transform: scale(1.1); }
.cont b { font-size: 17px; color: var(--plum-900); }

/* Workout cards */
.w-row, .w-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.w-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.w-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; display: block; width: 100%; }
.w-card:not(.static):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.w-art { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.w-art .big-icon { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; color: #fff; opacity: .22; stroke-width: 1.3; }
.w-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--plum-800); display: grid; place-items: center; transition: transform .3s var(--ease); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.w-card:hover .w-play { transform: translate(-50%, -50%) scale(1.05); }
.w-dur { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .3); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.w-done { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; color: #fff; background: var(--leaf); padding: 3px 9px 3px 6px; border-radius: 999px; }
.w-done .icon { width: 14px; height: 14px; stroke-width: 3; }
.w-proc { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 800; background: var(--gold); color: var(--plum-950); padding: 3px 9px; border-radius: 999px; }
.w-body { padding: 14px 16px 16px; }
.w-body b { display: block; color: var(--plum-900); font-size: 15px; line-height: 1.3; }
.w-body small { color: var(--ink-3); font-size: 12.5px; }

/* Player */
.modal-wide:has(.pl) { width: min(980px, 100%); }
.pl { display: grid; grid-template-columns: 1fr 260px; min-height: 560px; }
.pl-stage { position: relative; color: #fff; padding: 24px; display: flex; flex-direction: column; overflow: hidden; }
.pl-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 320px at 50% 45%, rgba(255, 255, 255, .16), transparent 70%); }
.pl-top { position: relative; display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.pl-title { font-weight: 700; font-size: 14px; opacity: .9; }
.pl-center { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.pl-center h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.pl-center p { opacity: .85; font-weight: 600; }
.pl-ring { position: relative; width: 210px; height: 210px; margin-bottom: 10px; }
.pl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-width: 10; }
.pr-bg { stroke: rgba(255, 255, 255, .2); }
.pr-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.pl-ring > div { position: absolute; inset: 0; display: grid; place-content: center; }
.pl-ring b { font-family: var(--serif); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-ring small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: 6px; }
.running .pl-ring { animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03); } }
.pl-controls { position: relative; display: flex; justify-content: center; align-items: center; gap: 22px; margin: 14px 0 18px; }
.pl-controls button:not(.btn) { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: transform .2s var(--ease), background .2s; }
.pl-controls button:not(.btn):hover { background: rgba(255, 255, 255, .28); }
.pl-controls button:active { transform: scale(.92); }
.pl-controls .pl-main { width: 76px; height: 76px; background: #fff !important; color: var(--plum-800) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.pl-main .icon { width: 30px; height: 30px; }
.flip { transform: scaleX(-1); }
.pl-total { position: relative; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pl-total i { display: block; height: 100%; width: 0; background: #fff; transition: width 1s linear; }
.pl-coach { position: absolute; right: 20px; bottom: 34px; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .8); }
.pl-center .success-mark circle { fill: rgba(255, 255, 255, .15); stroke: #fff; }
.pl-center .success-mark path { stroke: #fff; }
.pl-list { list-style: none; margin: 0; padding: 60px 14px 14px; background: var(--cream); overflow: auto; max-height: 620px; counter-reset: mv; }
.pl-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: background .2s; }
.pl-list li:hover { background: #fff; }
.pl-list li small { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-list li.on { background: var(--plum-800); color: #fff; }
.pl-list li.on small { color: var(--gold-soft); }
.pl-list li.done { color: var(--ink-3); text-decoration: line-through; }

/* Live room */
.modal-room { width: min(1100px, 100%) !important; background: var(--plum-950) !important; }
.modal-room .modal-close { background: rgba(255, 255, 255, .12); color: #fff; }
.room { display: grid; grid-template-columns: 1fr 320px; height: min(640px, calc(100vh - 32px)); }
.room-stage { position: relative; background: #0f0518; overflow: hidden; }
.room-stage img, .room-stage video { width: 100%; height: 100%; object-fit: cover; }
.room-stage video { transform: scaleX(-1); }
.kb { animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.08) translate(-1.5%, 1%); } }
.room-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 25%, transparent 60%, rgba(0, 0, 0, .6)); pointer-events: none; }
.room-top { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 2; font-variant-numeric: tabular-nums; }
.room-caption { position: absolute; left: 20px; bottom: 84px; z-index: 2; color: #fff; }
.room-caption small { display: block; font-size: 12px; font-weight: 700; color: var(--gold-soft); letter-spacing: .08em; text-transform: uppercase; }
.room-caption b { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.room-ctrl { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 12px; z-index: 2; }
.rc { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); transition: transform .2s var(--ease), background .2s; }
.rc:hover { background: rgba(255, 255, 255, .28); }
.rc:active { transform: scale(.9); }
#send-heart { background: #e53935; }
.rc-end { background: #e53935 !important; color: #fff; height: 48px; }
.hearts { position: absolute; right: 30px; bottom: 80px; width: 90px; height: 60%; pointer-events: none; z-index: 2; }
.hearts span { position: absolute; bottom: 0; animation: heartUp 2.6s ease-out forwards; }
.hearts .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
@keyframes heartUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1); } 100% { transform: translateY(-340px) translateX(-20px) scale(.9); opacity: 0; } }
.room-chat { display: flex; flex-direction: column; background: #fff; min-height: 0; }
.rc-h { padding: 20px 56px 14px 18px; border-bottom: 1px solid var(--line); }
.rc-h b { display: block; color: var(--plum-900); }
.rc-h small { color: var(--ink-3); font-size: 12.5px; }
.rc-list { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.msg { display: flex; gap: 10px; font-size: 13.5px; animation: slideIn .3s var(--ease); }
.msg-av { width: 30px; height: 30px; border-radius: 50%; background: var(--plum-100); color: var(--plum-700); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; overflow: hidden; }
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg b { display: block; font-size: 12px; color: var(--ink-3); }
.msg.coach b { color: var(--gold-600); }
.msg.coach p { background: var(--gold-soft); padding: 6px 10px; border-radius: 10px; }
.msg.me b { color: var(--plum-600); }
.rc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.rc-form .input { height: 44px; }
.rc-form .btn { height: 44px; width: 48px; padding: 0; }

/* Live page */
.live-hero { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; }
.lh-media { position: relative; min-height: 300px; background: #b9c3cf; }
.lh-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-media .chip { position: absolute; top: 16px; left: 16px; }
.lh-copy { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.lh-copy small { font-weight: 800; color: var(--gold-600); letter-spacing: .06em; }
.lh-copy h2 { font-size: 34px; color: var(--plum-900); margin: 10px 0; }
.lh-copy p { color: var(--ink-2); margin-bottom: 22px; }
.lh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lh-actions .btn-light { border: 1px solid var(--line); }
.sched { display: grid; gap: 10px; }
.sch { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.sch.next { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.sch > div:nth-child(2) { flex: 1; }
.sch b { display: block; color: var(--plum-900); }
.sch small { color: var(--ink-3); font-size: 13px; }
.sch-d { text-align: center; width: 64px; border-right: 1px solid var(--line); padding-right: 14px; flex: none; }
.sch-d small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.sch-d b { font-family: var(--serif); font-size: 20px; }

/* Courses */
.c-list { display: grid; gap: 16px; }
.c-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 16px; }
.c-art { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.c-art .big-icon { position: absolute; right: -14px; top: -14px; width: 120px; height: 120px; color: #fff; opacity: .22; }
.c-art b { position: relative; color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.c-info small { font-weight: 700; color: var(--gold-600); font-size: 12.5px; }
.c-info h3 { font-size: 22px; color: var(--plum-900); margin: 4px 0 4px; text-transform: capitalize; }
.c-info .bar { max-width: 360px; }
.c-act s { opacity: .6; font-weight: 600; }
.modal-course { width: min(1100px, 100%) !important; }
.cp { display: grid; grid-template-columns: 1fr 320px; max-height: calc(100vh - 32px); }
.cp-main { padding: 20px; overflow: auto; }
.cp-video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.cp-video .big-icon { position: absolute; width: 260px; height: 260px; right: -30px; bottom: -40px; color: #fff; opacity: .18; }
.cp-coach { position: absolute; left: 20px; top: 20px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .8); }
.cp-play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--plum-800); display: grid; place-items: center; box-shadow: 0 12px 36px rgba(0, 0, 0, .3); transition: transform .25s var(--ease), opacity .3s; }
.cp-play .icon { width: 32px; height: 32px; }
.cp-play:hover { transform: scale(1.08); }
.playing .cp-play { opacity: 0; pointer-events: none; }
.cp-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 5px; background: rgba(255, 255, 255, .25); border-radius: 99px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; width: 0; background: #fff; }
.cp-t { position: absolute; right: 16px; bottom: 28px; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0 14px; }
.cp-meta small { color: var(--gold-600); font-weight: 700; }
.cp-meta h3 { font-size: 26px; color: var(--plum-900); }
.cp-notes { background: var(--cream); border-radius: 14px; padding: 16px; font-size: 14px; color: var(--ink-2); }
.cp-notes b { color: var(--plum-900); }
.cp-side { background: var(--cream); border-left: 1px solid var(--line); overflow: auto; padding: 60px 14px 14px; }
.cp-side-h { padding: 0 6px 12px; }
.cp-side-h b { font-family: var(--serif); font-size: 20px; color: var(--plum-900); }
.cp-mod small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); padding: 14px 8px 6px; }
.cp-l { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cp-l:hover { background: #fff; }
.cp-l > span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--plum-200); display: grid; place-items: center; font-size: 11px; flex: none; }
.cp-l > span .icon { width: 14px; height: 14px; stroke-width: 3; }
.cp-l.done > span { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.cp-l.on { background: var(--plum-800); color: #fff; }
.cp-l.on > span { border-color: rgba(255, 255, 255, .5); }

/* Library */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.lib-item { display: flex; flex-direction: column; gap: 10px; }
.lib-item img { width: 100%; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: 0 12px 28px rgba(42, 15, 61, .18); transition: transform .3s var(--ease); }
.lib-item > button:hover img { transform: translateY(-4px); }
.lib-item b { color: var(--plum-900); font-size: 14.5px; line-height: 1.3; }
.lib-act { display: flex; gap: 8px; margin-top: auto; }
.lib-act .btn-ghost { width: 40px; padding: 0; }
.lib-item.locked img { filter: saturate(.6); opacity: .85; }
.empty { text-align: center; padding: 48px 24px; display: grid; justify-items: center; gap: 10px; }
.empty > .icon { width: 44px; height: 44px; color: var(--plum-200); }
.empty h3 { font-size: 24px; color: var(--plum-900); }
.rd { padding: 28px; }
.rd-page { min-height: 440px; background: var(--cream); border-radius: 12px; padding: 32px; font-family: var(--serif); color: var(--ink); line-height: 1.7; animation: fadeDown .3s var(--ease); }
.rd-page h4 { font-size: 26px; color: var(--plum-900); margin: 6px 0 14px; }
.rd-page small { font-family: var(--sans); font-weight: 800; color: var(--gold-600); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.rd-page p + p { margin-top: 12px; }
.rd-page ol { padding-left: 20px; display: grid; gap: 8px; }
.rd-cover { max-height: 380px; width: auto; margin: 0 auto; border-radius: 6px; box-shadow: var(--shadow); }
.rd-fade { color: var(--ink-3); font-style: italic; }
.rd-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--ink-3); font-weight: 600; }

/* Community */
.comm { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.composer { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 16px; }
.composer .comp-row { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed { display: grid; gap: 14px; }
.post-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-h img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.post-h b { display: block; font-size: 15px; }
.post-h small { color: var(--ink-3); font-size: 12.5px; }
.post > p { font-size: 15px; color: var(--ink); }
.post.coach { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fff); }
.post.prayer { border-left: 4px solid var(--plum-500); }
.post-f { display: flex; gap: 8px; margin-top: 14px; }
.post-f button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--plum-50); transition: .2s; }
.post-f button .icon { width: 16px; height: 16px; }
.post-f .pray.on { background: var(--plum-700); color: #fff; }
.post-f .pray.on .icon { fill: currentColor; }
.comm-side h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; color: var(--plum-900); margin-bottom: 6px; }
.lead { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lead .me-av { width: 32px; height: 32px; font-size: 14px; }
.lead b { flex: 1; font-size: 14px; }
.lead small { color: var(--ink-3); }

/* Stats + charts */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { position: relative; padding: 20px; }
.stat > .icon { color: var(--plum-500); margin-bottom: 10px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--plum-900); line-height: 1.1; }
.stat small { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.stat.warn b { color: #c25a1a; }
.delta { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.delta.up { background: var(--leaf-soft); color: #2f6310; }
.stats-sm .stat b { font-size: 26px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.two-a { grid-template-columns: 1.5fr 1fr; }
.two-b { grid-template-columns: 1.2fr 1fr; align-items: start; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-size: 11px; font-weight: 700; fill: var(--ink-3); font-family: var(--sans); }
.chart .lbl { font-size: 10.5px; }
.bar-old { fill: var(--plum-200); }
.bar-now { fill: var(--plum-600); }
.chart rect { transition: opacity .2s; }
.chart rect:hover { opacity: .8; }
.axis { stroke: var(--line); stroke-width: 1.5; }
.line { fill: none; stroke: var(--plum-600); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.dot { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.wform { display: flex; gap: 8px; }
.wform .input { width: 90px; height: 40px; }
.nl { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.nl b { display: block; color: var(--plum-900); }
.nl small { color: var(--ink-3); font-size: 13px; }
.nl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.nl-stats div { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.nl-stats b { font-family: var(--serif); font-size: 26px; color: var(--plum-900); display: block; }
.nl-stats small { color: var(--ink-3); font-size: 12.5px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr { transition: background .15s; }
.table tbody tr[data-m] { cursor: pointer; }
.table tbody tr:hover { background: var(--plum-50); }
.table tr.fresh { background: #f3f9ee; animation: fresh 2s ease; }
@keyframes fresh { from { background: var(--gold-soft); } }
.who { display: flex; align-items: center; gap: 12px; }
.who .me-av { width: 36px; height: 36px; font-size: 15px; }
.who b { display: block; }
.who small { color: var(--ink-3); font-size: 12px; }
.tb-cover { width: 34px; height: 46px; border-radius: 4px; object-fit: cover; display: grid; place-items: center; color: #fff; flex: none; }
.tb-cover .icon { width: 16px; height: 16px; }
.status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.s-active { background: var(--leaf-soft); color: #2f6310; }
.s-new { background: var(--gold-soft); color: #6d5118; }
.s-at-risk { background: #fde8dc; color: #a2461a; }
.s-paused { background: #eceaf0; color: var(--ink-3); }
.tbl-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tbl-tools .top-search { width: min(300px, 100%); }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #d9d2de; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--leaf); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Member panel, upload, notifications */
.mp-h { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 40px; }
.mp-h .co-title { margin: 0; }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mp-stats div { background: var(--cream); border-radius: 12px; padding: 12px; }
.mp-stats b { display: block; font-size: 17px; color: var(--plum-900); }
.mp-stats small { color: var(--ink-3); font-size: 12px; }
.mp-actions { display: grid; gap: 8px; margin-bottom: 18px; }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 20px; border: 2px dashed var(--plum-200); border-radius: 16px; cursor: pointer; background: var(--plum-50); transition: .2s; }
.drop:hover, .drop.over { border-color: var(--plum-500); background: var(--plum-100); }
.drop > .icon { width: 36px; height: 36px; color: var(--plum-600); }
.drop b { color: var(--plum-900); word-break: break-all; }
.drop small { color: var(--ink-3); }
.up-bar { width: 100%; height: 8px; border-radius: 99px; background: #fff; overflow: hidden; margin-top: 8px; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--plum-600), var(--gold)); transition: width .12s linear; }
.notif { display: grid; gap: 6px; margin-top: 12px; }
.notif div { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; }
.notif div:hover { background: var(--plum-50); }
.notif .icon { color: var(--plum-600); margin-top: 2px; }
.notif small { display: block; color: var(--ink-3); font-size: 12px; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b7282' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .w-row { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { height: 300px; }
  .login-art img { object-position: center 30%; }
  .login-quote { left: 24px; right: 24px; bottom: 20px; }
  .login-panel { padding: 32px 16px 40px; margin: 0 auto; }
  .login-logo img { height: 46px; margin-bottom: 20px; }
  .login h1 { font-size: 32px; }
  .login-demo { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; padding-bottom: 76px; }
  .side { display: none; }
  .top { padding: 10px 16px; }
  .top-search { display: none; }
  .top::before { content: ""; width: 120px; height: 40px; background: url(../img/brand/betina-logo.svg) no-repeat left center / contain; }
  .me div { display: none; }
  .view { padding: 20px 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--plum-950); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #a995b8; padding: 6px 0; border-radius: 10px; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on .icon { color: var(--gold); }
  .grid-home, .two, .two-a, .two-b, .comm, .live-hero { grid-template-columns: 1fr; }
  .page-h h1 { font-size: 32px; }
  .hello { flex-direction: column; align-items: flex-start; }
  .live-card h2 { font-size: 26px; max-width: 100%; padding-right: 80px; }
  .lc-face { width: 64px; height: 64px; }
  .lc-count b { font-size: 30px; }
  .plan-flex { flex-direction: column; align-items: stretch; }
  .ring { margin: 0 auto; }
  .c-row { grid-template-columns: 1fr; }
  .pl { grid-template-columns: 1fr; }
  .pl-list { display: none; }
  .pl-stage { min-height: min(620px, calc(100vh - 40px)); }
  .room { grid-template-columns: 1fr; grid-template-rows: 55% 45%; height: calc(100vh - 32px); }
  .cp { grid-template-columns: 1fr; overflow: auto; }
  .cp-side { padding-top: 14px; border-left: 0; }
  .cp-main { padding-top: 60px; }
  .lib { grid-template-columns: repeat(2, 1fr); }
  .rd { padding: 18px; }
  .rd-page { padding: 20px; min-height: 360px; }
  .cont { flex-direction: column; align-items: stretch; }
  .cont-art { width: 100%; }
}
@media (max-width: 520px) {
  .w-row, .w-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .w-body { padding: 10px 12px 12px; }
  .w-body b { font-size: 13.5px; }
  .w-play { width: 40px; height: 40px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 22px; }
  .delta { position: static; display: inline-block; margin-top: 6px; }
  .mp-stats { grid-template-columns: 1fr 1fr; }
}
