/* ============================================
   AI Leadership Platform - Design System
   ============================================ */

/* CSS Variables */
:root {
    /* Color Palette - Sophisticated Navy & Amber */
    --navy-950: #0a0f1c;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --navy-500: #64748b;
    --navy-400: #94a3b8;
    --navy-300: #cbd5e1;
    --navy-200: #e2e8f0;
    --navy-100: #f1f5f9;
    --navy-50: #f8fafc;
    
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    
    --rose-600: #e11d48;
    --rose-500: #f43f5e;
    --rose-400: #fb7185;
    
    /* Semantic Colors */
    --primary: var(--amber-500);
    --primary-hover: var(--amber-400);
    --primary-dark: var(--amber-600);
    
    --success: var(--emerald-500);
    --error: var(--rose-500);
    --warning: var(--amber-500);
    
    --text-primary: var(--navy-900);
    --text-secondary: var(--navy-600);
    --text-muted: var(--navy-500);
    --text-inverse: white;
    
    --bg-primary: white;
    --bg-secondary: var(--navy-50);
    --bg-dark: var(--navy-900);
    --bg-darker: var(--navy-950);
    
    --border-light: var(--navy-200);
    --border-medium: var(--navy-300);
    
    /* Typography */
    --font-serif: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgb(245 158 11 / 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   Base Styles
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll on mobile, allow vertical scroll */
body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Auth Page Styles
   ============================================ */

.auth-page {
    min-height: 100vh;
    background: var(--bg-darker);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

/* Brand Panel */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-content {
    max-width: 480px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--amber-500);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--space-3xl);
}

.brand-logo img {
    flex-shrink: 0;
    display: block;
}

.brand-headline {
    font-size: 3.5rem;
    color: white;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.brand-subtext {
    font-size: 1.25rem;
    color: var(--navy-400);
    margin-bottom: var(--space-3xl);
    line-height: 1.7;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    color: var(--amber-400);
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.feature-text strong {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.feature-text span {
    color: var(--navy-400);
    font-size: 0.875rem;
}

.brand-trust {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-trust p {
    color: var(--navy-500);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.brand-trust a {
    color: var(--amber-400);
}

.brand-trust a:hover {
    color: var(--amber-300);
}

/* Auth Forms Panel */
.auth-forms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    background: var(--navy-950);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    background: var(--navy-100);
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-header {
    margin-bottom: var(--space-xl);
}

.form-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.forgot-link {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.form-error,
.form-success {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    display: none;
}

.form-error {
    background: rgba(244, 63, 94, 0.1);
    color: var(--error);
}

.form-error.show,
.form-success.show {
    display: block;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.terms-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-lg);
}

.terms-text a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-900);
    background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber-300) 0%, var(--amber-400) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-full {
    width: 100%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    margin-top: var(--space-md);
}

.btn-text:hover {
    color: var(--text-primary);
}

/* Demo Notice */
.demo-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    color: var(--amber-400);
    font-size: 0.875rem;
}

/* ============================================
   Onboarding Page Styles
   ============================================ */

.onboarding-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.onboarding-container {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.onboarding-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.onboarding-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--navy-800);
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.onboarding-logo img {
    display: block;
    flex-shrink: 0;
}

.onboarding-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.onboarding-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.step-dot {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-500);
    transition: all var(--transition-base);
}

.progress-step.active .step-dot {
    background: var(--amber-500);
    color: var(--navy-900);
}

.progress-step.completed .step-dot {
    background: var(--emerald-500);
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--navy-200);
}

.progress-step.completed + .progress-step .step-line,
.progress-step.completed .step-line {
    background: var(--emerald-500);
}

/* Onboarding Card */
.onboarding-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: var(--space-xl);
}

.step-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.step-header p {
    color: var(--text-secondary);
}

/* Radio/Checkbox Groups */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.option-grid.single-column {
    grid-template-columns: 1fr;
}

.option-item {
    position: relative;
}

.option-item input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.option-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-item input:checked + .option-label {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--amber-500);
}

.option-item input:focus + .option-label {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    color: var(--navy-600);
    flex-shrink: 0;
}

