﻿:root {
    --bg: #0B0B0F;
    --panel: #16161D;
    --panel-soft: rgba(255, 255, 255, 0.055);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --yellow: #FFD21E;
    --danger: #f87171;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 210, 30, 0.12), transparent 28%),
        radial-gradient(circle at 78% 0%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, #0B0B0F 0%, #16161D 52%, #07070A 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
    background: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo,
.app-sidebar-logo,
.admin-brand-logo,
.footer-logo,
.site-footer-logo {
    display: block;
    object-fit: contain;
}

.brand-logo-symbol {
    width: 46px;
    height: 46px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 34px rgba(255, 210, 30, 0.18);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--yellow);
    color: #0B0B0F;
    font-weight: 950;
    box-shadow: 0 0 34px rgba(255, 210, 30, 0.32);
}
.brand strong { display: block; font-size: 20px; }
.brand small { display: block; color: var(--yellow); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.nav-links, .nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links a {
    padding: 11px 13px;
    border-radius: 10px;
    color: #d4d4d8;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-links a.active { background: var(--yellow); color: #0B0B0F; box-shadow: 0 12px 28px rgba(255, 210, 30, 0.18); }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 34px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.site-footer > span:first-child {
    color: var(--yellow);
    font-weight: 950;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #0B0B0F; box-shadow: none; }
.btn-secondary { border: 1px solid var(--border); background: rgba(255,255,255,0.055); color: #fff; }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.32); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn.compact { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.logout-link { white-space: nowrap; }
.logout-form { margin: 0; }
.logout-form .btn { width: 100%; }
.btn.full { width: 100%; }
.btn.large { min-height: 56px; font-size: 17px; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero-section {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 36px;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding: 52px 0;
}
.hero-content h1, .page-heading h1, .auth-card h1, .dashboard-hero h1 {
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: 0;
}
.hero-content p, .page-heading p, .auth-card p, .dashboard-hero p { color: var(--muted); line-height: 1.75; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-panel {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        linear-gradient(160deg, rgba(255, 210, 30, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)),
        var(--panel);
    box-shadow: 0 28px 90px rgba(0,0,0,0.35);
}
.session-card, .hero-stats, .card, .metric-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        var(--panel);
    box-shadow: 0 28px 90px rgba(0,0,0,0.22);
}
.session-card { padding: 22px; }
.session-card span, .metric-card span { color: var(--yellow); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.session-card strong { display: block; margin-top: 8px; font-size: 28px; }
.session-card p { color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.hero-stats div { padding: 16px; border-radius: 10px; background: rgba(255,255,255,0.07); text-align: center; }
.hero-stats strong { display: block; font-size: 26px; }
.hero-stats span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 52px; }
.card { padding: 24px; }
.card h2 { margin: 0 0 10px; font-size: 24px; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; }

.auth-page { display: grid; place-items: center; min-height: calc(100vh - 90px); padding: 48px 0; }
.auth-card { width: min(820px, 100%); }
.auth-card.compact { width: min(520px, 100%); }
.alert { margin: 18px 0; padding: 14px 16px; border-radius: 10px; font-weight: 800; }
.alert.error { border: 1px solid rgba(248, 113, 113, 0.32); background: rgba(248, 113, 113, 0.1); color: #fecaca; }
.alert.success { border: 1px solid rgba(255, 210, 30, 0.32); background: rgba(255, 210, 30, 0.1); color: var(--yellow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.stack-form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 8px; color: #d4d4d8; font-weight: 800; }
input, select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    padding: 0 14px;
    outline: none;
}
select option { background: var(--panel); color: #fff; }
input:focus, select:focus { border-color: rgba(255, 210, 30, 0.65); box-shadow: 0 0 0 4px rgba(255, 210, 30, 0.09); }
.auth-link { margin-top: 18px; color: var(--muted); text-align: center; }
.auth-link a { color: var(--yellow); font-weight: 900; }

.page-section { padding: 44px 0 60px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { font-size: clamp(38px, 5vw, 58px); }
.onboarding-form { display: grid; gap: 18px; }
.option-section h2 { margin-bottom: 18px; }
.option-grid { display: grid; gap: 12px; }
.option-grid.two { grid-template-columns: repeat(2, 1fr); }
.option-grid.three { grid-template-columns: repeat(3, 1fr); }
.option-grid.four { grid-template-columns: repeat(4, 1fr); }
.split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.select-card { display: block; }
.select-card input { position: absolute; opacity: 0; pointer-events: none; }
.select-card span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.select-card span::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); }
.select-card input:checked + span { border-color: var(--yellow); background: var(--yellow); color: #0B0B0F; box-shadow: 0 0 30px rgba(255, 210, 30, 0.22); }
.select-card input:checked + span::after { border-color: #0B0B0F; background: #0B0B0F; box-shadow: inset 0 0 0 4px var(--yellow); }

.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dashboard-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.metric-card { padding: 20px; }
.metric-card strong { display: block; margin-top: 8px; font-size: clamp(20px, 2vw, 28px); }
.dashboard-modules { padding-top: 12px; }
.module-card:hover { border-color: rgba(255, 210, 30, 0.42); }
.chat-preview { display: grid; gap: 14px; }
.chat-shell {
    display: grid;
    gap: 18px;
    min-height: 640px;
}

.chat-history {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 420px;
    max-height: 58vh;
    overflow-y: auto;
    padding: 4px 4px 10px;
}

.message {
    display: grid;
    gap: 8px;
    width: fit-content;
    max-width: min(720px, 82%);
    padding: 16px;
    border-radius: 10px;
    line-height: 1.6;
}

.message p {
    margin: 0;
    white-space: pre-line;
}

.message-author {
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.message time {
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    opacity: 0.68;
}

.message.bot {
    justify-self: start;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.message.bot .message-author {
    color: var(--yellow);
}

.message.is-revealing p::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(255, 210, 30, 0.75);
    vertical-align: -2px;
    animation: typingCursor 0.8s ease-in-out infinite;
}

.message.is-typing p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.typing-dots {
    display: inline-flex;
    gap: 5px;
}

.typing-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.35;
    animation: typingDot 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
    animation-delay: 0.14s;
}

.typing-dots i:nth-child(3) {
    animation-delay: 0.28s;
}

.message.user {
    justify-self: end;
    background: var(--yellow);
    color: #0B0B0F;
    font-weight: 900;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.chat-form textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    padding: 14px;
    outline: none;
    line-height: 1.55;
}

.chat-form textarea:focus {
    border-color: rgba(255, 210, 30, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 210, 30, 0.09);
}

@keyframes typingDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes typingCursor {
    0%, 100% {
        opacity: 0.25;
    }

    50% {
        opacity: 1;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .site-header { align-items: stretch; flex-direction: column; }
    .brand { width: fit-content; }
    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .nav-links a { text-align: center; }
    .nav-actions { justify-content: flex-end; flex-wrap: wrap; }
    .hero-section, .split-grid { grid-template-columns: 1fr; }
    .feature-grid, .metric-grid, .option-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    main { width: min(100% - 28px, 1180px); }
    .form-grid, .feature-grid, .metric-grid, .option-grid.two, .option-grid.three, .option-grid.four { grid-template-columns: 1fr; }
    .hero-panel { min-height: 360px; }
    .hero-stats { grid-template-columns: 1fr; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .site-header { gap: 14px; padding: 14px; }
    .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-links a { padding: 10px 8px; font-size: 14px; }
    .nav-actions .btn { width: 100%; }
    .chat-shell { min-height: auto; }
    .chat-history { max-height: 62vh; }
    .message { max-width: 94%; }
    .chat-form { grid-template-columns: 1fr; }
    .chat-form .btn { width: 100%; }
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.workout-hero form {
    flex-shrink: 0;
}

.empty-state {
    display: grid;
    gap: 16px;
    place-items: start;
    margin-top: 18px;
}

.workout-summary {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: end;
    margin: 18px 0;
}

.workout-summary h2 {
    margin-top: 14px;
    font-size: clamp(28px, 4vw, 44px);
}

.workout-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.workout-meta div {
    min-height: 92px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.workout-meta span,
.exercise-metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.workout-meta strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}

.workout-meta-focus strong {
    font-size: 16px;
    line-height: 1.35;
    text-transform: none;
}

.exercise-list {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.exercise-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: center;
}

.exercise-index {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--yellow);
    color: #0B0B0F;
    font-weight: 950;
}

.exercise-main h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.exercise-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
}

.exercise-metrics span {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.exercise-metrics strong {
    display: block;
    color: #fff;
    font-size: 18px;
    text-transform: none;
}

.exercise-guidance {
    margin-top: 12px;
}

.exercise-guidance summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: transparent;
    color: #e5e5ea;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.exercise-guidance summary::-webkit-details-marker {
    display: none;
}

.exercise-guidance summary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.guidance-arrow {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 210, 30, 0.38);
    color: var(--yellow);
    line-height: 1;
    transition: transform 160ms ease;
}

.exercise-guidance[open] .guidance-arrow {
    transform: rotate(90deg);
}

.guidance-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.guidance-panel div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.guidance-panel strong {
    display: block;
    margin-bottom: 6px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
}

.guidance-panel p {
    margin: 0;
    color: #c9c9d3;
    line-height: 1.55;
}

.training-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.training-actions h2 {
    margin: 0 0 8px;
}

.training-actions p {
    max-width: 680px;
}

@media (max-width: 820px) {
    .workout-summary,
    .workout-meta,
    .exercise-metrics,
    .guidance-panel {
        grid-template-columns: 1fr;
    }

    .training-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.nutrition-hero form {
    flex-shrink: 0;
}

.nutrition-summary {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: end;
    margin: 18px 0;
}

.nutrition-summary h2 {
    margin: 14px 0 8px;
    font-size: clamp(36px, 6vw, 64px);
    color: var(--yellow);
}

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

.macro-grid div {
    min-height: 104px;
    padding: 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.macro-grid span,
.meal-macros span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.macro-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 26px;
}

.meal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.meal-card {
    display: grid;
    gap: 16px;
}

.meal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.meal-time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.meal-header h3 {
    margin: 12px 0 0;
    font-size: 24px;
}

.meal-header > strong {
    color: var(--yellow);
    font-size: 22px;
    white-space: nowrap;
}

.meal-macros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.meal-macros span {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.meal-macros strong {
    display: block;
    color: #fff;
    font-size: 18px;
    text-transform: none;
}

@media (max-width: 820px) {
    .nutrition-summary,
    .macro-grid,
    .meal-list,
    .meal-macros {
        grid-template-columns: 1fr;
    }

    .meal-header {
        flex-direction: column;
    }
}

.progress-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 18px;
    align-items: start;
    margin: 18px 0;
}

.progress-form-card,
.progress-recent-card {
    display: grid;
    gap: 16px;
}

.progress-form-card h2,
.progress-recent-card h2,
.workout-history h2 {
    margin: 0;
    font-size: 28px;
}

.progress-snapshot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.progress-snapshot div {
    min-height: 104px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.progress-snapshot span,
.progress-row span,
.history-item span,
.section-title > strong {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.progress-snapshot strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.35;
}

.progress-timeline,
.history-list {
    display: grid;
    gap: 12px;
}

.progress-row,
.history-item {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.progress-row strong,
.history-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.progress-row-metrics,
.history-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.progress-row-metrics span,
.history-meta span {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    text-transform: none;
}

.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title > strong {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--yellow);
    color: #0B0B0F;
    white-space: nowrap;
}

.empty-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .progress-layout,
    .progress-snapshot,
    .progress-row,
    .history-item,
    .progress-row-metrics,
    .history-meta {
        grid-template-columns: 1fr;
    }
}

.landing-page {
    width: min(1220px, calc(100% - 40px));
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    min-height: min(760px, calc(100vh - 40px));
    padding: clamp(52px, 8vw, 96px) 0 64px;
}

.landing-hero-content {
    animation: fadeUp 620ms ease both;
}

.landing-hero h1 {
    max-width: 840px;
    margin: 18px 0;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: 0;
}

.landing-hero p {
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

.landing-hero-visual {
    animation: floatPanel 5.5s ease-in-out infinite;
}

.mock-window,
.app-mockup {
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
        var(--panel);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.mock-window {
    min-height: 430px;
    padding: 22px;
}

.mock-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.mock-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
}

.mock-topbar span:first-child {
    background: var(--yellow);
}

.mock-hero-line,
.mock-progress-line {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.mock-hero-line {
    width: 72%;
    height: 34px;
    margin-bottom: 22px;
    background: rgba(255, 210, 30, 0.92);
}

.mock-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.mock-stat-grid div {
    min-height: 92px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.mock-stat-grid strong,
.mock-stat-grid span {
    display: block;
}

.mock-stat-grid strong {
    font-size: 22px;
}

.mock-stat-grid span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.mock-progress-line {
    width: 54%;
    margin-top: 14px;
}

.mock-progress-line.wide {
    width: 92%;
}

.landing-section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section-heading {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading.compact {
    max-width: 680px;
}

.section-heading h2,
.landing-cta h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p,
.landing-cta p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.landing-card-grid {
    display: grid;
    gap: 16px;
}

.landing-card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.landing-card-grid.five {
    grid-template-columns: repeat(5, 1fr);
}

.landing-feature-card,
.landing-mini-card,
.app-mockup {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.landing-feature-card:hover,
.landing-mini-card:hover,
.app-mockup:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 210, 30, 0.42);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.landing-feature-card span {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 950;
}

.landing-feature-card h3 {
    margin: 14px 0 10px;
    font-size: 24px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.app-mockup {
    min-height: 300px;
    padding: 22px;
}

.dashboard-mockup {
    min-height: 350px;
}

.mockup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.mockup-header span {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.mockup-header strong {
    font-size: 22px;
}

.macro-preview {
    display: grid;
    gap: 14px;
}

.macro-preview span {
    position: relative;
    display: block;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.macro-preview span::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--value);
    border-radius: inherit;
    background: var(--yellow);
}

.meal-preview,
.workout-preview-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.meal-preview span,
.workout-preview-list span {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-weight: 850;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sports-grid span {
    display: grid;
    place-items: center;
    min-height: 72px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    font-weight: 950;
}

.landing-mini-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--yellow);
    font-size: 18px;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 42px 0 72px;
}

.landing-cta > div:first-child {
    max-width: 720px;
}

.landing-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 90px;
    height: auto;
}

.site-footer-logo {
    width: 28px;
    height: 28px;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #d4d4d8;
    font-weight: 900;
}

.footer-socials a:hover {
    color: var(--yellow);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPanel {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1020px) {
    .landing-hero,
    .mockup-grid,
    .landing-card-grid.three,
    .landing-card-grid.five {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
    }

    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-cta,
    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .landing-page {
        width: min(100% - 28px, 1220px);
    }

    .landing-hero {
        padding-top: 42px;
    }

    .mock-window {
        min-height: 320px;
        padding: 16px;
    }

    .mock-stat-grid,
    .sports-grid {
        grid-template-columns: 1fr;
    }

    .landing-cta .hero-actions,
    .landing-hero .hero-actions {
        width: 100%;
    }

    .landing-cta .btn,
    .landing-hero .btn {
        width: 100%;
    }
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.admin-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    align-content: start;
    gap: 22px;
    min-height: calc(100vh - 48px);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02)),
        var(--panel);
    box-shadow: 0 28px 90px rgba(0,0,0,0.22);
}

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

.admin-brand-logo {
    width: 44px;
    height: 44px;
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand small {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-nav,
.admin-sidebar-actions {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #d4d4d8;
    font-weight: 900;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: translateX(2px);
}

.admin-nav a.active {
    background: var(--yellow);
    color: #0B0B0F;
}

.admin-content {
    min-width: 0;
}

.admin-page-heading {
    margin-bottom: 22px;
}

.admin-page-heading h1 {
    margin: 16px 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
}

.admin-page-heading p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-panel {
    margin-top: 18px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    color: #fff;
    line-height: 1.45;
}

.admin-table td > span,
.admin-table td strong + span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.inline-form {
    margin: 0;
}

.admin-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-bars {
    display: grid;
    gap: 14px;
}

.admin-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) 40px;
    gap: 12px;
    align-items: center;
}

.admin-bar-row span {
    color: #fff;
    font-weight: 850;
}

.admin-bar-row div {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.admin-bar-row i {
    display: block;
    height: 100%;
    min-width: 8px;
    border-radius: inherit;
    background: var(--yellow);
}

.admin-bar-row strong {
    color: var(--yellow);
    text-align: right;
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 1380px);
        padding-top: 18px;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sidebar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-nav,
    .admin-sidebar-actions,
    .admin-bar-row {
        grid-template-columns: 1fr;
    }

    .admin-sidebar .btn {
        width: 100%;
    }
}

/* GoalFit modern app refresh */
html {
    scroll-behavior: smooth;
}

.goalfit-body {
    background:
        radial-gradient(circle at 18% -10%, rgba(255, 210, 30, 0.14), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.08), transparent 28%),
        #0B0B0F;
}

.public-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(1220px, calc(100% - 40px));
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(11, 11, 15, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #d4d4d8;
    font-weight: 850;
}

.public-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.is-landing .landing-page {
    padding-top: 88px;
}

.goalfit-body:not(.is-authenticated):not(.is-landing) .auth-page {
    padding-top: 124px;
}

.is-authenticated:not(.is-admin) .app-shell {
    min-height: 100vh;
    padding-left: 292px;
}

.is-authenticated:not(.is-admin) main {
    width: min(1180px, calc(100% - 48px));
    padding-top: 28px;
}

.app-sidebar {
    position: fixed;
    inset: 18px auto 18px 18px;
    z-index: 35;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 252px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
        rgba(22, 22, 29, 0.92);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px);
}

.app-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.app-sidebar-logo {
    width: min(124px, 100%);
    height: auto;
}

.app-sidebar-brand strong,
.app-sidebar-brand small {
    display: block;
}

.app-sidebar-brand small {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.app-sidebar-nav {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px 0;
}

.app-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px;
    border-radius: 10px;
    color: #d4d4d8;
    font-weight: 900;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.app-sidebar-nav a span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.065);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 950;
}

.app-sidebar-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: translateX(2px);
}

.app-sidebar-nav a.active {
    background: var(--yellow);
    color: #0B0B0F;
    box-shadow: 0 16px 38px rgba(255, 210, 30, 0.2);
}

.app-sidebar-nav a.active span {
    background: rgba(11, 11, 15, 0.12);
    color: #0B0B0F;
}

.app-sidebar-footer {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.is-authenticated:not(.is-admin) .site-footer {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.page-section {
    animation: fadeUp 420ms ease both;
}

.dashboard-hero,
.workout-hero,
.nutrition-hero,
.progress-hero,
.coach-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: clamp(22px, 4vw, 34px);
    border-color: rgba(255, 210, 30, 0.18);
    background:
        linear-gradient(130deg, rgba(255, 210, 30, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
        var(--panel);
}

.dashboard-hero::after,
.workout-hero::after,
.nutrition-hero::after,
.progress-hero::after,
.coach-hero::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: min(34%, 260px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 210, 30, 0.16);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 48%, rgba(255, 210, 30, 0.16) 49%, transparent 51%),
        linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.09) 49%, transparent 51%);
    opacity: 0.45;
    pointer-events: none;
}

.dashboard-hero > *,
.workout-hero > *,
.nutrition-hero > *,
.progress-hero > *,
.coach-hero > * {
    position: relative;
    z-index: 1;
}

.card,
.metric-card,
.session-card,
.hero-stats {
    border-color: rgba(255, 255, 255, 0.105);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
    min-height: 128px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.metric-card:hover,
.module-card:hover,
.exercise-card:hover,
.meal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 30, 0.34);
}

.module-card {
    min-height: 170px;
    transition: transform 160ms ease, border-color 160ms ease;
}

.exercise-card,
.meal-card,
.progress-row,
.history-item,
.message {
    transition: transform 160ms ease, border-color 160ms ease;
}

.chat-shell {
    min-height: min(720px, calc(100vh - 170px));
}

.chat-history {
    max-height: 62vh;
}

.message {
    border-radius: 10px;
}

@media (max-width: 1040px) {
    .public-header {
        align-items: stretch;
        flex-direction: column;
    }

    .public-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .public-header .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .is-authenticated:not(.is-admin) .app-shell {
        padding-left: 0;
        padding-bottom: 96px;
    }

    .is-authenticated:not(.is-admin) main,
    .is-authenticated:not(.is-admin) .site-footer {
        width: min(100% - 28px, 1180px);
    }

    .app-sidebar {
        inset: auto 12px 12px 12px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: auto;
        padding: 10px;
    }

    .app-sidebar-brand,
    .app-sidebar-footer {
        display: none;
    }

    .app-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 0;
    }

    .app-sidebar-nav a {
        justify-content: center;
        min-height: 58px;
        padding: 8px 6px;
        font-size: 11px;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }

    .app-sidebar-nav a span {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .public-header {
        top: 10px;
        width: min(100% - 20px, 1220px);
        padding: 10px;
    }

    .public-nav {
        display: none;
    }

    .public-header .nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .public-header .btn {
        width: 100%;
        min-height: 42px;
        padding: 10px;
    }

    .is-landing .landing-page {
        padding-top: 128px;
    }

    .dashboard-hero,
    .workout-hero,
    .nutrition-hero,
    .progress-hero,
    .coach-hero {
        min-height: auto;
    }

    .dashboard-hero::after,
    .workout-hero::after,
    .nutrition-hero::after,
    .progress-hero::after,
    .coach-hero::after {
        display: none;
    }
}

/* GoalFit athletic visual direction */
:root {
    --photo-landing: url("https://images.unsplash.com/photo-1517838277536-f5f99be501cd?auto=format&fit=crop&w=1900&q=82");
    --photo-training: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1600&q=82");
    --photo-running: url("https://images.unsplash.com/photo-1538805060514-97d9cc17730c?auto=format&fit=crop&w=1600&q=82");
    --photo-nutrition: url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=1600&q=82");
    --photo-coach: url("https://images.unsplash.com/photo-1526506118085-60ce8714f8c5?auto=format&fit=crop&w=1600&q=82");
    --photo-dashboard: url("https://images.unsplash.com/photo-1517963879433-6ad2b056d712?auto=format&fit=crop&w=1600&q=82");
}

.goalfit-body {
    background: #050506;
}

body::before {
    background:
        linear-gradient(180deg, rgba(5, 5, 6, 0.98) 0%, rgba(11, 11, 15, 0.98) 44%, rgba(5, 5, 6, 1) 100%);
}

.card,
.metric-card,
.session-card,
.hero-stats,
.app-mockup,
.mock-window,
.select-card span {
    border-radius: 8px;
}

.btn,
input,
select,
textarea,
.brand-mark,
.public-nav a,
.app-sidebar-nav a,
.app-sidebar-nav a span {
    border-radius: 8px;
}

.btn {
    min-height: 46px;
    letter-spacing: 0;
    text-transform: none;
}

.btn-primary {
    box-shadow: none;
}

.public-header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px max(22px, calc((100vw - 1240px) / 2));
    border-width: 0 0 1px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.86), rgba(5, 5, 6, 0.58));
    box-shadow: none;
    transform: none;
}

.public-nav a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-transform: uppercase;
}

.is-landing .landing-page {
    width: 100%;
    padding-top: 0;
}

.sport-landing {
    overflow: hidden;
}

.athletic-hero {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    align-items: end;
    gap: clamp(18px, 4vw, 54px);
    padding: clamp(118px, 15vh, 168px) max(24px, calc((100vw - 1240px) / 2)) 46px;
    border-radius: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.16) 100%),
        linear-gradient(0deg, rgba(5, 5, 6, 0.98) 0%, rgba(5, 5, 6, 0) 38%),
        var(--photo-landing);
    background-position: center;
    background-size: cover;
}

.athletic-hero .landing-hero-content {
    max-width: 880px;
    padding: 0;
}

.athletic-hero h1 {
    max-width: 960px;
    margin: 16px 0 18px;
    font-size: clamp(56px, 9vw, 126px);
    line-height: 0.86;
    text-transform: uppercase;
}

.athletic-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.45;
}

