@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
    --background: hsl(150 20% 4%);
    --foreground: hsl(60 10% 92%);
    --card: hsl(150 18% 7%);
    --card-foreground: hsl(60 10% 92%);
    --primary: hsl(153 60% 15%);
    --primary-foreground: hsl(60 20% 95%);
    --secondary: hsl(150 15% 12%);
    --secondary-foreground: hsl(60 10% 85%);
    --muted: hsl(150 10% 14%);
    --muted-foreground: hsl(150 8% 55%);
    --accent: hsl(43 70% 50%);
    --accent-foreground: hsl(150 30% 5%);
    --destructive: hsl(0 65% 50%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(150 12% 16%);
    --input: hsl(150 12% 16%);
    --ring: hsl(153 60% 25%);
    --green-glow: hsl(153 70% 22%);
    --gold: hsl(43 70% 50%);
    --gold-muted: hsl(43 40% 35%);
    --surface-elevated: hsl(150 16% 10%);
    --surface-glass: hsla(150 20% 8% / 0.72);
    --gradient-hero: linear-gradient(135deg, hsl(153 60% 12%) 0%, hsl(150 30% 6%) 50%, hsl(160 40% 8%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(150 18% 9%) 0%, hsl(150 18% 6%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(43 70% 50%) 0%, hsl(38 60% 42%) 100%);
    --gradient-green: linear-gradient(135deg, hsl(153 60% 18%) 0%, hsl(153 50% 12%) 100%);
    --shadow-card: 0 4px 24px -4px hsla(150 40% 4% / 0.5);
    --shadow-elevated: 0 8px 40px -8px hsla(150 40% 4% / 0.6);
    --shadow-glow: 0 0 40px -10px hsla(153 70% 25% / 0.3);
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --surface-input: hsl(150 10% 14% / 0.6);
    --surface-row: hsl(150 10% 14% / 0.3);
    --surface-row-strong: hsl(150 10% 14% / 0.42);
    --surface-sidebar: hsla(150 18% 7% / 0.5);
    --surface-mobile: hsla(150 18% 7% / 0.5);
    --surface-mobile-overlay: hsla(150 20% 4% / 0.96);
    --sidebar-width: 20rem;
}

[data-theme="light"] {
    --background: hsl(48 22% 96%);
    --foreground: hsl(154 24% 14%);
    --card: hsl(0 0% 100%);
    --card-foreground: hsl(154 24% 14%);
    --primary: hsl(152 43% 27%);
    --primary-foreground: hsl(48 30% 98%);
    --secondary: hsl(48 16% 90%);
    --secondary-foreground: hsl(154 18% 24%);
    --muted: hsl(48 14% 88%);
    --muted-foreground: hsl(154 10% 42%);
    --accent: hsl(42 86% 46%);
    --accent-foreground: hsl(36 55% 11%);
    --destructive: hsl(0 63% 46%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(150 16% 82%);
    --input: hsl(150 16% 82%);
    --ring: hsl(152 43% 32%);
    --green-glow: hsl(153 52% 30%);
    --gold: hsl(42 86% 42%);
    --gold-muted: hsl(42 40% 34%);
    --surface-elevated: hsl(48 26% 98%);
    --surface-glass: hsla(0 0% 100% / 0.82);
    --gradient-hero: linear-gradient(135deg, hsl(48 30% 95%) 0%, hsl(46 24% 92%) 50%, hsl(48 18% 90%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(0 0% 100%) 0%, hsl(48 24% 97%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(42 86% 46%) 0%, hsl(38 78% 40%) 100%);
    --gradient-green: linear-gradient(135deg, hsl(153 42% 36%) 0%, hsl(153 35% 27%) 100%);
    --shadow-card: 0 16px 36px -20px hsla(152 18% 22% / 0.24);
    --shadow-elevated: 0 24px 48px -24px hsla(152 18% 18% / 0.26);
    --shadow-glow: 0 0 36px -18px hsla(153 44% 42% / 0.24);
    --surface-input: hsla(0 0% 100% / 0.92);
    --surface-row: hsla(0 0% 100% / 0.82);
    --surface-row-strong: hsla(0 0% 100% / 0.94);
    --surface-sidebar: hsla(48 30% 94% / 0.96);
    --surface-mobile: hsla(48 30% 94% / 0.96);
    --surface-mobile-overlay: hsla(48 30% 94% / 0.98);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, hsla(153 60% 18% / 0.22), transparent 32%),
        radial-gradient(circle at top right, hsla(43 70% 50% / 0.08), transparent 22%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] body::before {
    background:
        radial-gradient(circle at top left, hsla(153 44% 44% / 0.1), transparent 32%),
        radial-gradient(circle at top right, hsla(43 72% 48% / 0.08), transparent 22%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
}

h1,
.text-display,
.font-display {
    font-family: var(--font-display);
}

h1,
h2,
h3,
p {
    margin: 0;
}

.text-gold {
    color: var(--gold);
}

.text-green-glow {
    color: var(--green-glow);
}

.text-muted-foreground,
.muted {
    color: var(--muted-foreground);
}

.bg-gold {
    background: var(--gold);
}

.gradient-hero {
    background: var(--gradient-hero);
}

.gradient-accent {
    background: var(--gradient-accent);
}

.gradient-green {
    background: var(--gradient-green);
}

.golf-glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
}

.container,
.page-shell {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

.page-shell--narrow {
    width: min(100% - 2rem, 820px);
}

.page-shell--medium {
    width: min(100% - 2rem, 980px);
}

.golf-card,
.section-card {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--gradient-card);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.golf-card-hover {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--gradient-card);
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.golf-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--green-glow);
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-card-header h2,
.section-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.72rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--accent-foreground);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: var(--surface-row-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-icon:disabled,
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.inline-action {
    width: auto;
}

.icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.icon-sm {
    width: 0.9rem;
    height: 0.9rem;
}

.icon-md {
    width: 1.1rem;
    height: 1.1rem;
}

.icon-lg {
    width: 1.35rem;
    height: 1.35rem;
}

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.08rem;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-logo__word {
    color: var(--foreground);
}

.brand-logo__ai {
    color: var(--gold);
}

.brand-logo--sm {
    font-size: 1.05rem;
}

.brand-logo--md {
    font-size: 1.4rem;
}

.brand-logo--lg {
    font-size: 1.95rem;
}

.shell-wordmark {
    display: inline-flex;
    align-items: center;
    color: var(--foreground);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shell-wordmark--sm {
    font-size: 0.98rem;
}

.public-layout {
    min-height: 100vh;
}

.public-nav-shell {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    border-bottom: 1px solid hsla(150 12% 16% / 0.5);
}

.public-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.public-main {
    min-height: 100vh;
}

.public-main > * {
    padding-top: 0;
}

.landing-hero {
    position: relative;
    padding-top: 4rem;
    overflow: hidden;
}

.landing-hero__media {
    position: absolute;
    inset: 0;
}

.landing-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, hsla(150 20% 4% / 0.9), hsla(150 20% 4% / 0.7), var(--background));
}

.landing-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 7rem 0 9rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hero-badge__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 0 hsla(43 70% 50% / 0.4);
    animation: pulse 1.8s infinite;
}

.hero-title {
    max-width: 62rem;
    font-size: clamp(2.9rem, 7vw, 5.8rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 42rem;
    margin-top: 1.5rem;
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--muted-foreground);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-pillars {
    width: min(100%, 64rem);
    margin-top: 2.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-pillar {
    padding: 1.2rem 1.15rem;
    border-radius: 1rem;
    text-align: left;
}

.hero-pillar__eyebrow {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero-pillar h3 {
    font-size: 1rem;
    font-weight: 700;
}

.hero-pillar p {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--muted-foreground);
}

.feature-section,
.cta-section,
.footer-shell {
    padding: 6rem 0;
}

.feature-section__header,
.cta-section__content {
    text-align: center;
}

.feature-section__header h2,
.cta-section__content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
}

.feature-section__header p,
.cta-section__content p {
    max-width: 38rem;
    margin: 1rem auto 0;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 68rem;
    margin: 4rem auto 0;
}

.feature-card {
    padding: 1.5rem;
    cursor: default;
}

.feature-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.membership-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.membership-teaser-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.membership-teaser-card--recommended {
    border-color: hsla(43 70% 50% / 0.42);
    box-shadow: 0 20px 50px hsla(43 70% 20% / 0.12);
}

.membership-teaser-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.membership-teaser-card__tier {
    color: var(--muted-foreground);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.membership-teaser-card__head h3 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.membership-teaser-card__copy {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.membership-teaser-card__list,
.membership-plan-card__list {
    display: grid;
    gap: 0.7rem;
}

.membership-teaser-card__list li,
.membership-plan-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--foreground);
    line-height: 1.5;
}

.membership-teaser-card__list .icon,
.membership-plan-card__list .icon {
    color: var(--gold);
    margin-top: 0.1rem;
}

.cta-section {
    position: relative;
}

.footer-shell {
    border-top: 1px solid var(--border);
    padding-block: 3rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-page--register {
    padding-block: 3rem;
}

.auth-wrapper {
    width: min(100%, 25rem);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-kicker {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.auth-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.05;
    font-weight: 700;
}

.auth-header p {
    margin-top: 0.75rem;
    font-size: 0.94rem;
    color: var(--muted-foreground);
    line-height: 1.65;
}

.auth-card {
    display: grid;
    gap: 1rem;
}

.auth-card form {
    display: grid;
    gap: 1.25rem;
}

.auth-field,
.field {
    display: grid;
    gap: 0.5rem;
}

.auth-field label,
.field label {
    font-size: 0.92rem;
    font-weight: 500;
}

.input-shell,
input,
textarea,
select,
.input-like {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--surface-input);
    color: var(--foreground);
    padding: 0.8rem 0.95rem;
}

.input-shell:focus,
input:focus,
textarea:focus,
select:focus,
.input-like:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px hsla(153 60% 25% / 0.18);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-foreground);
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: var(--muted-foreground);
}

.auth-password-toggle:hover {
    color: var(--foreground);
}

.validation-message {
    color: hsl(8 70% 72%);
    font-size: 0.82rem;
}

.form-error,
.form-success {
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.form-error {
    border: 1px solid hsla(0 65% 50% / 0.35);
    background: hsla(0 65% 50% / 0.12);
    color: hsl(5 85% 82%);
}

.form-success {
    border: 1px solid hsla(153 60% 25% / 0.45);
    background: hsla(153 60% 25% / 0.18);
    color: hsl(120 45% 85%);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

.auth-footer a {
    color: var(--gold);
    font-weight: 600;
}

.auth-note {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.app-layout {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    background: transparent;
    overflow: hidden;
}

.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--surface-sidebar);
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.app-sidebar__brand {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.app-sidebar__nav,
.app-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
}

.app-sidebar__nav {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    align-items: stretch;
    align-content: flex-start;
    justify-content: flex-start;
}

.app-sidebar__footer {
    border-top: 1px solid var(--border);
    flex: 0 0 auto;
    margin-top: auto;
}

.app-sidebar-link,
.app-sidebar-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0.9rem;
    border-radius: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.app-sidebar-link span,
.app-sidebar-button span {
    white-space: nowrap;
}

.app-sidebar-link:hover,
.app-sidebar-link.active,
.app-sidebar-button:hover {
    color: var(--foreground);
    background: var(--surface-row-strong);
}

.app-sidebar-link.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.app-user-summary {
    flex: 0 0 auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.app-user-summary__name {
    font-size: 0.92rem;
    font-weight: 600;
}

.app-user-summary__plan,
.app-user-summary__tokens {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.app-user-summary__meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.2rem;
}

.app-user-summary__plan {
    margin-top: 0.42rem;
}

.app-user-summary__tokens {
    margin-top: 0.16rem;
}

.app-user-summary--mobile {
    margin-top: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: var(--surface-row);
}

.app-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-mobile);
}

.app-mobile-overlay {
    display: none;
}

.app-main-surface {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.dashboard-page,
.rounds-page,
.add-round-page,
.courses-page,
.stats-page,
.video-page,
.account-page,
.settings-page {
    padding: 1.25rem 0 2rem;
}

.dashboard-page {
    padding-top: 1.65rem;
}

.chat-page {
    height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
}

.page-hero {
    margin-bottom: 1.5rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 360px);
    align-items: start;
    gap: 1.5rem;
}

.dashboard-hero--compact {
    margin-bottom: 1.65rem;
    padding-bottom: 0.35rem;
}

.identity-heading {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.identity-heading--raised .membership-badge,
.identity-heading--hero .membership-badge {
    transform: translateY(-0.35rem);
}

.identity-heading--hero {
    gap: 0.7rem;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.1;
    font-weight: 700;
}

.page-hero p {
    margin-top: 0.35rem;
    color: var(--muted-foreground);
}

.dashboard-kicker {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.dashboard-status-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.dashboard-stats-grid {
    margin-top: 0.35rem;
}

.dashboard-hero__actions {
    justify-content: flex-end;
    align-self: end;
}

.dashboard-focus-list {
    display: grid;
    gap: 0.9rem;
}

.dashboard-focus-list--compact {
    gap: 0.8rem;
}

.dashboard-focus-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    background: var(--surface-row);
}

.dashboard-focus-item strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.dashboard-focus-item p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.86rem;
}

.dashboard-focus-item__bullet {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: var(--gold);
    margin-top: 0.42rem;
}

.stats-grid,
.dashboard-split,
.stats-split,
.dual-grid,
.settings-grid {
    display: grid;
    gap: 1.5rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-split {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.stats-split,
.dual-grid,
.settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    padding: 1rem;
}

.stat-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--muted-foreground);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-value {
    font-size: clamp(1.7rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.chart-card__head,
.list-card__head,
.panel-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gold);
    font-size: 0.88rem;
}

.chart-stage {
    height: 14rem;
}

.simple-chart {
    display: grid;
    gap: 0.75rem;
    height: 100%;
}

.simple-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.76rem;
}

.simple-chart__metric {
    font-weight: 600;
    color: var(--foreground);
}

.simple-chart__hint {
    color: var(--muted-foreground);
}

.simple-chart__body {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
    min-height: 0;
    flex: 1;
}

.simple-chart__plot {
    display: grid;
    gap: 0.65rem;
    min-height: 0;
}

.simple-chart__y-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--muted-foreground);
    font-size: 0.72rem;
    padding-block: 0.35rem 0.6rem;
    text-align: right;
}

.simple-chart__svg {
    width: 100%;
    height: 100%;
}

.simple-chart__grid {
    stroke: var(--border);
    stroke-dasharray: 2 2;
}

.simple-chart__line {
    fill: none;
    stroke-width: 2.2;
}

.simple-chart__labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.35rem;
    color: var(--muted-foreground);
    font-size: 0.74rem;
    text-align: center;
}