.option-item input:checked + .option-label .option-icon {
    background: var(--amber-500);
    color: var(--navy-900);
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.option-text span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Challenge Pills (multi-select) */
.challenge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.challenge-item {
    position: relative;
}

.challenge-item input {
    position: absolute;
    opacity: 0;
}

.challenge-label {
    display: inline-flex;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenge-item input:checked + .challenge-label {
    background: var(--amber-500);
    color: var(--navy-900);
    font-weight: 500;
}

/* Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--navy-400);
    color: var(--text-primary);
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    background: var(--navy-900);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-next:hover {
    background: var(--navy-800);
}

.btn-next svg {
    transition: transform var(--transition-fast);
}

.btn-next:hover svg {
    transform: translateX(4px);
}

/* ============================================
   Dashboard Styles
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* Top Navigation */
.top-nav {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 0 var(--space-xl);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.nav-brand img {
    display: block;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--amber-600);
    background: rgba(245, 158, 11, 0.08);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--amber-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar[aria-expanded="true"] {
    background: var(--amber-600);
}

/* Profile Menu Dropdown */
.profile-menu {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1000;
    margin-top: var(--space-xs);
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.profile-menu-user {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.profile-menu-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.profile-menu-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-xs) 0;
}

.profile-menu-items {
    padding: var(--space-xs) 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-align: left;
}

.profile-menu-item:hover {
    background: var(--bg-secondary);
}

.profile-menu-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.profile-menu-item:hover svg {
    color: var(--text-primary);
}

.profile-menu-item-danger {
    color: var(--red-600);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
}

.profile-menu-item-danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--red-700);
}

.profile-menu-item-danger svg {
    color: var(--red-600);
}

.profile-menu-item-danger:hover svg {
    color: var(--red-700);
}

/* Dashboard Layout */
.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: var(--space-2xl);
}

.welcome-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.welcome-text h1 {
    font-size: 2.25rem;
    margin-bottom: var(--space-xs);
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.welcome-context {
    display: flex;
    gap: var(--space-sm);
}

.context-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.context-badge svg {
    width: 14px;
    height: 14px;
}

/* Progress Card */
.progress-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.progress-header h3 {
    font-size: 1.125rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-600);
}

.progress-bar {
    height: 12px;
    background: var(--navy-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber-500) 0%, var(--amber-400) 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

/* Frameworks Section */
.frameworks-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--amber-600);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.section-link:hover {
    color: var(--amber-500);
}

/* Framework Cards */
.framework-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.framework-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.framework-card:hover {
    background: var(--navy-100);
    transform: translateX(4px);
}

.framework-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.framework-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.framework-info {
    flex: 1;
    min-width: 0;
}

.framework-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.framework-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.framework-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.not-started {
    background: var(--navy-100);
    color: var(--navy-500);
}

.status-badge.in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber-600);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
}

.framework-score {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Recommendations Card */
.recommendations-card {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    color: white;
}

.recommendations-card h3 {
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.recommendations-card h3 svg {
    color: var(--amber-400);
}

.recommendation-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

.rec-number {
    width: 24px;
    height: 24px;
    background: var(--amber-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-900);
    flex-shrink: 0;
}

.rec-content h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: white;
    margin-bottom: var(--space-xs);
}

.rec-content p {
    font-size: 0.8125rem;
    color: var(--navy-400);
    line-height: 1.4;
}

/* Quick Actions Card */
.quick-actions-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.quick-actions-card h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--navy-100);
}

.action-btn:last-child {
    margin-bottom: 0;
}

.action-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-600);
}

.action-text {
    text-align: left;
}

.action-text strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.action-text span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Assessment Page Styles
   ============================================ */

.assessment-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

.assessment-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.assessment-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--text-primary);
}

.assessment-title h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.assessment-title p {
    color: var(--text-secondary);
}

.assessment-progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.progress-bar-slim {
    flex: 1;
    height: 6px;
    background: var(--navy-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-slim .progress-fill {
    height: 100%;
    background: var(--amber-500);
    transition: width 0.3s ease;
}

/* Question Card */
.question-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--amber-100);
    color: var(--amber-600);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.question-text {
    font-size: 1.375rem;
    font-family: var(--font-serif);
    line-height: 1.5;
    margin-bottom: var(--space-2xl);
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.answer-option {
    position: relative;
}

.answer-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.answer-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.answer-option input:checked + .answer-label {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--amber-500);
}

.answer-option input:focus + .answer-label {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.answer-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--navy-300);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.answer-option input:checked + .answer-label .answer-indicator {
    background: var(--amber-500);
    border-color: var(--amber-500);
}

.answer-option input:checked + .answer-label .answer-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
}

.answer-text {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Question Navigation */
.question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

/* ============================================
   Results Page Styles
   ============================================ */

.results-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    color: white;
}

.results-score {
    margin-bottom: var(--space-xl);
}

.score-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-lg);
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--amber-500);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 408; /* 2 * PI * 65 */
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 1s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.score-value span {
    font-size: 1.5rem;
    color: var(--navy-400);
}

.results-hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.results-hero p {
    color: var(--navy-400);
    font-size: 1.125rem;
}