.hero-kpi-stack {
    display: grid;
    gap: 10px;
    width: 100%;
}

.hero-kpi-stack article {
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(5, 5, 6, 0.58);
    box-shadow: 0 20px 62px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.hero-kpi-stack span {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.hero-kpi-stack strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 0.9;
}

.landing-section {
    width: min(1240px, calc(100% - 40px));
    padding: 56px 0;
}

.athlete-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(18px, 3vw, 36px);
    align-items: stretch;
}

.athlete-split.reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.athlete-copy {
    display: grid;
    align-content: center;
    gap: 18px;
}

.athlete-copy h2,
.section-heading h2,
.landing-cta h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.94;
    text-transform: uppercase;
}

.athlete-copy p,
.section-heading p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
}

.image-panel {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-position: center;
    background-size: cover;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.image-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.image-panel span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 950;
    line-height: 0.94;
    text-transform: uppercase;
}

.image-panel-training {
    background-image: var(--photo-training);
}

.image-panel-running {
    background-image: var(--photo-running);
}

.compact-cards {
    gap: 10px;
}

.compact-cards .card {
    padding: 18px;
}

.landing-feature-card,
.landing-mini-card,
.app-mockup {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028)),
        rgba(13, 13, 16, 0.92);
}

.athletic-preview {
    display: grid;
    gap: 22px;
}