.simple-chart--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
}

.simple-bar-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 1rem;
    align-items: end;
    min-height: 14rem;
}

.simple-bar-chart__item {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
}

.simple-bar-chart__canvas {
    width: 100%;
    min-height: 11rem;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0 0.4rem;
}

.simple-bar-chart__bar {
    width: 100%;
    max-width: 3rem;
    border-radius: 0.35rem 0.35rem 0 0;
}

.simple-bar-chart__label,
.simple-bar-chart__value {
    font-size: 0.75rem;
}

.simple-bar-chart__label {
    color: var(--muted-foreground);
}

.recent-rounds,
.round-list,
.video-list {
    display: grid;
    gap: 0.75rem;
}

.recent-round-row,
.round-row,
.video-row,
.list-row,
.account-avatar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 0.85rem;
    background: var(--surface-row);
}

.video-row {
    width: 100%;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
}

.video-row--selected {
    border-color: hsla(43 70% 50% / 0.35);
    box-shadow: 0 16px 34px -26px hsla(43 70% 25% / 0.35);
}

.round-row {
    padding: 1rem 1.1rem;
}

.round-row__left,
.video-row__left {
    flex: 1;
    min-width: 0;
}

.round-row__title,
.video-row__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.round-row__title h3,
.video-row__title h3 {
    font-size: 0.98rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.round-row__meta,
.video-row__meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.round-row__right,
.video-row__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-row__delete {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border);
    background: var(--surface-row);
    color: var(--muted-foreground);
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 600;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.video-row__delete:hover {
    border-color: hsla(8 70% 50% / 0.45);
    color: var(--foreground);
    background: hsla(8 70% 50% / 0.08);
}

.video-row__delete:disabled {
    opacity: 0.65;
    cursor: wait;
}

.round-score {
    text-align: right;
}

.round-score__value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.round-score__meta {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.round-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 1rem;
    text-align: center;
    font-size: 0.76rem;
}

.round-metrics span {
    display: block;
}

.round-metrics strong {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.92rem;
    color: var(--foreground);
}

.insight-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-card__body {
    color: hsla(60 10% 92% / 0.92);
    line-height: 1.75;
    font-size: 0.95rem;
    flex: 1;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.membership-badge img {
    display: block;
    width: 100%;
    height: auto;
}

.membership-badge--sm {
    width: 1.9rem;
}

.membership-badge--md {
    width: 2.35rem;
}

.membership-badge--base img,
.membership-badge--silver img,
.membership-badge--gold img {
    filter: drop-shadow(0 8px 16px hsla(150 30% 4% / 0.3));
}

.membership-summary-panel {
    display: grid;
    gap: 1rem;
}

.membership-summary-panel--compact {
    gap: 0.85rem;
}

.membership-summary-panel__head,
.membership-summary-panel__title-row,
.membership-split-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.membership-summary-panel__eyebrow,
.membership-locked-panel__eyebrow {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.membership-summary-panel__title-row h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.membership-summary-panel__copy {
    color: var(--muted-foreground);
    line-height: 1.7;
    max-width: 36rem;
}

.membership-summary-panel__meter {
    display: grid;
    gap: 0.3rem;
    justify-items: end;
    text-align: right;
    font-size: 0.84rem;
}

.membership-summary-panel__meter span {
    font-weight: 700;
}

.membership-summary-panel__meter small,
.membership-summary-panel__trial {
    color: var(--muted-foreground);
}

.membership-summary-panel__actions {
    display: flex;
    justify-content: flex-end;
}

.membership-inline-notice {
    border-radius: 0.95rem;
    padding: 0.95rem 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.membership-inline-notice--warning {
    border: 1px solid hsla(43 70% 50% / 0.35);
    background: hsla(43 70% 50% / 0.12);
    color: hsl(48 95% 86%);
}

.membership-inline-notice--muted {
    border: 1px solid var(--border);
    background: var(--surface-row-strong);
    color: var(--foreground);
}

.membership-inline-notice--subtle {
    border: 1px solid hsla(153 60% 25% / 0.32);
    background: hsla(153 60% 25% / 0.14);
    color: hsl(120 36% 86%);
}

.membership-locked-panel,
.membership-preview-card,
.membership-explainer-card {
    display: grid;
    gap: 1rem;
}

.membership-locked-panel h2,
.membership-explainer-card h2 {
    font-size: 1.4rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.membership-locked-panel p,
.membership-explainer-card p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.membership-locked-panel__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rounds-header,
.video-header,
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.course-card {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.course-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.course-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: var(--gold);
}

.course-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

.course-card p {
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.course-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    color: var(--muted-foreground);
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.add-round-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.add-round-hero__meta {
    display: grid;
    gap: 0.35rem;
    justify-items: end;
    text-align: right;
}

.add-round-selector-card,
.add-round-scorecard-card,
.add-round-review-card {
    display: grid;
    gap: 1.5rem;
}

.add-round-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.add-round-selection-column,
.add-round-manual-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface-row);
}

.add-round-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.saved-course-list,
.course-search-results {
    display: grid;
    gap: 0.7rem;
}

.saved-course-chip,
.course-search-result {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.saved-course-chip small,
.course-search-result small {
    color: var(--muted-foreground);
    font-size: 0.78rem;
}

.saved-course-chip:hover,
.course-search-result:hover {
    border-color: hsla(153 70% 22% / 0.45);
    transform: translateY(-1px);
}

.saved-course-chip--active,
.course-search-result--active {
    border-color: hsla(43 70% 50% / 0.4);
    box-shadow: 0 14px 30px -22px hsla(43 70% 28% / 0.4);
}

.course-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.add-round-placeholder {
    border-radius: 0.95rem;
    border: 1px dashed var(--border);
    padding: 1rem;
    color: var(--muted-foreground);
    line-height: 1.65;
}

.selected-course-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.selected-course-preview span {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.76rem;
    margin-bottom: 0.25rem;
}

.selected-course-preview p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.add-round-notice {
    margin-top: 0.75rem;
}

.wizard-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.wizard-step__dot {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--muted);
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.wizard-step__dot.is-active {
    background: var(--gradient-accent);
    color: var(--accent-foreground);
}

.wizard-step__dot.is-complete {
    background: var(--primary);
    color: var(--primary-foreground);
}

.wizard-step__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.wizard-step__label.is-active {
    color: var(--foreground);
}

.wizard-step__line {
    height: 1px;
    flex: 1;
    background: var(--border);
}

.scorecard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.scorecard-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.scorecard-header__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-row);
}

.scorecard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.scorecard-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.scorecard-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--card);
}

.scorecard-table th,
.scorecard-table td {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.scorecard-table thead th {
    color: var(--muted-foreground);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--surface-row);
}

.scorecard-hole-cell {
    display: grid;
    gap: 0.12rem;
}

.scorecard-hole-cell strong {
    font-size: 0.96rem;
}

.scorecard-hole-cell small {
    color: var(--muted-foreground);
    font-size: 0.72rem;
}

.scorecard-input,
.scorecard-select {
    min-width: 5.4rem;
    padding: 0.68rem 0.72rem;
}

.scorecard-toggle-group {
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.scorecard-toggle-box {
    min-width: 4.4rem;
    padding: 0.58rem 0.72rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    background: var(--surface-row);
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 700;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.scorecard-toggle-box:hover {
    transform: translateY(-1px);
    border-color: hsla(153 60% 28% / 0.45);
    color: var(--foreground);
}

.scorecard-toggle-box--active {
    border-color: hsla(153 60% 28% / 0.55);
    background: hsla(153 60% 20% / 0.18);
    color: var(--foreground);
}

.scorecard-toggle-box--danger.scorecard-toggle-box--active {
    border-color: hsla(8 70% 50% / 0.45);
    background: hsla(8 70% 50% / 0.12);
}

.scorecard-na {
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.form-grid-2,
.form-grid-3,
.review-grid {
    display: grid;
    gap: 1rem;
}

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

.form-grid-3,
.review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 0.9rem;
}

.review-grid span {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.upload-zone:hover {
    border-color: hsla(153 70% 22% / 0.5);
    background: var(--surface-row);
}

.upload-zone__icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--muted-foreground);
    margin: 0 auto 1rem;
}

.video-upload-card,
.video-analysis-card {
    display: grid;
    gap: 1.25rem;
}

.video-upload-card__head,
.video-analysis-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-upload-card__notes {
    min-height: 7.5rem;
}

.video-upload-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.video-analysis-shell {
    display: grid;
    gap: 1rem;
}

.video-coach-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-color: color-mix(in srgb, var(--gold) 36%, var(--border));
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--gold) 10%, transparent) 0, transparent 42%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 92%, black) 0%, color-mix(in srgb, var(--surface-row-strong) 94%, black) 100%);
}

