/* CoachingPlatform Design System — "Human-Centered Digital Sanctuary"
   Tokens are defined in tokens.css. This file contains base styles + components.
   ============================================================================ */

/* ── Legacy compatibility aliases (tokens.css is the source of truth) ── */
:root {
    --secondary-rgb: var(--success-rgb);
    --danger-rgb: var(--error-rgb);
    --info-rgb: 123, 143, 162;
    --body-bg-rgb: var(--light-rgb);
    --dark-rgb: 44, 40, 37;

    --primary-hover: var(--primary-accent-dark);
    --primary-01: var(--hover-bg);
    --primary-02: var(--active-bg);

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --text-light: var(--text-tertiary);
    --sidebar-bg: var(--card-bg);

    --input-bg: var(--card-bg);
    --input-border: var(--border-color);
    --input-focus-border: var(--primary-accent);
    --input-focus-shadow: var(--focus-ring);

    --shadow-xs: var(--shadow-sm);
    --shadow-card: var(--shadow-sm);

    --transition-normal: var(--transition-base);

    --sidebar-width: 240px;
    --header-height: 3rem;
}

[data-theme="dark"] {
    --input-bg: var(--surface-bg);
    --sidebar-bg: var(--card-bg);
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ============================================
   FOCUS OUTLINE MANAGEMENT
   Remove focus outlines from non-interactive elements
   while preserving them for keyboard navigation on
   interactive elements using :focus-visible
   ============================================ */

/* Remove focus outline from headings (Blazor sets focus on h1 for accessibility) */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none;
}

/* Remove focus outline from main content containers */
main:focus,
article:focus,
section:focus,
div:focus,
.app-content:focus,
[role="main"]:focus {
    outline: none;
}

/* Ensure only keyboard navigation shows focus rings on interactive elements */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: var(--lh-body);
    margin: 0;
    font-size: 1rem;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ============================================
   TYPOGRAPHY - Matching GrowthEdit scale
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin: 0 0 0.375rem;
}

h1 { font-size: clamp(1.2857rem, 4vw, 1.7143rem); font-weight: 600; line-height: var(--lh-h1); letter-spacing: var(--ls-snug); }
h2 { font-size: clamp(1.1429rem, 3vw, 1.4286rem); font-weight: 600; line-height: var(--lh-h2); letter-spacing: var(--ls-slight); }
h3 { font-size: clamp(1rem, 2.5vw, 1.2857rem); font-weight: 600; line-height: var(--lh-h3); letter-spacing: var(--ls-slight); }
h4 { font-size: clamp(1rem, 2vw, 1.1429rem); font-weight: 500; line-height: var(--lh-h4); letter-spacing: var(--ls-normal); }
h5 { font-size: 1rem; font-weight: 500; line-height: var(--lh-h4); }
h6 { font-size: 1rem; font-weight: 500; line-height: var(--lh-h4); }

p {
    margin: 0 0 0.5rem;
    color: var(--text-color);
    font-size: var(--fs-sm);
}

small, .text-sm {
    font-size: var(--fs-sm);
}