.athletic-mockups {
    grid-template-columns: 1.18fr 0.82fr 0.82fr;
    align-items: end;
}

.athletic-mockups .app-mockup {
    min-height: 330px;
    border-color: rgba(255, 255, 255, 0.14);
}

.athletic-mockups .dashboard-mockup {
    min-height: 420px;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.84)),
        var(--photo-dashboard);
    background-position: center;
    background-size: cover;
}

.athletic-sports .sports-grid {
    grid-template-columns: repeat(4, 1fr);
}

.athletic-sports .sports-grid span {
    min-height: 126px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        #111116;
    color: #fff;
    font-size: clamp(20px, 3vw, 36px);
    text-transform: uppercase;
}

.athletic-cta {
    width: min(1240px, calc(100% - 40px));
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38)),
        var(--photo-coach);
    background-position: center;
    background-size: cover;
}

.is-authenticated:not(.is-admin) .app-shell {
    padding-left: 276px;
    background:
        linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(11, 11, 15, 0.98));
}

.is-authenticated:not(.is-admin) main,
.is-authenticated:not(.is-admin) .site-footer {
    width: min(1240px, calc(100% - 48px));
}

.app-sidebar {
    inset: 0 auto 0 0;
    width: 260px;
    padding: 20px 16px;
    border-width: 0 1px 0 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.92)),
        var(--photo-training);
    background-position: center;
    background-size: cover;
    box-shadow: 26px 0 70px rgba(0, 0, 0, 0.34);
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 6, 0.76);
}