.video-coach-main__content,
.video-coach-card__stack {
    display: grid;
    gap: 0.65rem;
}

.video-coach-main__eyebrow,
.video-coach-card__eyebrow {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
}

.video-coach-main__impact,
.video-coach-card__body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: color-mix(in srgb, var(--foreground) 92%, var(--muted-foreground));
}

.video-coach-main__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

.video-coach-main__actions {
    display: grid;
    justify-items: end;
    gap: 0.85rem;
}

.video-coach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.video-coach-card,
.video-coach-drills {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
}

.video-coach-card--progress {
    gap: 1.1rem;
}

.video-priority-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.25rem;
}

.video-priority-list li {
    line-height: 1.65;
}

.video-progress-list {
    display: grid;
    gap: 0.75rem;
}

.video-progress-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-row) 88%, transparent);
}

.video-progress-row__label {
    margin: 0 0 0.3rem;
    font-weight: 700;
    color: var(--foreground);
}

.video-coach-drills__head,
.video-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.video-drill-list--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-drill-card {
    gap: 0.95rem;
    padding: 1.15rem;
}

.video-drill-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.video-drill-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.video-drill-steps {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.video-advanced-details {
    padding: 0;
    overflow: hidden;
}

.video-advanced-details summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.2rem;
    font-weight: 700;
}