.text-xs {
    font-size: var(--fs-xs);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* ============================================
   LAYOUT
   ============================================ */
.app-content {
    padding: var(--spacing-xl);
}

/* ============================================
   CARDS - Compact & Clean
   ============================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    font-family: var(--font-family);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    background: rgba(var(--light-rgb), 0.3);
}

.card-body {
    padding: 1.25rem;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    line-height: 1.5;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(var(--light-rgb), 0.3);
    font-family: var(--font-family);
}

/* ============================================
   BUTTONS - Compact & Modern
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
    background: rgba(var(--light-rgb), 0.8);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
    padding: 0.25rem 0.5rem;
}

.btn-ghost:hover {
    background: rgba(var(--light-rgb), 0.8);
    color: var(--text-color);
}

.btn-danger {
    background: rgb(var(--danger-rgb));
    color: #ffffff;
    border-color: rgb(var(--danger-rgb));
}

.btn-danger:hover {
    background: rgba(var(--danger-rgb), 0.9);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: var(--fs-sm);
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: var(--fs-lg);
}

/* ============================================
   FORM CONTROLS - Compact
   ============================================ */
.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: var(--fs-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.4375rem 0.625rem;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    color: var(--text-color);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:hover {
    border-color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 4.5rem;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--fs-base);
}

.form-check-input {
    width: 0.9375rem;
    height: 0.9375rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.switch-track {
    position: relative;
    display: block;
    width: 2.5rem;
    height: 1.375rem;
    border-radius: 999px;
    background: var(--border-color);
    transition: background var(--transition-base);
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.switch input:checked + .switch-track {
    background: var(--primary-accent);
}

.switch input:checked + .switch-track .switch-thumb {
    transform: translateX(1.125rem);
}

.switch input:focus-visible + .switch-track {
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

/* Validation */
.form-control.valid {
    border-color: rgb(var(--success-rgb));
}

.form-control.invalid {
    border-color: rgb(var(--danger-rgb));
}

.validation-message {
    font-size: var(--fs-xs);
    color: rgb(var(--danger-rgb));
    margin-top: 0.25rem;
}

/* ============================================
   TABLES - Compact
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-base);
}

.table th,
.table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    background: rgba(var(--light-rgb), 0.5);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

/* ============================================
   BADGES - Compact
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
}

.badge-primary {
    background: var(--primary-01);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(var(--success-rgb), 0.1);
    color: rgb(var(--success-rgb));
}

.badge-warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: rgb(var(--warning-rgb));
}

.badge-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: rgb(var(--danger-rgb));
}

.badge-neutral {
    background: rgba(var(--light-rgb), 0.8);
    color: var(--text-muted);
}

.badge-archived {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

/* ============================================
   ALERTS - Compact
   ============================================ */
.alert {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(var(--success-rgb), 0.08);
    color: rgb(var(--success-rgb));
    border-color: rgba(var(--success-rgb), 0.15);
}

.alert-danger {
    background: rgba(var(--danger-rgb), 0.08);
    color: rgb(var(--danger-rgb));
    border-color: rgba(var(--danger-rgb), 0.15);
}

.alert-warning {
    background: rgba(var(--warning-rgb), 0.08);
    color: rgb(var(--warning-rgb));
    border-color: rgba(var(--warning-rgb), 0.15);
}

.alert-info {
    background: rgba(var(--info-rgb), 0.08);
    color: rgb(var(--info-rgb));
    border-color: rgba(var(--info-rgb), 0.15);
}

/* ============================================
   AUTH PAGES - Split Panel Layout
   ============================================ */

.auth-page {
    display: flex;
    min-height: 100vh;
}

/* ── Left Brand Panel ── */

.auth-brand-panel {
    width: 42%;
    min-width: 340px;
    background: linear-gradient(170deg, var(--auth-panel-dark) 0%, var(--auth-panel-mid) 45%, var(--auth-panel-light) 100%);
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,0,0,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.auth-brand-logo .rzi {
    font-size: 1.5rem;
}

.auth-brand-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.auth-brand-quote {
    margin-bottom: 2rem;
}

.auth-brand-quote blockquote {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.65rem;
    line-height: 1.45;
    color: #fff;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.auth-brand-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.auth-brand-quote .cite-title {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.01em;
    margin-top: 0.15rem;
    color: rgba(255,255,255,0.45);
}

.auth-brand-divider {
    width: 3rem;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}

.auth-brand-tagline {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.7);
    margin: 0 0 2rem 0;
    max-width: 320px;
}

.auth-brand-steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.step-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.auth-brand-footer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ── Right Form Panel ── */

.auth-form-panel {
    flex: 1;
    display: flex;
    padding: 3rem;
    background: var(--card-bg);
    overflow-y: auto;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

/* Mobile-only brand (hidden on desktop) */
.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.auth-mobile-brand .rzi {
    color: var(--primary-color);
}

/* ── Auth Typography ── */

.auth-title {
    font-size: var(--fs-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0 0 0.375rem;
    letter-spacing: var(--ls-snug);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: var(--fs-md);
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

/* ── Auth Form ── */

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-label {
    font-size: var(--fs-base);
    margin-bottom: 0.375rem;
}

.auth-form .form-control {
    padding: 0.5625rem 0.75rem;
}

.auth-form .form-check {
    margin-bottom: 1rem;
}

.auth-form .btn-primary,
.auth-form .btn-outline {
    padding: 0.5625rem 1rem;
    margin-top: 0.25rem;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

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

.password-toggle .eye-off {
    display: none;
}

.password-toggle.showing .eye-on {
    display: none;
}

.password-toggle.showing .eye-off {
    display: block;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.form-link {
    font-size: var(--fs-sm);
    color: var(--primary-color);
}

.form-link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(var(--light-rgb), 0.5);
    border-color: var(--text-muted);
}

.auth-footer-text {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: var(--fs-base);
    color: var(--text-muted);
}

/* ── Tenant Type Selector ── */

.tenant-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tenant-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.125rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.tenant-option:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.tenant-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.tenant-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-bg);
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.tenant-option:hover .tenant-icon {
    background: var(--primary-light);
    color: var(--primary-color);
}

.tenant-option.selected .tenant-icon {
    background: var(--primary-color);
    color: #fff;
}

.tenant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.tenant-label {
    font-weight: 600;
    font-size: var(--fs-base);
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.tenant-description {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.35;
}

/* ── Auth Confirmation & Status Pages ── */

.confirmation-container {
    text-align: center;
    padding: 1.5rem 0;
}

.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-color: var(--primary-01);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.confirmation-icon.success {
    background-color: rgba(var(--success-rgb), 0.1);
    color: rgb(var(--success-rgb));
}

.confirmation-icon.error {
    background-color: rgba(var(--error-rgb), 0.1);
    color: rgb(var(--error-rgb));
}

.confirmation-icon.warning {
    background-color: rgba(var(--warning-rgb), 0.1);
    color: rgb(var(--warning-rgb));
}

.confirmation-container .btn-primary {
    padding: 0.5625rem 1rem;
}

.confirmation-tips {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}

.tip-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.tip-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Auth Responsive ── */

@media (max-width: 1024px) {
    .auth-brand-panel {
        width: 38%;
        min-width: 300px;
        padding: 2rem;
    }

    .auth-brand-quote blockquote {
        font-size: 1.4rem;
    }

    .auth-form-panel {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .auth-container {
        max-width: 400px;
    }

    .tenant-type-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: var(--fs-lg);
    }

    .auth-subtitle {
        font-size: var(--fs-base);
    }
}

/* ============================================
   THEME TOGGLE - Compact
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.theme-toggle:hover {
    background: var(--primary-01);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   TYPOGRAPHY UTILITY CLASSES
   ============================================ */
/* Font Sizes — at 14px root */
.fs-xs { font-size: var(--fs-xs); }      /* 12px - badges, tags, captions */
.fs-sm { font-size: var(--fs-sm); }      /* 14px - body default, helper text */
.fs-base { font-size: var(--fs-base); }  /* 14px - body text, labels, inputs */
.fs-md { font-size: var(--fs-md); }      /* 16px - subheadings, emphasis */
.fs-lg { font-size: var(--fs-lg); }      /* 20px - section titles, h3 */
.fs-xl { font-size: var(--fs-xl); }      /* 24px - page titles, h2 */

/* Font Weights */
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }

/* Text Colors */
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary-color); }
.text-success { color: rgb(var(--success-rgb)); }
.text-danger { color: rgb(var(--danger-rgb)); }
.text-warning { color: rgb(var(--warning-rgb)); }
.text-info { color: rgb(var(--info-rgb)); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Styles */
.text-uppercase { text-transform: uppercase; letter-spacing: 0.02em; }
.text-capitalize { text-transform: capitalize; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Line Heights */
.lh-tight { line-height: 1.25; }
.lh-normal { line-height: 1.5; }
.lh-relaxed { line-height: 1.75; }

/* ============================================
   UTILITIES
   ============================================ */

.bg-primary { background-color: var(--primary-color); }
.bg-light { background-color: rgb(var(--light-rgb)); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* ============================================
   PROFILE COMPONENTS
   ============================================ */

/* Profile Page Layout */
.profile-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1rem;
    align-items: start;
}

/* Right Sidebar */
.profile-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Profile Header Card */
.profile-header-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    font-family: var(--font-family);
}

.profile-header-card .profile-cover {
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
}

.profile-header-card .profile-header-content {
    padding: 0 1.25rem 1.25rem;
    margin-top: -40px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 3px solid var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.profile-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: rgb(var(--success-rgb));
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.profile-name {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
    color: var(--text-color);
}

.verified-badge {
    font-size: 1.25rem;
    color: #1d9bf0;
    vertical-align: middle;
    margin-left: 0.25rem;
    cursor: default;
}

.profile-title {
    font-size: var(--fs-base);
    color: var(--text-muted);
    margin: 0;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin-top: 0.5rem;
}

.profile-location svg,
.profile-location .location-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.profile-contact-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin-top: 0.25rem;
}

.profile-contact-info svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Profile Stats Row */
.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-stat-value {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-color);
}

.profile-stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

/* Profile Section */
.profile-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-family);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section-title {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.profile-section-title svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Profile Bio */
.profile-bio {
    font-size: var(--fs-base);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.profile-bio strong {
    color: var(--primary-color);
}

/* Contact Info List */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-base);
    color: var(--text-color);
}

.contact-info-item svg,
.contact-info-item .contact-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* Skill Pills / Tags */
.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    border-radius: 9999px;
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    transition: all var(--transition-fast);
}

.skill-pill:hover {
    background: rgba(var(--primary-rgb), 0.12);
}

.skill-pill.secondary {
    background: rgba(var(--light-rgb), 0.6);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Profile Completion */
.profile-completion {
    padding: 1.25rem;
    background: rgba(var(--primary-rgb), 0.04);
    font-family: var(--font-family);
}

.profile-completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-completion-text {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    color: var(--text-color);
}

.profile-completion-percent {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--primary-color);
}

.profile-completion-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.profile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.profile-completion-link {
    font-size: var(--fs-sm);
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.profile-completion-link:hover {
    text-decoration: underline;
}

/* ============================================
   PROFILE SETUP WIZARD
   ============================================ */
.wizard-container {
    min-height: calc(100vh - var(--header-height) - 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
}

.wizard-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.wizard-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.wizard-skip {
    font-size: var(--fs-base);
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.wizard-skip:hover {
    color: var(--primary-color);
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 760px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 0 0.25rem;
}

.wizard-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    z-index: 1;
}

.wizard-step.active .wizard-step-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.wizard-step.completed .wizard-step-dot {
    background: rgb(var(--success-rgb));
    border-color: rgb(var(--success-rgb));
    color: white;
}

.wizard-step-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wizard-step.active .wizard-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: rgb(var(--success-rgb));
}

/* Connector line between steps */
.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.wizard-step.completed:not(:last-child)::after {
    background: rgb(var(--success-rgb));
}

/* Wizard Content Card */
.wizard-content {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-family: var(--font-family);
}

.wizard-content-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(var(--primary-rgb), 0.03);
}

.wizard-content-title {
    font-family: var(--font-family);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.wizard-content-subtitle {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    color: var(--text-muted);
    margin: 0;
}

.wizard-content-body {
    padding: 1.5rem;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    line-height: 1.5;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: rgba(var(--light-rgb), 0.3);
}

.wizard-footer-left {
    display: flex;
    gap: 0.5rem;
}

.wizard-footer-right {
    display: flex;
    gap: 0.5rem;
}

/* Completion Banner */
.completion-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.completion-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.completion-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.completion-banner-text h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.125rem 0;
}

.completion-banner-text p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
}

.completion-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.completion-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.completion-banner-dismiss:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Profile Main Content */
.profile-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-content: start;
}

/* Profile Card (for main content) */
.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    font-family: var(--font-family);
    margin-bottom: 1.25rem;
}