.app-sidebar > * {
    position: relative;
    z-index: 1;
}

.app-sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.app-sidebar-nav a {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.78);
}

.app-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-sidebar-nav a.active {
    background: var(--yellow);
    color: #080809;
}

.sport-app-page {
    display: grid;
    gap: 18px;
    padding-top: 22px;
}

.sport-hero {
    --hero-photo: var(--photo-dashboard);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
    align-items: end;
    gap: 24px;
    min-height: 390px;
    margin-bottom: 0;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 8px;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(6, 6, 8, 0.9), rgba(6, 6, 8, 0.08) 54%),
        var(--hero-photo);
    background-position: center;
    background-size: cover;
}

.sport-hero::after {
    display: none;
}

.dashboard-hero {
    --hero-photo: var(--photo-dashboard);
}

.workout-hero {
    --hero-photo: var(--photo-training);
}

.nutrition-hero {
    --hero-photo: var(--photo-nutrition);
}

.progress-hero {
    --hero-photo: var(--photo-running);
}

.coach-hero {
    --hero-photo: var(--photo-coach);
}

.sport-hero-copy {
    max-width: 780px;
}

.sport-hero h1 {
    max-width: 900px;
    margin: 14px 0;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.88;
    text-transform: uppercase;
}

.sport-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.45;
}