/* Dimension Breakdown */
.dimensions-section {
    max-width: 800px;
    margin: calc(var(--space-3xl) * -1) auto 0;
    padding: 0 var(--space-xl) var(--space-2xl);
    position: relative;
    z-index: 1;
}

.dimensions-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.dimensions-card h2 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.dimension-item {
    margin-bottom: var(--space-lg);
}

.dimension-item:last-child {
    margin-bottom: 0;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.dimension-name {
    font-weight: 500;
    color: var(--text-primary);
}

.dimension-score {
    font-weight: 600;
    color: var(--amber-600);
}

.dimension-bar {
    height: 8px;
    background: var(--navy-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.dimension-fill.high {
    background: var(--emerald-500);
}

.dimension-fill.medium {
    background: var(--amber-500);
}

.dimension-fill.low {
    background: var(--rose-500);
}

/* ============================================
   Playbook Page Styles
   ============================================ */

.playbook-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.playbook-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
    padding: var(--space-3xl) var(--space-xl);
    color: white;
}

.playbook-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.playbook-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: 0.875rem;
    color: var(--navy-400);
}

.playbook-breadcrumb a {
    color: var(--navy-400);
}

.playbook-breadcrumb a:hover {
    color: var(--amber-400);
}

.playbook-title {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.playbook-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playbook-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.playbook-title-text h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.playbook-title-text p {
    color: var(--navy-400);
    font-size: 1.125rem;
    line-height: 1.6;
}

.playbook-personalized {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--amber-500);
}

.playbook-personalized svg {
    color: var(--amber-400);
    flex-shrink: 0;
}

.playbook-personalized span {
    font-size: 0.9375rem;
    color: var(--amber-200);
}

/* Playbook Content */
.playbook-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

.content-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.content-section h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.content-section li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* Personalized Callout */
.personalized-callout {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.callout-header svg {
    color: var(--amber-500);
}

.callout-header strong {
    color: var(--amber-600);
    font-size: 0.9375rem;
}

.personalized-callout p {
    margin-bottom: 0;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .auth-brand {
        display: flex;
        padding: var(--space-xl) var(--space-lg);
        min-height: auto;
    }
    
    .brand-content {
        max-width: 100%;
    }
    
    .brand-headline {
        font-size: 2rem;
    }
    
    .brand-subtext {
        font-size: 1rem;
    }
    
    .brand-features {
        margin-bottom: var(--space-xl);
    }
    
    .auth-forms {
        padding: var(--space-xl);
        min-height: auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Auth Page Mobile Fixes */
    .auth-page {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .auth-container {
        min-height: auto;
        overflow-y: visible;
    }
    
    .auth-brand {
        min-height: auto;
        overflow-y: visible;
    }
    
    .auth-forms {
        min-height: auto;
        overflow-y: visible;
    }
    
    /* Navigation */
    .nav-container {
        height: 64px;
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-brand {
        font-size: 0.875rem;
    }
    
    .nav-brand img {
        width: 28px;
        height: 28px;
    }
    
    /* Dashboard */
    .welcome-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .welcome-text h1 {
        font-size: 1.75rem;
    }
    
    .welcome-context {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .context-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .progress-card {
        padding: var(--space-lg);
    }
    
    .progress-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .stat-item {
        min-width: calc(50% - var(--space-md));
    }
    
    .framework-list {
        gap: var(--space-md);
    }
    
    .framework-card {
        padding: var(--space-md);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .framework-icon {
        width: 48px;
        height: 48px;
    }
    
    .framework-icon img {
        width: 32px;
        height: 32px;
    }
    
    .framework-status {
        align-items: flex-start;
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .recommendations-card {
        padding: var(--space-lg);
    }
    
    .recommendation-item {
        padding: var(--space-sm);
    }
    
    .quick-actions-card {
        padding: var(--space-lg);
    }
    
    .action-btn {
        padding: var(--space-sm);
    }
    
    /* Assessment Page */
    .assessment-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .assessment-header {
        padding: var(--space-lg);
    }
    
    .assessment-title h1 {
        font-size: 1.5rem;
    }
    
    .question-card {
        padding: var(--space-lg);
    }
    
    .question-text {
        font-size: 1.125rem;
    }
    
    .answer-label {
        padding: var(--space-md);
    }
    
    .question-nav {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .question-nav button {
        width: 100%;
    }
    
    /* Results */
    .results-hero {
        padding: var(--space-xl) var(--space-md);
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .dimensions-section {
        padding: 0 var(--space-md) var(--space-xl);
    }
    
    .dimensions-card {
        padding: var(--space-lg);
    }
    
    /* Playbook Page */
    .playbook-hero {
        padding: var(--space-xl) var(--space-md);
    }
    
    .playbook-hero-content {
        max-width: 100%;
    }
    
    .playbook-title {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .playbook-icon {
        width: 64px;
        height: 64px;
    }
    
    .playbook-icon img {
        width: 48px;
        height: 48px;
    }
    
    .playbook-title-text h1 {
        font-size: 1.75rem;
    }
    
    .playbook-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .content-section {
        padding: var(--space-lg);
    }
    
    .content-section h2 {
        font-size: 1.25rem;
    }
    
    /* Frameworks Page */
    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-xs);
        margin-bottom: var(--space-lg);
    }
    
    .filter-tab {
        font-size: 0.875rem;
        padding: var(--space-xs) var(--space-sm);
        white-space: nowrap;
    }
    
    .framework-card-large {
        padding: var(--space-lg);
    }
    
    .framework-card-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .framework-icon-large {
        width: 64px;
        height: 64px;
    }
    
    .framework-icon-large img {
        width: 48px;
        height: 48px;
    }
    
    .framework-card-info h3 {
        font-size: 1.25rem;
    }
    
    .framework-card-actions {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
    }
    
    /* Assessments Page */
    .assessment-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .stat-card {
        padding: var(--space-lg);
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    .assessment-card {
        padding: var(--space-lg);
    }
    
    .assessment-card-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .assessment-icon {
        width: 56px;
        height: 56px;
    }
    
    .assessment-icon img {
        width: 40px;
        height: 40px;
    }
    
    .assessment-card-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .assessment-result {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    /* Progress Page */
    .framework-progress-grid {
        grid-template-columns: 1fr;
    }
    
    .framework-progress-item {
        padding: var(--space-md);
    }
    
    .assessment-history-item {
        padding: var(--space-md);
    }
    
    .history-item-header {
        flex-wrap: wrap;
    }
    
    .history-item-dimensions {
        flex-direction: column;
    }
    
    .history-item-actions {
        flex-direction: column;
    }
    
    /* Onboarding */
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .challenge-grid {
        gap: var(--space-xs);
    }
    
    .challenge-label {
        font-size: 0.875rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .step-nav {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .step-nav button {
        width: 100%;
    }
    
    /* General */
    .btn-primary,
    .btn-secondary,
    .btn-next {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 44px; /* Touch target size */
    }
    
    /* Touch-friendly spacing */
    .form-group {
        margin-bottom: var(--space-md);
    }
    
    input,
    select,
    textarea,
    button {
        min-height: 44px; /* iOS touch target recommendation */
    }
}

/* ============================================
   Frameworks Page Styles
   ============================================ */

.filter-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-tab {
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    border-color: var(--navy-400);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: white;
}

.frameworks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.framework-card-large {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.framework-card-large:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.framework-card-header {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.framework-icon-large {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.framework-icon-large img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.framework-card-info {
    flex: 1;
    min-width: 0;
}

.framework-card-info h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.framework-card-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.framework-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.framework-category {
    display: inline-flex;
    padding: var(--space-xs) var(--space-md);
    background: var(--navy-100);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--navy-700);
}

.framework-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.framework-score-display {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.framework-score-display strong {
    color: var(--amber-600);
    font-size: 1.125rem;
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
}

/* ============================================
   Assessments Page Styles
   ============================================ */

.assessment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--amber-600);
    margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.assessments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.assessment-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.assessment-card:hover {
    box-shadow: var(--shadow-lg);
}

.assessment-card-header {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.assessment-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy-600);
}

.assessment-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.assessment-card-info {
    flex: 1;
    min-width: 0;
}

.assessment-card-info h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.assessment-card-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.assessment-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.assessment-questions,
.assessment-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.framework-badge {
    display: inline-flex;
    padding: var(--space-xs) var(--space-md);
    background: var(--amber-100);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--amber-700);
}

.assessment-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.assessment-result {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.result-score {
    display: flex;
    flex-direction: column;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--amber-600);
}

.score-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.result-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.assessment-progress-indicator {
    padding: var(--space-sm) var(--space-md);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--amber-600);
}

/* ============================================
   Progress Page Styles
   ============================================ */

.framework-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.framework-progress-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.framework-progress-header {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.framework-progress-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.framework-progress-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.framework-progress-info {
    flex: 1;
    min-width: 0;
}

.framework-progress-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.framework-progress-status {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.framework-progress-score {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--navy-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber-500) 0%, var(--amber-400) 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.score-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amber-600);
    min-width: 45px;
    text-align: right;
}

.framework-progress-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.btn-text-small {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.btn-text-small:hover {
    color: var(--amber-600);
}

.assessment-history {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.assessment-history-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.history-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.history-item-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy-600);
}

.history-item-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.history-item-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-item-score {
    flex-shrink: 0;
}

.score-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-600);
}

.history-item-dimensions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.dimension-mini {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.dimension-name-mini {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.dimension-score-mini {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amber-600);
}

.history-item-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

/* ============================================
   Empty State Styles
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-state svg {
    color: var(--navy-400);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .auth-brand {
        padding: var(--space-lg) var(--space-md);
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .brand-logo {
        margin-bottom: var(--space-xl);
        justify-content: center;
    }
    
    .brand-logo span {
        font-size: 1rem;
    }
    
    .brand-content {
        text-align: center;
    }
    
    .brand-features {
        align-items: center;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .brand-headline {
        font-size: 2.25rem;
        margin-bottom: var(--space-md);
        line-height: 1.3;
        text-align: center;
    }
    
    .brand-subtext {
        font-size: 0.9375rem;
        margin-bottom: var(--space-xl);
        line-height: 1.6;
        text-align: center;
    }
    
    .brand-features {
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .feature-item {
        gap: var(--space-sm);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-text strong {
        font-size: 0.9375rem;
    }
    
    .feature-text span {
        font-size: 0.8125rem;
    }
    
    .auth-forms {
        padding: var(--space-lg) var(--space-md);
    }
    
    .auth-card {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    /* Auth Page */
    .auth-brand {
        padding: var(--space-md);
    }
    
    .brand-logo {
        margin-bottom: var(--space-lg);
        justify-content: center;
    }
    
    .brand-logo img {
        width: 40px;
        height: 40px;
    }
    
    .brand-content {
        text-align: center;
    }
    
    .brand-headline {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .brand-subtext {
        font-size: 0.875rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .brand-features {
        align-items: center;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .auth-card {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    /* Onboarding */
    .onboarding-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .onboarding-header h1 {
        font-size: 1.75rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step-line {
        width: 40px;
    }
    
    .onboarding-card {
        padding: var(--space-lg);
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    /* Dashboard */
    .dashboard-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .progress-card {
        padding: var(--space-md);
    }
    
    .progress-header h3 {
        font-size: 1rem;
    }
    
    .progress-percent {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .frameworks-section {
        padding: var(--space-md);
    }
    
    .section-header h2 {
        font-size: 1.125rem;
    }
    
    /* Assessment */
    .assessment-container {
        padding: var(--space-md);
    }
    
    .assessment-header {
        padding: var(--space-md);
    }
    
    .assessment-title h1 {
        font-size: 1.25rem;
    }
    
    .question-card {
        padding: var(--space-md);
    }
    
    .question-number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    /* Playbook */
    .playbook-hero {
        padding: var(--space-lg) var(--space-md);
    }
    
    .playbook-title-text h1 {
        font-size: 1.5rem;
    }
    
    .playbook-content {
        padding: var(--space-md);
    }
    
    .content-section {
        padding: var(--space-md);
    }
    
    .content-section h2 {
        font-size: 1.125rem;
    }
    
    .content-section h3 {
        font-size: 1rem;
    }
    
    /* Frameworks */
    .framework-card-large {
        padding: var(--space-md);
    }
    
    .framework-card-info h3 {
        font-size: 1.125rem;
    }
    
    /* Assessments */
    .stat-card .stat-value {
        font-size: 1.75rem;
    }
    
    .assessment-card {
        padding: var(--space-md);
    }
    
    .assessment-card-info h3 {
        font-size: 1.125rem;
    }
    
    /* Progress */
    .framework-progress-item {
        padding: var(--space-sm);
    }
    
    .assessment-history-item {
        padding: var(--space-sm);
    }
    
    /* Navigation improvements for small screens */
    .nav-brand span {
        font-size: 0.8125rem;
    }
    
    /* Ensure all interactive elements are touch-friendly */
    a,
    button,
    input[type="button"],
    input[type="submit"],
    .btn-primary,
    .btn-secondary,
    .btn-next,
    .filter-tab,
    .auth-tab,
    .option-label,
    .challenge-label,
    .answer-label {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
    }
    
    /* Improve touch targets */
    .framework-card,
    .assessment-card,
    .framework-progress-item,
    .assessment-history-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.1);
    }
    
    /* Better scrolling on mobile */
    .filter-tabs,
    .challenge-grid {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve text readability */
    p,
    span,
    label {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    /* Better spacing for small screens */
    .dashboard-content,
    .assessment-container,
    .playbook-content,
    .onboarding-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