.video-advanced-details summary::-webkit-details-marker {
    display: none;
}

.video-advanced-details__body {
    display: grid;
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
    border-top: 1px solid var(--border);
}

.video-analysis-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.video-analysis-note {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid var(--border);
    background: var(--surface-row);
}

.video-analysis-note p {
    color: var(--muted-foreground);
    line-height: 1.65;
}

.video-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.video-analysis-panel {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface-row);
}

.video-analysis-panel__body {
    line-height: 1.7;
}

.video-drill-list {
    display: grid;
    gap: 0.9rem;
}

.video-drill-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.95rem;
    border: 1px solid var(--border);
    background: var(--surface-row);
}

.video-drill-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
}

.video-analysis-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--foreground);
}

.video-analysis-list li {
    line-height: 1.6;
}

.video-feedback-list {
    display: grid;
    gap: 0.75rem;
}

.video-feedback-list div {
    display: grid;
    gap: 0.18rem;
}

.video-feedback-list dt {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.video-feedback-list dd {
    margin: 0;
    line-height: 1.6;
}

.video-comparison-list {
    display: grid;
    gap: 0.75rem;
}

.video-comparison-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-1) 72%, transparent);
}

.video-comparison-row__label {
    margin: 0 0 0.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.btn-secondary--sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
}