.sport-hero .hero-actions {
    margin-top: 22px;
}

.sport-hero .hero-actions form {
    margin: 0;
}

.hero-data-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(5, 5, 6, 0.62);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.hero-data-panel > span,
.hero-data-panel small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-data-panel strong {
    color: #fff;
    max-width: 100%;
    font-size: clamp(28px, 3.1vw, 40px);
    line-height: 0.98;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.hero-data-panel div {
    display: grid;
    gap: 6px;
}

.performance-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.performance-strip .metric-card,
.progress-metrics .metric-card {
    min-height: 118px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
        #111116;
}

.metric-card span {
    color: rgba(255, 210, 30, 0.92);
    font-size: 12px;
}

.metric-card strong {
    font-size: clamp(26px, 3vw, 42px);
    line-height: 0.95;
}

.dashboard-asymmetric {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 12px;
    padding-bottom: 48px;
}

.dashboard-side-stack {
    display: grid;
    gap: 12px;
}

.module-card {
    position: relative;
    overflow: hidden;
    min-height: 174px;
    display: grid;
    align-content: end;
    gap: 8px;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        #111116;
}

.module-card h2 {
    font-size: clamp(26px, 3vw, 46px);
    line-height: 0.95;
    text-transform: uppercase;
}

.module-card p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
}

.module-card-feature {
    min-height: 534px;
    padding: 28px;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86)),
        var(--photo-training);
    background-position: center;
    background-size: cover;
}

.module-nutrition {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.82)),
        var(--photo-nutrition);
    background-position: center;
    background-size: cover;
}

.module-progress {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.82)),
        var(--photo-running);
    background-position: center;
    background-size: cover;
}

.module-coach {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.82)),
        var(--photo-coach);
    background-position: center;
    background-size: cover;
}

.module-data {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.module-data strong {
    color: var(--yellow);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.84;
}

.module-data span {
    color: #fff;
    font-weight: 950;
    text-transform: uppercase;
}

.workout-summary,
.nutrition-summary,
.training-actions,
.progress-form-card,
.progress-recent-card,
.workout-history,
.chat-shell {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
        #111116;
}

.workout-summary,
.nutrition-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.86fr);
    gap: 22px;
    align-items: end;
}

.workout-summary h2,
.nutrition-summary h2 {
    font-size: clamp(34px, 4vw, 60px);
    line-height: 0.94;
    text-transform: uppercase;
}

.exercise-list,
.meal-list {
    display: grid;
    gap: 10px;
}

.exercise-card,
.meal-card {
    background: rgba(18, 18, 22, 0.96);
}

.exercise-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 118px;
    border-left: 4px solid var(--yellow);
}

.exercise-index {
    color: var(--yellow);
    font-size: 24px;
}

.meal-card {
    border-left: 4px solid rgba(255, 210, 30, 0.72);
}