.profile-card:last-child {
    margin-bottom: 0;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-card-title {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-body {
    padding: 1.25rem;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    line-height: 1.5;
}

/* Profile View Layout */
.profile-view-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-view-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-view-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-view-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-view-value {
    font-size: var(--fs-base);
    color: var(--text-color);
    line-height: 1.5;
}

/* Anchors in profile-view cells (LinkedIn / Website) — the base rule above
   overrides native link styling, so re-apply it explicitly for <a> elements. */
a.profile-view-value {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

a.profile-view-value:hover {
    text-decoration: underline;
}

/* Sidebar Cards (compact) */
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-top: 1.25rem;
    font-family: var(--font-family);
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-card-title {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card-body {
    padding: 1.25rem;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    line-height: 1.5;
}

/* Quick Stats Cards */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    padding: 1rem;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(var(--light-rgb), 0.4);
    border-radius: var(--radius-md);
    text-align: center;
}

.quick-stat-value {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--primary-color);
}

.quick-stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* List Items */
.profile-list-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
}

.profile-list-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.profile-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--light-rgb), 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-list-content {
    flex: 1;
    min-width: 0;
}

.profile-list-name {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.profile-list-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Goal/Progress Items */
.goal-item {
    padding: 0.875rem;
    background: rgba(var(--light-rgb), 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.goal-item + .goal-item {
    margin-top: 0.625rem;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.goal-title {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.goal-description {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-progress-bar {
    flex: 1;
    height: 5px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.goal-progress-text {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
}

/* Certification Items */
.cert-item {
    padding: 0.875rem;
    background: rgba(var(--light-rgb), 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.cert-item + .cert-item {
    margin-top: 0.625rem;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.cert-name {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.cert-org {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
}

.cert-dates {
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-top: 0.375rem;
}

/* Availability Display */
.availability-grid {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.availability-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.availability-day {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-color);
    min-width: 85px;
}

.availability-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.availability-slot {
    font-size: var(--fs-xs);
    padding: 0.25rem 0.5rem;
    background: rgba(var(--success-rgb), 0.1);
    color: rgb(var(--success-rgb));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--success-rgb), 0.2);
}

/* Activity Feed */
.activity-feed {
    font-family: var(--font-family);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.activity-feed * {
    font-family: var(--font-family);
}

.activity-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.activity-feed-title {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.activity-feed-content {
    max-height: 500px;
    overflow-y: auto;
}

.activity-feed-footer {
    display: flex;
    justify-content: center;
    padding: 0.625rem;
    border-top: 1px solid var(--border-light);
    background: rgba(var(--light-rgb), 0.3);
}

.activity-feed-footer .btn {
    font-family: var(--font-family);
}

.activity-feed-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(var(--light-rgb), 0.3);
}

.activity-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.activity-tab:hover {
    color: var(--text-color);
}

.activity-tab.active {
    color: var(--primary-color);
}

.activity-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.activity-feed-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(var(--light-rgb), 0.3);
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

.activity-avatar.coach {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: rgb(var(--success-rgb));
}

.activity-avatar.system {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: rgb(var(--warning-rgb));
}

.activity-avatar.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: rgb(var(--success-rgb));
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.activity-text {
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

.activity-text strong {
    font-weight: 600;
}

.activity-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.activity-text a:hover {
    text-decoration: underline;
}

.activity-time {
    display: block;
    font-family: var(--font-family);
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-top: 0.25rem;
}

.activity-description {
    display: block;
    font-family: var(--font-family);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin: 0.125rem 0 0;
    line-height: 1.4;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.activity-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.activity-action:hover {
    color: var(--primary-color);
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    font-family: var(--font-family);
    font-size: var(--fs-xs);
    font-weight: 500;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.activity-badge.success {
    background: rgba(var(--success-rgb), 0.1);
    color: rgb(var(--success-rgb));
}

.activity-badge.warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: rgb(var(--warning-rgb));
}

/* Empty State */
.profile-empty {
    text-align: center;
    padding: 1.5rem 1rem;
}

.profile-empty-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    opacity: 0.4;
}

.profile-empty-text {
    font-size: var(--fs-base);
    color: var(--text-muted);
    margin: 0;
}

/* Profile Form Sections */
.form-section-title {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Profile Responsive */
@media (max-width: 1400px) {
    .profile-layout {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 1200px) {
    .profile-layout {
        grid-template-columns: 260px 1fr;
    }

    .profile-main {
        grid-template-columns: 1fr;
    }

    .profile-right-sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-header-card {
        max-width: 400px;
        margin: 0 auto 1rem;
    }
}

@media (max-width: 640px) {
    .profile-page {
        padding: 0.75rem;
    }

    .profile-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .profile-stat {
        flex: 1;
        min-width: 60px;
    }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    html {
        font-size: 13px;
    }

    .auth-card {
        padding: 1rem;
    }

    .app-content {
        padding: 0.75rem;
    }

    .card-header,
    .card-body {
        padding: 0.625rem;
    }

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

/* ============================================
   FLUENT UI OVERRIDES
   ============================================ */
fluent-button {
    --neutral-fill-rest: var(--input-bg);
    --neutral-fill-hover: rgba(var(--light-rgb), 0.8);
    --neutral-stroke-rest: var(--border-color);
    --neutral-foreground-rest: var(--text-color);
    --control-corner-radius: var(--radius-md);
}

fluent-button::part(control) {
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
    gap: 0.375rem;
}

fluent-text-field::part(root),
fluent-text-area::part(root),
fluent-number-field::part(root),
fluent-select::part(root) {
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* ============================================
   SCROLLBAR - Modern & Subtle
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   BLAZOR ERROR BOUNDARY
   ============================================ */
.blazor-error-boundary {
    background: rgb(var(--danger-rgb));
    padding: 0.75rem;
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: rgb(var(--warning-rgb));
    padding: 0.75rem;
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 1000;
    border-radius: var(--radius-md);
    display: none;
    font-size: 1rem;
}

#blazor-error-ui[style*="display: block"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   GOALS SYSTEM STYLES
   ============================================ */

/* Goal Card */
.goal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.goal-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.goal-card-overdue {
    border-left: 3px solid rgb(var(--danger-rgb));
}

.goal-card-completed {
    opacity: 0.85;
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.goal-card-badges {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.goal-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.goal-card-title {
    font-size: var(--fs-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.goal-card-description {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.goal-card-milestones,
.goal-card-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.goal-card-motivation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.motivation-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--primary-01);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.motivation-tag-more {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--border-light);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.goal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

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

.goal-card-actions-right {
    display: flex;
    gap: 0.125rem;
    margin-left: auto;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: var(--radius-md, 0.375rem);
}

.btn-ghost {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn-ghost:hover {
    opacity: 1;
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.06);
}

.btn-ghost-danger:hover {
    opacity: 1;
    background: rgba(var(--danger-rgb, 239, 68, 68), 0.08);
}

/* Goal Progress Bar */
.goal-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.goal-progress-fill.progress-success {
    background: linear-gradient(90deg, rgb(var(--success-rgb)) 0%, #4ade80 100%);
}

.goal-progress-fill.progress-good {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.goal-progress-fill.progress-medium {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
}

.goal-progress-fill.progress-danger {
    background: linear-gradient(90deg, rgb(var(--danger-rgb)) 0%, #f87171 100%);
}

.goal-progress-text {
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    min-width: 2.5rem;
    text-align: right;
}

/* Motivation Progress Summary */
.motivation-progress-summary {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.motivation-progress-header {
    margin-bottom: 1rem;
}

.motivation-progress-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 0.25rem 0;
}

.motivation-progress-header p {
    margin: 0;
    font-size: var(--fs-sm);
}

.motivation-progress-empty {
    padding: 1rem;
    text-align: center;
    background: var(--border-light);
    border-radius: var(--radius-md);
}

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

.motivation-progress-item {
    padding: 0.75rem;
    background: var(--body-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.motivation-progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.motivation-progress-tag {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    font-size: var(--fs-sm);
}

.motivation-progress-count {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.motivation-progress-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.motivation-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.motivation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.motivation-progress-percent {
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    min-width: 2.5rem;
    text-align: right;
}

.motivation-progress-details {
    font-size: var(--fs-xs);
}

/* Framework Badges */
.framework-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: var(--fs-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.framework-smart {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.framework-grow {
    background: rgba(16, 185, 129, 0.1);
    color: rgb(16, 185, 129);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.framework-woop {
    background: rgba(168, 85, 247, 0.1);
    color: rgb(168, 85, 247);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Additional Badge Variants */
.badge-info {
    background: rgba(var(--info-rgb), 0.1);
    color: rgb(var(--info-rgb));
}

.badge-secondary {
    background: rgba(var(--secondary-rgb), 0.1);
    color: rgb(var(--secondary-rgb));
}

.badge-accent {
    background: rgba(168, 85, 247, 0.1);
    color: rgb(168, 85, 247);
}

.badge-neutral {
    background: rgba(var(--light-rgb), 0.8);
    color: var(--text-muted);
}

/* Goals Dashboard */
.goals-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.goals-header h1 {
    margin: 0;
}

.goals-header p {
    margin: 0.25rem 0 0;
}

.goals-header-actions {
    display: flex;
    gap: 0.5rem;
}

.goals-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.goals-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.goals-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.goals-empty h3 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.goals-empty p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

/* Goal Detail Page */
.goal-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .goal-detail {
        grid-template-columns: 1fr;
    }
}

.goal-detail-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-detail-header {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.goal-detail-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.goal-detail-title h1 {
    margin: 0;
    font-size: var(--fs-xl);
}

.goal-detail-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.goal-detail-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.goal-detail-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.goal-stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.goal-stat-value {
    font-size: var(--fs-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.goal-stat-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Framework Display */
.framework-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.framework-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.framework-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.framework-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.framework-item-label {
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.framework-item-value {
    font-size: var(--fs-base);
    color: var(--text-color);
    line-height: 1.5;
}

/* Milestones Timeline */
.milestones-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.milestone-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--light-rgb), 0.3);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.milestone-item:hover {
    background: rgba(var(--light-rgb), 0.5);
}

.milestone-item.completed {
    opacity: 0.7;
}

.milestone-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.milestone-checkbox:hover {
    border-color: var(--primary-color);
}

.milestone-item.completed .milestone-checkbox {
    background: rgb(var(--success-rgb));
    border-color: rgb(var(--success-rgb));
}

.milestone-content {
    flex: 1;
    min-width: 0;
}

.milestone-title {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.milestone-item.completed .milestone-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.milestone-date {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Check-in History */
.checkins-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.checkin-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.checkin-item:last-child {
    border-bottom: none;
}

.checkin-mood {
    font-size: 1.5rem;
    line-height: 1;
}

.checkin-content {
    flex: 1;
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.checkin-progress {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

.checkin-date {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.checkin-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.checkin-text strong {
    color: var(--text-color);
}

.checkin-feedback {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

.checkin-feedback-label {
    font-size: var(--fs-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Behavior Tracker */
.behavior-tracker {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.behavior-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(var(--warning-rgb), 0.1) 0%, rgba(var(--danger-rgb), 0.1) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.behavior-streak-icon {
    font-size: 2rem;
}

.behavior-streak-count {
    font-size: var(--fs-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.behavior-streak-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.behavior-stats {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.behavior-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.behavior-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--border-light);
}

.behavior-day.logged {
    background: rgb(var(--success-rgb));
}

.behavior-day.today {
    border: 2px solid var(--primary-color);
}

/* Check-in Modal */
.checkin-modal .mood-selector {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

.mood-option {
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.mood-option:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.mood-option.selected {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(var(--primary-rgb), 0.1);
}

/* Notification Panel */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: rgb(var(--danger-rgb));
    color: white;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.notification-panel-header h3 {
    margin: 0;
    font-size: var(--fs-base);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: rgba(var(--light-rgb), 0.5);
}

.notification-item.unread {
    background: rgba(var(--primary-rgb), 0.03);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.celebration {
    background: linear-gradient(135deg, rgba(var(--warning-rgb), 0.2) 0%, rgba(var(--success-rgb), 0.2) 100%);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-bottom: 0.125rem;
}

.notification-message {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Goal Creation Wizard */
.goal-wizard {
    max-width: 700px;
    margin: 0 auto;
}

.goal-wizard-step-content {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.goal-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .goal-type-selector {
        grid-template-columns: 1fr;
    }
}

.goal-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.goal-type-option:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.02);
}

.goal-type-option.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.goal-type-option-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.goal-type-option-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.goal-type-option-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.framework-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .framework-selector {
        grid-template-columns: 1fr;
    }
}

.framework-option {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.framework-option:hover {
    border-color: var(--primary-color);
}

.framework-option.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.framework-option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.framework-option-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.framework-option-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Engagement Card */
.engagement-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

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

.engagement-participants {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.engagement-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

.engagement-info h4 {
    margin: 0;
    font-size: var(--fs-base);
}

.engagement-info p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.engagement-stats {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* Framework Form Styles */
.framework-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.framework-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.framework-form-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.framework-form .form-group {
    margin-bottom: 0;
}

.framework-form .form-group.mb-0 {
    margin-bottom: 0;
}

.framework-form .form-label {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.25rem;
}

.framework-form .form-helper {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

/* Framework Letter Highlight */
.framework-letter {
    font-weight: var(--font-weight-semibold);
    font-size: 1.125em;
}

.framework-letter.smart,
.smart-framework .framework-letter {
    color: rgb(59, 130, 246);
}

.framework-letter.grow,
.grow-framework .framework-letter {
    color: rgb(16, 185, 129);
}

.framework-letter.woop,
.woop-framework .framework-letter {
    color: rgb(168, 85, 247);
}

/* Implementation Intention (WOOP) */
.implementation-intention {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
}

.implementation-intention-label {
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-semibold);
    color: rgb(168, 85, 247);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.implementation-intention-text {
    font-size: var(--fs-base);
    color: var(--text-color);
    font-style: italic;
    line-height: 1.5;
}

/* Wizard Step Indicators */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.wizard-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-semibold);
    background: var(--border-color);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.wizard-step.active .wizard-step-number {
    background: var(--primary-color);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: rgb(var(--success-rgb));
    color: white;
}

.wizard-step-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: none;
}

@media (min-width: 768px) {
    .wizard-step-label {
        display: block;
    }
}

.wizard-step.active .wizard-step-label {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
}

.wizard-step-connector {
    width: 24px;
    height: 2px;
    background: var(--border-color);
}

.wizard-step.completed + .wizard-step-connector,
.wizard-step-connector.completed {
    background: rgb(var(--success-rgb));
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.wizard-navigation-start {
    justify-content: flex-end;
}

.wizard-navigation-end {
    justify-content: space-between;
}

/* Review Step Styles */
.review-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.review-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-section-title {
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.review-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    min-width: 100px;
}

.review-item-value {
    color: var(--text-muted);
    flex: 1;
}

/* Milestone Editor */
.milestone-editor-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--light-rgb), 0.3);
    border-radius: var(--radius-md);
}

.milestone-editor-item .form-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0;
}

.milestone-editor-item .form-group {
    margin-bottom: 0;
}

/* Text Utilities */
.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: rgb(var(--danger-rgb));
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

/* Form Helper Text */
.form-helper {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Dialog/Modal Styles */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dialog-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-container.dialog-lg {
    max-width: 700px;
}

.dialog-container.dialog-xl {
    max-width: 900px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.dialog-title {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: var(--font-weight-semibold);
}

.dialog-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.dialog-close:hover {
    background: rgba(var(--light-rgb), 0.8);
    color: var(--text-color);
}

.dialog-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

/* Mood Selector */
.mood-selector {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

.mood-option {
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
}

.mood-option:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.mood-option.selected {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(var(--primary-rgb), 0.1);
}

/* Progress Slider */
.progress-slider-container {
    padding: 1rem 0;
}

.progress-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.progress-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.progress-slider-value {
    text-align: center;
    font-size: var(--fs-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Reflection Prompt */
.reflection-prompt {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    font-style: italic;
    color: var(--text-muted);
}

.reflection-prompt fluent-icon,
.reflection-prompt svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Rich Text Editor */

/* Tag Selector */
.tag-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    min-height: 32px;
}

.available-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.available-tags-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: var(--fs-sm);
    font-weight: var(--font-weight-medium);
    border-radius: 999px;
    transition: all var(--transition-fast);
}

.tag-pill.selected {
    background: var(--primary-color);
    color: white;
}

.tag-pill.available {
    background: rgba(var(--light-rgb), 0.8);
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    cursor: pointer;
}

.tag-pill.available:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    margin-left: 0.125rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Rich Text Display (read-only) */
.rich-text-display {
    line-height: 1.6;
}

.rich-text-display ul,
.rich-text-display ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.rich-text-display li {
    margin: 0.25rem 0;
}

/* Enrichment attribution */
.attributed-list li {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
}

.insight-source {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--primary-accent, #6366f1);
    opacity: 0.75;
}

/* === Cropper.js overrides (profile picture crop) === */

/* Circular crop guide */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

/* Dim the area outside the crop circle */
.cropper-modal {
    background: rgba(0, 0, 0, 0.7);
}

/* Hide the default dashed lines and resize handles */
.cropper-dashed,
.cropper-point,
.cropper-line {
    display: none !important;
}

/* ============================================
   ADMIN — Admin Management UI
   ============================================ */

.admin-page {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-page-title {
    font-size: var(--fs-xl);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journey-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.journey-row:hover {
    background: var(--surface-light);
}

.journey-row + .journey-row {
    border-top: 1px solid var(--border-light);
}

.journey-row .form-check-input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.journey-row.is-locked {
    cursor: default;
}

.journey-row.is-locked:hover {
    background: transparent;
}

.journey-row.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.journey-row.is-disabled:hover {
    background: transparent;
}

.journey-row-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.journey-row-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.journey-row-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.journey-row-tag {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 0.05rem 0.45rem;
    border-radius: var(--radius-full);
}

.journey-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.notif-master {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-light);
}

.notif-master-title {
    display: block;
    font-weight: var(--font-weight-semibold);
}

.notif-master-desc {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.notif-type-list {
    padding: 0.5rem 1.25rem 1rem;
}

.notif-type-list.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.notif-disabled-hint {
    margin: 0.5rem 1.25rem 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ── SideNav section label ── */
.sidenav-section-label {
    padding: 1rem 1rem 0.25rem;
    font-size: 0.65rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ── Stats Grid ── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
}

.admin-stat-card:hover {
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-md);
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    color: var(--text-color);
}

.admin-stat-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.admin-stat-card--warning { border-left: 3px solid var(--warning-color); }
.admin-stat-card--success { border-left: 3px solid var(--success-color); }
.admin-stat-card--danger { border-left: 3px solid var(--error-color); }
.admin-stat-card--info { border-left: 3px solid var(--primary-accent); }

/* ── Admin Table ── */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-light);
    white-space: nowrap;
}

.admin-table-sortable {
    cursor: pointer;
    user-select: none;
}

.admin-table-sortable:hover {
    color: var(--text-color);
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--hover-bg);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── User cell with avatar ── */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

/* ── Badges ── */
.admin-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    background: var(--surface-light);
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-badge--active {
    background: rgba(var(--success-rgb), 0.12);
    color: var(--success-color);
}

.admin-badge--pending {
    background: rgba(var(--warning-rgb), 0.12);
    color: var(--warning-color);
}

.admin-badge--suspended {
    background: rgba(var(--error-rgb), 0.12);
    color: var(--error-color);
}

.admin-badge--inactive {
    background: var(--hover-bg);
    color: var(--text-muted);
}

.admin-badge--admin {
    background: rgba(var(--info-rgb), 0.12);
    color: var(--primary-accent);
}

/* ── Admin two-column layout ── */
.admin-two-col {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.admin-left-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-right-panel {
    min-width: 0;
}

/* ── Admin Action Bar (profile viewer) ── */
.admin-action-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* ── Activity Timeline ── */
.admin-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    position: relative;
}

.admin-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.25rem;
    bottom: -0.5rem;
    width: 1px;
    background: var(--border-color);
}

.admin-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-accent);
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.admin-timeline-content {
    flex: 1;
    min-width: 0;
}

/* ── Filter Bar ── */
.admin-filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: end;
}

.admin-filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0 0.75rem;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.admin-filter-search input {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    outline: none;
    flex: 1;
    color: var(--text-color);
}

.admin-filter-search .rzi {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.admin-filter-select {
    max-width: 200px;
}

.admin-filter-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-filter-dates .form-label {
    margin: 0;
    white-space: nowrap;
}

.admin-filter-dates .form-control {
    max-width: 160px;
}

/* ── Pagination ── */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.admin-pagination-info {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ── Profile avatar display (read-only viewers) ── */
.profile-avatar-display {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
    margin: 0 auto;
}

.profile-avatar-display .profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-display .profile-avatar-initials {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
}

/* ── Admin Identity Banner ── */
.admin-identity-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.admin-identity-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-accent);
    color: #fff;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

.admin-identity-avatar .profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-identity-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
    line-height: 1.3;
}

.admin-identity-email {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.admin-identity-info {
    flex: 1;
    min-width: 0;
}

.admin-identity-meta {
    flex-shrink: 0;
    text-align: right;
}

/* ── Admin Tabs ── */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.25rem;
    margin-top: 1rem;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab--active {
    color: var(--primary-accent);
    border-bottom-color: var(--primary-accent);
}

.admin-tab-content {
    /* no extra styles needed — full width by default */
}

/* ── Admin Account Cards (centered column for Account tab) ── */
.admin-account-cards {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Responsive: Admin ── */
@media (max-width: 1200px) {
    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

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

    .admin-filter-bar {
        flex-direction: column;
    }

    .admin-filter-search {
        max-width: 100%;
    }

    .admin-filter-select {
        max-width: 100%;
    }

    .admin-identity-banner {
        flex-direction: column;
        text-align: center;
    }

    .admin-identity-meta {
        text-align: center;
    }

    .admin-tabs {
        overflow-x: auto;
    }
}

.agreement-preview {
    line-height: 1.6;
}

.agreement-preview h2 {
    font-size: var(--fs-xl);
    margin-bottom: 0.75rem;
}

.agreement-preview h3 {
    font-size: var(--fs-lg);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.agreement-preview ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.agreement-preview li {
    margin-bottom: 0.25rem;
}

/* Full-screen blocking interstitial: covers the whole app until the coach accepts. */
.coe-interstitial {
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow-y: auto;
    background: var(--body-bg);
}

/* ── Shared page layout (sponsor & standalone pages) ── */
.page-container { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.page-subtitle { color: var(--text-muted); margin: 0.25rem 0 0; font-size: 0.875rem; }
.empty-state-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.empty-state-card h3 { margin: 0; font-size: 1.125rem; }
.empty-state-card p { margin: 0; max-width: 400px; }
.loading-container { text-align: center; padding: 3rem; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.btn-disabled { opacity: 0.6; pointer-events: none; }

/* ── Sponsor home reporting snapshot ── */
.report-snapshot { display: flex; gap: 1rem; padding: 0.5rem 0; }
.report-snapshot .snap-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.875rem;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
.report-snapshot .snap-num { font-size: 1.5rem; font-weight: 600; color: var(--text-color); line-height: 1; }
.report-snapshot .snap-unit { font-size: 1rem; color: var(--text-tertiary); }
.report-snapshot .snap-den { font-size: 1rem; color: var(--text-tertiary); }
.report-snapshot .snap-label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
@media (max-width: 560px) { .report-snapshot { flex-direction: column; } }