.status-pill,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.status-pill--analyzed {
    background: hsla(153 60% 20% / 0.2);
    color: var(--green-glow);
}

.status-pill--pending {
    background: var(--muted);
    color: var(--muted-foreground);
}

.status-pill--warning {
    background: color-mix(in srgb, var(--gold) 14%, transparent);
    color: color-mix(in srgb, var(--gold) 86%, white);
}

.status-pill--drill {
    background: color-mix(in srgb, var(--green-glow) 16%, transparent);
    color: var(--green-glow);
}

.chat-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.chat-plan-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: var(--surface-row-strong);
}

.chat-plan-chip div {
    display: grid;
    gap: 0.12rem;
}

.chat-plan-chip strong {
    font-size: 0.82rem;
}

.chat-plan-chip span {
    color: var(--muted-foreground);
    font-size: 0.74rem;
}

.chat-header__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.chat-notice-wrap {
    max-width: 48rem;
    margin: 0 auto 1rem;
    display: grid;
    gap: 0.75rem;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-align: center;
    max-width: 34rem;
    margin: 0 auto;
}

.chat-empty__badge {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

.chat-suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin-top: 2rem;
}

.chat-suggestion {
    text-align: left;
    padding: 0.95rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chat-suggestion:hover {
    background: var(--surface-row-strong);
    border-color: hsla(153 70% 22% / 0.5);
    color: var(--foreground);
}

.chat-suggestion:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-thread {
    max-width: 48rem;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.chat-row {
    display: flex;
    gap: 0.75rem;
}

.chat-row--user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.chat-avatar--assistant {
    background: var(--gradient-green);
    color: var(--primary-foreground);
}

.chat-bubble {
    max-width: 80%;
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    font-size: 0.92rem;
    line-height: 1.7;
}

.chat-bubble--user {
    background: var(--primary);
    color: var(--primary-foreground);
}

.chat-bubble--assistant {
    background: hsl(150 10% 14% / 0.45);
    border: 1px solid var(--border);
}

.chat-bubble p + p {
    margin-top: 0.5rem;
}

.chat-typing {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.chat-typing span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--muted-foreground);
    animation: pulse 1.2s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-composer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

.chat-composer form {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.chat-composer input {
    flex: 1;
}

.settings-stack,
.account-stack {
    display: grid;
    gap: 2rem;
}

.account-avatar-card {
    justify-content: flex-start;
    gap: 1.25rem;
}

.account-membership-line {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.account-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
}

.settings-group,
.account-card {
    display: grid;
    gap: 1.25rem;
}

.settings-group__title,
.account-card__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.toggle-switch {
    position: relative;
    width: 2.8rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.toggle-switch__track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--muted);
    transition: background-color 160ms ease;
    position: relative;
}

.toggle-switch__track::after {
    content: "";
    position: absolute;
    top: 0.16rem;
    left: 0.16rem;
    width: 1.33rem;
    height: 1.33rem;
    border-radius: 999px;
    background: var(--foreground);
    transition: transform 160ms ease;
}

.toggle-switch input:checked + .toggle-switch__track {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-switch__track::after {
    transform: translateX(1.16rem);
}

.empty-state {
    border-radius: 1rem;
    border: 1px dashed var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    display: grid;
    gap: 0.75rem;
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.loading-state {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--gradient-card);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--gold);
    animation: pulse 1.3s infinite;
}

.info-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.membership-page {
    padding: 1rem 0 2rem;
}

.membership-page__hero {
    margin-bottom: 1.5rem;
}

.membership-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.membership-plan-card {
    display: grid;
    gap: 1.15rem;
    padding: 1.5rem;
}

.membership-plan-card--highlight {
    border-color: hsla(43 70% 50% / 0.42);
    box-shadow: 0 20px 56px hsla(43 70% 14% / 0.16);
}

.membership-plan-card--current {
    box-shadow: inset 0 0 0 1px hsla(153 60% 25% / 0.32);
}

.membership-plan-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.membership-plan-card__status {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
}

.membership-plan-card__tier {
    color: var(--muted-foreground);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.membership-plan-card h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.membership-plan-card__copy {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.membership-plan-card__list--compact {
    gap: 0.55rem;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    border-radius: 0.85rem;
    border: 1px solid hsla(0 65% 50% / 0.35);
    background: hsla(0 65% 50% / 0.92);
    color: white;
    padding: 0.95rem 1.1rem;
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: white;
    font-weight: 700;
    margin-left: 0.75rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.16);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

@media (max-width: 1100px) {
    .feature-grid,
    .course-grid,
    .hero-pillars,
    .membership-pricing-grid,
    .membership-teaser-grid,
    .add-round-selection-grid,
    .scorecard-summary-grid,
    .selected-course-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-split,
    .stats-split,
    .dual-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .app-sidebar {
        display: none;
    }

    .app-mobile-header {
        display: flex;
    }

    .app-mobile-overlay {
        display: block;
        position: fixed;
        inset: 3.5rem 0 0;
        z-index: 60;
        background: var(--surface-mobile-overlay);
        padding: 1rem;
    }

    .app-mobile-overlay__panel {
        display: grid;
        gap: 0.25rem;
    }

    .chat-page {
        height: calc(100vh - 3.5rem);
    }
}

@media (max-width: 720px) {
    .container,
    .page-shell,
    .page-shell--narrow,
    .page-shell--medium {
        width: calc(100% - 1.25rem);
    }

    .public-nav-inner,
    .rounds-header,
    .video-header,
    .page-header-row,
    .form-actions,
    .footer-row,
    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions,
    .public-nav-actions,
    .action-row {
        width: 100%;
    }

    .hero-actions > *,
    .public-nav-actions > * {
        flex: 1;
    }

    .course-search-bar {
        grid-template-columns: 1fr;
    }

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

    .dashboard-hero__actions,
    .add-round-hero__meta {
        justify-content: flex-start;
        justify-items: start;
        text-align: left;
    }

    .feature-grid,
    .course-grid,
    .stats-grid,
    .chat-suggestions,
    .form-grid-2,
    .form-grid-3,
    .review-grid,
    .hero-pillars,
    .membership-pricing-grid,
    .membership-teaser-grid,
    .scorecard-summary-grid,
    .selected-course-preview,
    .add-round-selection-grid {
        grid-template-columns: 1fr;
    }

    .round-row,
    .video-row,
    .recent-round-row,
    .list-row,
    .account-avatar-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .round-row__right,
    .video-row__right {
        width: 100%;
        justify-content: space-between;
    }

    .video-coach-main,
    .video-coach-grid,
    .video-drill-list--primary {
        grid-template-columns: 1fr;
    }

    .video-coach-main__actions,
    .video-drill-card__head {
        justify-items: start;
        justify-content: flex-start;
    }

    .video-progress-row {
        flex-direction: column;
    }

    .round-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .chat-bubble {
        max-width: 100%;
    }

    .chat-composer form {
        flex-direction: column;
    }

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

    .chat-plan-chip {
        margin-left: 0;
    }

    .membership-summary-panel__meter,
    .membership-plan-card__status {
        justify-items: start;
        text-align: left;
    }
}