.macro-grid div,
.workout-meta div,
.meal-macros span,
.progress-snapshot div {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.progress-layout {
    gap: 12px;
}

.progress-form-card {
    position: sticky;
    top: 18px;
}

.progress-row,
.history-item {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.chat-shell {
    min-height: min(720px, calc(100vh - 130px));
}

.message {
    border-radius: 8px;
}

.message.bot {
    background: rgba(255, 255, 255, 0.065);
}

.message.user {
    background: var(--yellow);
    color: #080809;
}

.message.user .message-author,
.message.user time {
    color: rgba(8, 8, 9, 0.66);
}

@media (max-width: 1080px) {
    .athletic-hero,
    .sport-hero,
    .dashboard-asymmetric,
    .workout-summary,
    .nutrition-summary {
        grid-template-columns: 1fr;
    }

    .hero-kpi-stack {
        grid-template-columns: repeat(3, 1fr);
    }

    .athlete-split,
    .athlete-split.reverse,
    .athletic-mockups {
        grid-template-columns: 1fr;
    }

    .image-panel {
        min-height: 420px;
    }
}

@media (max-width: 900px) {
    .is-authenticated:not(.is-admin) .app-shell {
        padding-left: 0;
        padding-bottom: 92px;
    }

    .app-sidebar {
        inset: auto 10px 10px 10px;
        width: auto;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(5, 5, 6, 0.86);
    }

    .app-sidebar::before {
        display: none;
    }

    .sport-app-page {
        padding-top: 14px;
    }

    .sport-hero {
        min-height: 520px;
    }

    .performance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .public-header {
        padding: 10px;
    }

    .athletic-hero {
        min-height: 92vh;
        padding: 118px 18px 28px;
    }

    .athletic-hero h1,
    .sport-hero h1 {
        font-size: clamp(46px, 15vw, 74px);
    }

    .hero-kpi-stack,
    .performance-strip,
    .athletic-sports .sports-grid {
        grid-template-columns: 1fr;
    }

    .landing-section,
    .athletic-cta,
    .is-authenticated:not(.is-admin) main,
    .is-authenticated:not(.is-admin) .site-footer {
        width: min(100% - 28px, 1240px);
    }

    .landing-section {
        padding: 36px 0;
    }

    .image-panel {
        min-height: 340px;
    }

    .athletic-cta {
        grid-template-columns: 1fr;
    }

    .sport-hero {
        min-height: 500px;
        padding: 20px;
    }

    .hero-data-panel {
        padding: 16px;
    }

    .module-card-feature {
        min-height: 390px;
    }
}

@media (max-width: 480px) {
    .public-header .brand small {
        display: none;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .sport-hero {
        min-height: 470px;
    }

    .metric-card strong {
        font-size: 32px;
    }

    .app-sidebar-nav a {
        font-size: 10px;
    }
}

/* Clean premium landing */
.public-header {
    position: sticky;
    top: 0;
    left: auto;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    width: 100%;
    height: 76px;
    padding: 0 max(24px, calc((100vw - 1200px) / 2));
    border: 0;
    border-bottom: 1px solid rgba(31, 31, 41, 0.72);
    border-radius: 0;
    background: rgba(11, 11, 15, 0.68);
    box-shadow: none;
    transform: none;
    backdrop-filter: blur(16px);
}

.public-header .brand {
    justify-self: start;
}

.public-header .brand > span {
    display: grid;
    gap: 2px;
}

.public-header .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(255, 210, 30, 0.2);
}

.public-header .brand-logo-symbol {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(255, 210, 30, 0.2);
}

.public-header .brand strong {
    color: #fff;
    font-size: 22px;
}

.public-header .brand small {
    color: var(--yellow);
    font-size: 11px;
    letter-spacing: 0;
}

.public-nav {
    justify-self: center;
    gap: 6px;
}

.public-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #c9c9d3;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
}

.public-nav a:hover {
    background: #16161D;
    color: #fff;
}

.public-header .nav-actions {
    justify-self: end;
}

.public-header .nav-actions .btn {
    min-height: 42px;
    padding: 10px 15px;
}

.is-landing .landing-page.clean-landing,
.landing-page.clean-landing {
    width: 100%;
    padding-top: 0;
    background: #0B0B0F;
}

.clean-landing .clean-hero {
    display: grid;
    align-items: center;
    min-height: 80vh;
    padding: 72px max(24px, calc((100vw - 1200px) / 2));
    background-image:
        linear-gradient(90deg, rgba(11, 11, 15, 0.86) 0%, rgba(11, 11, 15, 0.64) 46%, rgba(11, 11, 15, 0.2) 100%),
        linear-gradient(0deg, rgba(11, 11, 15, 0.9), rgba(11, 11, 15, 0) 40%),
        var(--photo-landing);
    background-position: center;
    background-size: cover;
}

.clean-hero-content {
    width: min(680px, 100%);
}

.clean-hero h1 {
    margin: 18px 0 16px;
    max-width: 680px;
    color: #fff;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
}

.clean-hero p {
    max-width: 620px;
    margin: 0;
    color: #d4d4dc;
    font-size: 19px;
    line-height: 1.6;
}

.clean-landing .hero-actions {
    margin-top: 30px;
}

.clean-landing .btn.large {
    min-height: 52px;
    padding: 13px 18px;
    font-size: 16px;
}

.reveal-ready [data-reveal] {
    opacity: 0;
    transition:
        opacity 0.72s ease,
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-ready [data-reveal="fade-up"] {
    transform: translateY(28px);
}

.reveal-ready [data-reveal="fade-in"] {
    transform: none;
}

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.clean-section {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 90px 0;
}

.clean-section + .clean-section {
    border-top: 1px solid #1F1F29;
}

.clean-section-header {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin-bottom: 34px;
}

.clean-section-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.clean-card-grid {
    display: grid;
    gap: 18px;
}

.clean-card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clean-card-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.clean-card,
.preview-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid #242431;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        #16161D;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.clean-card span,
.preview-card span {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
}

.clean-card h3,
.preview-card h3 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.18;
    text-transform: none;
}

.clean-card p,
.preview-card p,
.clean-cta p {
    margin: 0;
    color: #a7a7b3;
    line-height: 1.65;
}

.preview-grid {
    align-items: stretch;
}

.preview-card {
    display: grid;
    align-content: space-between;
    gap: 28px;
    min-height: 240px;
}

.preview-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--yellow);
    color: #0B0B0F;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transition: background 160ms ease, transform 160ms ease;
}

.preview-cta:hover {
    background: #e8bd12;
    color: #0B0B0F;
    transform: translateY(-2px);
}

.clean-sports-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.clean-sports-grid span {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 18px;
    border: 1px solid #242431;
    border-radius: 10px;
    background: #16161D;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.clean-sports-grid span,
.clean-card,
.preview-card {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.clean-sports-grid span:hover {
    border-color: #343440;
    background: #1A1A21;
    transform: scale(1.015);
}

.clean-card:hover,
.preview-card:hover {
    border-color: #343440;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
        #181820;
    transform: scale(1.01);
}

.clean-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 310px;
    padding: 42px;
    border: 1px solid #242431;
    border-radius: 10px;
    background-image:
        linear-gradient(90deg, rgba(11, 11, 15, 0.9), rgba(11, 11, 15, 0.62)),
        var(--photo-running);
    background-position: center;
    background-size: cover;
}

.clean-cta h2 {
    margin: 14px 0 12px;
    max-width: 620px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    text-transform: none;
}

.clean-cta p {
    max-width: 620px;
    color: #d7d7df;
}

@media (max-width: 980px) {
    .public-header {
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: 76px;
        padding: 12px 18px;
    }

    .public-nav {
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        padding-top: 8px;
    }

    .public-header .nav-actions {
        justify-self: end;
    }

    .clean-landing .clean-hero {
        min-height: 74vh;
    }

    .clean-hero h1 {
        font-size: 42px;
    }

    .clean-card-grid.three,
    .clean-card-grid.five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clean-sports-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clean-cta {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .public-header {
        display: grid;
        gap: 10px;
    }

    .public-header .brand small,
    .public-nav {
        display: none;
    }

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

    .public-header .brand-logo-symbol {
        width: 42px;
        height: 42px;
    }

    .public-header .nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        grid-column: 1 / -1;
    }

    .public-header .nav-actions .btn {
        width: 100%;
        padding: 10px;
    }

    .clean-landing .clean-hero {
        min-height: 72vh;
        padding: 54px 18px;
    }

    .clean-hero h1 {
        font-size: 34px;
    }

    .clean-hero p {
        font-size: 16px;
    }

    .clean-section {
        width: min(100% - 32px, 1200px);
        padding: 64px 0;
    }

    .clean-card-grid.three,
    .clean-card-grid.five,
    .clean-sports-grid {
        grid-template-columns: 1fr;
    }

    .clean-card,
    .preview-card {
        min-height: auto;
    }

    .clean-cta {
        min-height: 280px;
        padding: 26px;
    }
}

/* Premium sport typography and button system */
html,
body {
    font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.brand strong,
.clean-hero h1,
.clean-section-header h2,
.sport-hero h1 {
    font-family: "Barlow Condensed", "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.btn,
a.btn,
button.btn,
input[type="submit"],
input[type="button"],
.preview-cta,
.public-header .nav-actions .btn,
.clean-landing .btn.large,
.landing-cta .btn,
.landing-hero .btn,
.chat-form .btn,
.logout-form .btn,
.admin-sidebar .btn,
.hero-actions button {
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid #2A2A34;
    border-radius: 10px;
    background: #15151B;
    background-image: none;
    color: #F5F5F7;
    font-family: "Barlow Condensed", "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    text-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
a.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.preview-cta:hover,
.public-header .nav-actions .btn:hover,
.clean-landing .btn.large:hover,
.landing-cta .btn:hover,
.landing-hero .btn:hover,
.chat-form .btn:hover,
.logout-form .btn:hover,
.admin-sidebar .btn:hover,
.hero-actions button:hover {
    border-color: #3A3A46;
    background: #1D1D24;
    background-image: none;
    color: #FFFFFF;
    box-shadow: none;
    transform: translateY(-2px);
}

.btn-primary,
button.btn-primary,
a.btn-primary,
.preview-cta,
.hero-actions button.btn-primary {
    border-color: #F2C31A;
    background: transparent;
    background-image: none;
    color: #F2C31A;
    box-shadow: none;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
.preview-cta:hover,
.hero-actions button.btn-primary:hover {
    border-color: #DFAF12;
    background: rgba(242, 195, 26, 0.08);
    background-image: none;
    color: #FFD95A;
    box-shadow: none;
}

.btn-secondary,
button.btn-secondary,
a.btn-secondary {
    border-color: #343440;
    background: transparent;
    background-image: none;
    color: #F5F5F7;
    box-shadow: none;
}

.btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover {
    border-color: #3A3A46;
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    box-shadow: none;
}

.btn-danger,
button.btn-danger,
a.btn-danger {
    border-color: rgba(248, 113, 113, 0.45);
    background: #1E1012;
    color: #FCA5A5;
    box-shadow: none;
}

.btn-danger:hover,
button.btn-danger:hover,
a.btn-danger:hover {
    border-color: #F87171;
    background: #2A1215;
    color: #FECACA;
}

.btn.large,
.clean-landing .btn.large,
.landing-cta .btn,
.landing-hero .btn {
    min-height: 46px;
    padding: 12px 22px;
    font-size: 18px;
}

.btn.compact {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 14px;
}

.public-header .nav-actions .btn {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 16px;
}

.preview-cta {
    width: fit-content;
}

.preview-card .preview-cta {
    border-color: #F2C31A;
    background: transparent;
    color: #F2C31A;
}

.preview-card .preview-cta:hover {
    border-color: #F2C31A;
    background: rgba(242, 195, 26, 0.1);
    color: #FFD95A;
    transform: translateY(-2px);
}

.btn:active,
a.btn:active,
button.btn:active,
.preview-cta:active,
.hero-actions button:active {
    transform: translateY(0);
}

.btn:disabled,
button.btn:disabled,
.hero-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    box-shadow: none;
    transform: none;
}

/* Header and hero CTA hierarchy */
.clean-hero .btn,
.public-header .nav-actions .btn {
    min-width: 118px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 15px;
}

.clean-hero .hero-actions .btn {
    background: transparent;
    background-image: none;
    box-shadow: none;
}

.clean-hero .btn-primary,
.public-header .nav-actions .btn-primary {
    border: 1px solid #F2C31A;
    background: transparent;
    background-image: none;
    color: #F2C31A;
    font-weight: 800;
    box-shadow: none;
}

.clean-hero .btn-primary {
    color: #F5F5F7;
}

.clean-hero .btn:hover,
.clean-hero .btn-primary:hover,
.clean-hero .btn-secondary:hover {
    border-color: inherit;
    background: transparent;
    background-image: none;
    color: inherit;
    box-shadow: none;
    transform: none;
}

.clean-hero .btn-primary:hover,
.public-header .nav-actions .btn-primary:hover {
    border-color: #DFAF12;
    background: rgba(242, 195, 26, 0.08);
    background-image: none;
    color: #FFD95A;
    box-shadow: none;
    transform: translateY(-2px);
}

.clean-hero .btn-secondary,
.public-header .nav-actions .btn-secondary {
    min-width: 118px;
    min-height: 42px;
    padding: 10px 18px;
    border-color: #343440;
    background: transparent;
    background-image: none;
    color: #F5F5F7;
    box-shadow: none;
}

.clean-hero .hero-actions .btn:hover {
    background: transparent;
    background-image: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.clean-hero .hero-actions .btn-primary:hover {
    border-color: #F2C31A;
    color: #F5F5F7;
}

.clean-hero .hero-actions .btn-secondary:hover {
    border-color: #343440;
    color: #F5F5F7;
}

/* Global responsive hardening */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

main,
.app-shell,
.card,
.metric-card,
.sport-hero,
.module-card,
.admin-content,
.admin-panel {
    min-width: 0;
}

h1,
h2,
h3,
p,
a,
span,
strong,
small,
td,
th,
button,
input,
select,
textarea {
    overflow-wrap: anywhere;
}

.hero-actions,
.section-title,
.meal-header,
.module-data,
.site-footer {
    min-width: 0;
}

.hero-actions .btn,
.hero-actions form,
.hero-actions button,
.nav-actions .btn {
    flex-shrink: 0;
}

@media (max-width: 1180px) {
    .clean-card-grid.five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .performance-strip,
    .progress-metrics,
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .public-header {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    .public-nav {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .public-nav::-webkit-scrollbar {
        display: none;
    }

    .is-authenticated:not(.is-admin) .app-shell {
        padding-left: 0;
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .is-authenticated:not(.is-admin) main,
    .is-authenticated:not(.is-admin) .site-footer,
    main,
    .clean-section,
    .clean-cta,
    .admin-layout {
        width: min(100% - 32px, 1240px);
    }

    .sport-hero,
    .dashboard-asymmetric,
    .workout-summary,
    .nutrition-summary,
    .progress-layout,
    .admin-layout,
    .admin-split {
        grid-template-columns: 1fr;
    }

    .sport-hero {
        min-height: 420px;
        align-items: end;
    }

    .hero-data-panel {
        width: min(100%, 520px);
    }

    .module-card-feature {
        min-height: 420px;
    }

    .progress-form-card {
        position: static;
    }

    .chat-shell {
        min-height: auto;
    }

    .chat-history {
        max-height: 62vh;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-nav,
    .admin-sidebar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-header {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        padding: 12px 16px;
    }

    .public-header .brand,
    .public-header .nav-actions {
        justify-self: stretch;
    }

    .public-header .brand {
        justify-content: center;
    }

    .public-header .nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .public-header .nav-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .clean-landing .clean-hero {
        min-height: 74svh;
        padding: 48px 18px;
        background-position: 58% center;
    }

    .clean-hero-content {
        width: 100%;
    }

    .clean-hero h1,
    .sport-hero h1 {
        font-size: clamp(34px, 13vw, 58px);
        line-height: 0.98;
    }

    .clean-hero p,
    .sport-hero p {
        font-size: 16px;
    }

    .clean-card-grid.three,
    .clean-card-grid.five,
    .clean-sports-grid,
    .option-grid.two,
    .option-grid.three,
    .option-grid.four,
    .form-grid,
    .split-grid,
    .macro-grid,
    .workout-meta,
    .exercise-metrics,
    .guidance-panel,
    .meal-macros,
    .progress-snapshot,
    .progress-row,
    .history-item,
    .progress-row-metrics,
    .history-meta,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .clean-section {
        padding: 58px 0;
    }

    .clean-card,
    .preview-card,
    .card,
    .metric-card {
        padding: 18px;
    }

    .clean-cta {
        min-height: 260px;
        padding: 24px;
    }

    .sport-app-page {
        gap: 14px;
    }

    .sport-hero {
        min-height: 390px;
        padding: 20px;
        background-position: center;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .performance-strip,
    .progress-metrics {
        grid-template-columns: 1fr;
    }

    .module-card,
    .module-card-feature {
        min-height: 260px;
    }

    .exercise-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .exercise-index {
        width: fit-content;
    }

    .meal-header,
    .section-title,
    .module-data,
    .site-footer {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

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

    .message {
        max-width: 100%;
    }

    .admin-table-wrap {
        margin-inline: -18px;
        padding-inline: 18px;
        scroll-snap-type: x proximity;
    }

    .admin-table {
        min-width: 760px;
    }
}

@media (max-width: 560px) {
    main,
    .clean-section,
    .clean-cta,
    .is-authenticated:not(.is-admin) main,
    .is-authenticated:not(.is-admin) .site-footer,
    .admin-layout {
        width: min(100% - 24px, 1240px);
    }

    .public-header .brand small {
        display: block;
    }

    .public-nav {
        display: none;
    }

    .clean-landing .clean-hero {
        min-height: 72svh;
        padding-inline: 14px;
    }

    .clean-hero .hero-actions {
        grid-template-columns: 1fr;
    }

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

    .sport-hero {
        min-height: 360px;
        padding: 18px;
    }

    .metric-card strong,
    .module-data strong {
        font-size: clamp(28px, 12vw, 42px);
    }

    .hero-data-panel strong {
        font-size: clamp(24px, 9vw, 34px);
        line-height: 1;
    }

    .app-sidebar {
        inset: auto 8px calc(8px + env(safe-area-inset-bottom)) 8px;
        padding: 8px;
        border-radius: 12px;
    }

    .app-sidebar-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
    }

    .app-sidebar-nav a {
        min-height: 54px;
        padding: 7px 4px;
        font-size: 9px;
        line-height: 1.05;
    }

    .app-sidebar-nav a span {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .chat-history {
        max-height: 58vh;
        padding-right: 4px;
    }

    .message {
        padding: 14px;
    }

    .admin-sidebar {
        padding: 16px;
    }

    .admin-brand {
        align-items: flex-start;
    }

    .admin-nav,
    .admin-sidebar-actions,
    .admin-bar-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .public-header .nav-actions {
        grid-template-columns: 1fr;
    }

    .clean-hero h1,
    .sport-hero h1 {
        font-size: 32px;
    }

    .btn,
    a.btn,
    button.btn,
    .public-header .nav-actions .btn {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .app-sidebar-nav a {
        font-size: 0;
    }

    .app-sidebar-nav a span {
        margin: 0;
    }

    .admin-table {
        min-width: 680px;
    }
}

.preview-card .preview-cta,
.preview-card .preview-cta:visited {
    border-color: #F2C31A;
    background: transparent;
    background-image: none;
    color: #F2C31A;
    box-shadow: none;
}

.preview-card .preview-cta:hover {
    border-color: #F2C31A;
    background: rgba(242, 195, 26, 0.1);
    background-image: none;
    color: #FFD95A;
    box-shadow: none;
    transform: translateY(-2px);
}

.clean-cta .btn-secondary,
.clean-cta .btn-secondary:visited,
.clean-cta .btn-secondary:hover {
    border-color: #343440;
    background: transparent;
    background-image: none;
    color: #F5F5F7;
    box-shadow: none;
}

.clean-cta .btn-secondary:hover {
    border-color: #3A3A46;
    transform: translateY(-1px);
}

.clean-landing .clean-cta .btn.btn-secondary.large,
.clean-landing .clean-cta .btn.btn-secondary.large:visited {
    border-color: #343440;
    background: transparent;
    background-color: transparent;
    background-image: none;
    color: #F5F5F7;
    box-shadow: none;
}

.clean-landing .clean-cta .btn.btn-secondary.large:hover {
    border-color: #3A3A46;
    background: transparent;
    background-color: transparent;
    background-image: none;
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.workout-meta .workout-meta-focus strong {
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.35;
    text-transform: none;
}

.exercise-card {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.exercise-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    border-left-color: rgba(255, 210, 30, 0.82);
    background: rgba(20, 20, 24, 0.98);
}
