:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --black: #000000;
    --gray-900: #111111;
    --gray-800: #1a1a1a;
    --gray-700: #333333;
    --gray-600: #555555;
    --gray-500: #767676;
    --gray-400: #767676;
    --gray-300: #a0a0a0;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html, body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    background: var(--white);
    color: var(--black);
    min-height: 100vh;
}

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

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

.sidebar {
    width: 240px;
    min-width: 240px;
    border-right: 1px solid var(--gray-200);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--white);
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.sidebar-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--black);
    border-radius: 7px;
    flex-shrink: 0;
}

.sidebar-mark-letter {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.sidebar-wordmark {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
}

.sidebar-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-left: 40px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.sidebar-link {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    line-height: 1.4;
    letter-spacing: -0.1px;
}

.sidebar-link:hover {
    background: var(--gray-100);
    color: var(--black);
}

.sidebar-link.active {
    background: var(--gray-100);
    color: var(--black);
    font-weight: 600;
}

.sidebar-bottom {
    margin-top: auto;
}

.main {
    flex: 1;
    margin-left: 240px;
    padding: 40px 48px;
    max-width: 100%;
    min-height: 100vh;
}

.mobile-header {
    display: none;
}

.mobile-menu {
    display: none;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--black);
    border-radius: 12px;
    margin-bottom: 20px;
}

.login-mark-letter {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.login-wordmark {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--black);
    margin-bottom: 6px;
}

.login-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 28px;
}

.login-tab {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    font-family: var(--font-primary);
    letter-spacing: -0.1px;
}

.login-tab:hover { color: var(--gray-700); }
.login-tab.active {
    color: var(--black);
    font-weight: 600;
    border-bottom-color: var(--black);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--black);
    transition: border-color 0.15s;
    outline: none;
    line-height: 1.5;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--black);
}

.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 1px;
}

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

a:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
    border-radius: 2px;
}

.sidebar-link:focus-visible, .mobile-menu a:focus-visible, .mobile-menu button:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 1px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.5;
    font-family: var(--font-primary);
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--gray-300);
    border-radius: 3px;
    background: var(--white);
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--black);
    border-color: var(--black);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--black);
    font-weight: 500;
}

.form-input-error, .form-select-error {
    border-color: #c00;
}

.field-error {
    display: block;
    color: #c00;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.field-hint {
    display: block;
    color: var(--gray-400);
    font-size: 12px;
    margin-top: 4px;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--gray-300);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    width: 100%;
    letter-spacing: -0.1px;
    line-height: 1.4;
}

.btn:hover {
    background: var(--gray-100);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

/* ===== PAGE ELEMENTS ===== */
.hero-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1.2px;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 520px;
    letter-spacing: -0.1px;
}

.section-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 28px 0;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.stat-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--black);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
}

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 10px;
    background: var(--white);
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.history-info { flex: 1; }

.history-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.history-meta {
    font-size: 13px;
    color: var(--gray-400);
}

.history-score {
    text-align: right;
    margin-right: 16px;
}

.history-score-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
}

.history-score-label {
    font-size: 11px;
    color: var(--gray-400);
}

.severity-high {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--black);
    background: var(--gray-200);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.severity-medium {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ===== SCORE DISPLAY ===== */
.score-display {
    text-align: center;
    padding: 40px 0;
}

.score-number {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -4px;
    color: var(--black);
    line-height: 1;
}

.score-suffix {
    font-size: 26px;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: 0;
}

.score-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ===== ASSESSMENT ===== */
.progress-bar-wrap {
    background: var(--gray-100);
    border-radius: 4px;
    height: 6px;
    margin: 12px 0 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--black);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--gray-500);
    letter-spacing: -0.1px;
}

.assessment-section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.section-toggle {
    font-size: 18px;
    color: var(--gray-400);
    transition: transform 0.2s ease;
    line-height: 1;
}

.assessment-section.collapsed .section-toggle {
    transform: rotate(180deg);
}

.section-body {
    transition: none;
}

.assessment-section.collapsed .section-body {
    display: none;
}

.assessment-section.collapsed .section-title {
    margin-bottom: 0;
    border-bottom-color: transparent;
}

.question-item {
    margin-bottom: 22px;
}

.question-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-700);
    margin-bottom: 10px;
    line-height: 1.55;
    letter-spacing: -0.1px;
}

.radio-group {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 0;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: block;
    padding: 9px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    letter-spacing: -0.1px;
}

.radio-option:first-child label {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.radio-option:last-child label {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.radio-option label:hover {
    background: var(--gray-50);
}

.radio-option input[type="radio"]:checked + label {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ===== CHART ===== */
.chart-container {
    width: 100%;
    margin: 16px 0;
}

.chart-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.chart-bar-label {
    width: 200px;
    min-width: 200px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: right;
    letter-spacing: -0.2px;
}

.chart-bar-track {
    flex: 1;
    height: 26px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.chart-bar-value {
    width: 48px;
    min-width: 48px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: -0.3px;
}

/* ===== RECOMMENDATIONS ===== */
.rec-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 12px;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rec-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.2px;
}

.rec-body {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.rec-value {
    font-size: 13px;
    color: var(--gray-400);
    font-style: italic;
}

/* ===== CTA ===== */
.cta-block {
    text-align: center;
    padding: 36px 0;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.cta-sub {
    font-size: 15px;
    color: var(--gray-500);
    letter-spacing: -0.1px;
}

.footer-text {
    font-size: 12px;
    color: var(--gray-300);
    text-align: center;
    margin-top: 48px;
    letter-spacing: 0.2px;
}

/* ===== HOMEPAGE ===== */
.home {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
}

.home-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-nav-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--black);
    border-radius: 7px;
    flex-shrink: 0;
}

.home-nav-mark-letter {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.home-nav-wordmark {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
}

.home-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: -0.1px;
    transition: color 0.15s;
}

.home-nav-link:hover {
    color: var(--black);
}

.home-hero {
    padding: 80px 0 64px;
}

.home-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.home-headline {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -2.5px;
    color: var(--black);
    line-height: 1.08;
    margin-bottom: 24px;
}

.home-subheadline {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 520px;
    letter-spacing: -0.2px;
    margin-bottom: 40px;
}

.home-cta {
    width: auto;
    padding: 14px 32px;
    font-size: 15px;
}

.home-cta-group {
    display: flex;
    gap: 12px;
}

.home-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 0;
}

.home-section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.home-features {
    padding: 64px 0;
}

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

.home-feature-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.home-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.home-feature-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.6;
    letter-spacing: -0.1px;
}

.home-metrics {
    padding: 64px 0;
}

.home-metric-list {
    display: flex;
    flex-direction: column;
}

.home-metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.home-metric-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.3px;
}

.home-metric-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
}

.home-bottom-cta {
    padding: 80px 0;
    text-align: center;
}

.home-bottom-headline {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--black);
    line-height: 1.12;
    margin-bottom: 12px;
}

.home-bottom-sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: 32px;
    letter-spacing: -0.1px;
}

.home-footer {
    padding: 24px 0 40px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 12px;
    color: var(--gray-300);
    letter-spacing: 0.2px;
}

/* ===== FLASH MESSAGES ===== */
.flash-container {
    max-width: 680px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.flash-error {
    background: var(--gray-100);
    color: var(--black);
    border: 1px solid var(--gray-300);
}

.flash-success {
    background: var(--gray-50);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.empty-state {
    text-align: center;
    color: var(--gray-400);
    padding: 56px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
}

/* ===== TRENDS ===== */
.trend-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.trend-stat {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.trend-stat-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--black);
    line-height: 1.2;
}

.trend-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    margin-top: 4px;
}

.trend-change-positive {
    color: var(--black);
}

.trend-change-negative {
    color: var(--gray-400);
}

.trend-change-neutral {
    color: var(--gray-400);
}

.trend-chart-area {
    position: relative;
    width: 100%;
    margin: 24px 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
}

.trend-chart-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.trend-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.trend-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
}

.trend-chart-label-item {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.domain-trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.domain-trend-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.domain-trend-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.domain-trend-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.2px;
    line-height: 1.3;
    flex: 1;
    padding-right: 8px;
}

.domain-trend-change {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.domain-trend-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.domain-trend-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-trend-bar-label {
    font-size: 10px;
    color: var(--gray-400);
    width: 52px;
    min-width: 52px;
    text-align: right;
    font-weight: 500;
}

.domain-trend-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.domain-trend-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.domain-trend-bar-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-600);
    width: 32px;
    min-width: 32px;
}

.trend-timeline {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px 0;
}

.trend-timeline-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
}

.trend-timeline-row:last-child {
    border-bottom: none;
}

.trend-timeline-date {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
    width: 100px;
    min-width: 100px;
}

.trend-timeline-company {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
}

.trend-timeline-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    width: 50px;
    text-align: right;
}

/* ===== MOBILE (max-width 768px) ===== */
@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        padding: 16px 20px;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: 20px;
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 100;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: var(--black);
        border-radius: 7px;
        flex-shrink: 0;
    }

    .mobile-mark-letter {
        font-size: 16px;
        font-weight: 800;
        color: var(--white);
        line-height: 1;
    }

    .mobile-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .mobile-name {
        font-size: 17px;
        font-weight: 700;
        color: var(--black);
        letter-spacing: -0.4px;
        line-height: 1.1;
    }

    .mobile-tagline {
        font-size: 9px;
        font-weight: 500;
        color: var(--gray-500);
        letter-spacing: 2px;
        text-transform: uppercase;
        line-height: 1;
    }

    .mobile-toggle {
        background: none;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        padding: 8px 12px;
        font-size: 18px;
        font-family: var(--font-primary);
        font-weight: 500;
        color: var(--gray-600);
        cursor: pointer;
        line-height: 1;
    }

    .mobile-toggle:hover {
        background: var(--gray-100);
    }

    .mobile-menu {
        display: none;
        padding: 8px 0 16px;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: 16px;
    }

    .mobile-menu.open {
        display: flex;
        gap: 8px;
        z-index: 200;
        position: relative;
    }

    .mobile-menu a, .mobile-menu button {
        flex: 1;
        padding: 11px;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: var(--gray-700);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        background: var(--white);
        cursor: pointer;
        font-family: var(--font-primary);
        text-decoration: none;
        letter-spacing: -0.1px;
    }

    .mobile-menu a:hover, .mobile-menu button:hover {
        background: var(--gray-100);
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .stat-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 16px 10px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

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

    .history-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .history-score {
        text-align: left;
        margin-right: 0;
    }

    .score-number {
        font-size: 56px;
    }

    .score-suffix {
        font-size: 22px;
    }

    .chart-bar-label {
        width: 120px;
        min-width: 120px;
        font-size: 11px;
    }

    .trend-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .trend-stat {
        padding: 14px 8px;
    }


    .trend-stat-value {
        font-size: 22px;
    }

    .domain-trends-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trend-chart-area {
        padding: 16px;
    }

    .trend-chart-svg {
        height: auto;
    }

    .trend-timeline-date {
        width: 70px;
        min-width: 70px;
        font-size: 11px;
    }

    .radio-group {
        flex-direction: column;
        gap: 0;
    }

    .radio-option {
        flex: none;
        width: 100%;
    }

    .radio-option label {
        font-size: 13px;
        padding: 12px 14px;
        text-align: left;
        white-space: normal;
        border-radius: 0;
    }

    .radio-option:first-child label {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .radio-option:last-child label {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .radio-option + .radio-option label {
        border-top: none;
    }

    .question-item {
        margin-bottom: 28px;
    }

    .question-text {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 15px;
    }

    .assessment-section {
        margin-bottom: 32px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-mark {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .login-mark-letter {
        font-size: 22px;
    }

    .login-wordmark {
        font-size: 26px;
    }

    .home {
        padding: 0 20px;
    }

    .home-hero {
        padding: 48px 0 40px;
    }

    .home-headline {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .home-subheadline {
        font-size: 16px;
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-features {
        padding: 48px 0;
    }

    .home-metrics {
        padding: 48px 0;
    }

    .home-metric-name {
        font-size: 15px;
    }

    .home-bottom-cta {
        padding: 56px 0;
    }

    .home-bottom-headline {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .home-cta {
        width: 100%;
    }

    .home-cta-group {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .main {
        padding: 12px 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .score-number {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .score-suffix {
        font-size: 18px;
    }

    .chart-bar-label {
        width: 90px;
        min-width: 90px;
        font-size: 10px;
    }

    .radio-option label {
        font-size: 13px;
        padding: 11px 14px;
    }

    .trend-summary {
        grid-template-columns: 1fr;
    }

    .trend-stat-value {
        font-size: 28px;
    }
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: var(--font-primary);
}

.legal-content {
    padding: 40px 0 60px;
}

.legal-updated {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    font-family: var(--font-primary);
}

.legal-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--black);
    font-family: var(--font-primary);
}

.legal-content h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 32px 0 10px;
    color: var(--black);
    letter-spacing: -0.2px;
    font-family: var(--font-primary);
}

.legal-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--gray-700);
    font-family: var(--font-primary);
}

.legal-content p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 14px;
    font-family: var(--font-primary);
}

.legal-content ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.legal-content li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 6px;
    font-family: var(--font-primary);
}

.legal-content li strong {
    color: var(--gray-700);
    font-weight: 600;
}

.legal-content a {
    color: var(--black);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 0 20px;
    }

    .legal-content {
        padding: 32px 0 48px;
    }

    .legal-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .legal-content h2 {
        font-size: 15px;
        margin: 28px 0 8px;
    }

    .legal-content h3 {
        font-size: 13px;
        margin: 16px 0 6px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
        line-height: 1.7;
    }

    .legal-content ul {
        margin-left: 16px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 0 16px;
    }

    .legal-content {
        padding: 24px 0 40px;
    }

    .legal-title {
        font-size: 24px;
        margin-bottom: 24px;
        letter-spacing: -0.3px;
    }

    .legal-updated {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .legal-content h2 {
        font-size: 14px;
        margin: 24px 0 8px;
    }

    .legal-content h3 {
        font-size: 13px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 13px;
        line-height: 1.7;
    }
}

.pending-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.pending-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: var(--black);
}

.pending-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.7;
    margin-top: 8px;
}

.pending-divider {
    width: 40px;
    height: 1px;
    background: var(--gray-200);
    margin: 24px auto;
}

.pending-meta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
    margin-top: 28px;
}

.btn-outline {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gray-300);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.admin-layout {
    min-height: 100vh;
    background: var(--white);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-left {
    display: flex;
    align-items: center;
}

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

.admin-mark {
    width: 28px;
    height: 28px;
    background: var(--black);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-mark-letter {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.admin-wordmark {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
}

.admin-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    padding: 2px 8px;
    border-radius: 4px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.15s;
}

.admin-header-link:hover {
    color: var(--black);
}

.admin-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

@media (max-width: 768px) {
    .admin-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-label {
        display: none;
    }

    .admin-header-right {
        gap: 14px;
    }

    .admin-header-link {
        font-size: 12px;
    }

    .admin-main {
        padding: 24px 16px 40px;
    }
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.admin-stat {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
}

.admin-stat-value {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.2px;
    color: var(--black);
    line-height: 1;
}

.admin-stat-alert {
    color: #c00;
}

.admin-stat-label {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
}

.admin-table {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase;
    gap: 12px;
}

.admin-table-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    gap: 12px;
}

.admin-table-row:last-child {
    border-bottom: none;
}

.admin-col-name {
    flex: 2;
    min-width: 0;
}

.admin-col-email {
    flex: 2.5;
    min-width: 0;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-col-status {
    flex: 1;
    min-width: 0;
}

.admin-col-date {
    flex: 1.2;
    min-width: 80px;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
}

.admin-col-actions {
    flex: 2;
    min-width: 140px;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.admin-user-fullname {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-company {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
    display: block;
    margin-top: 1px;
}

.admin-badge {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    letter-spacing: 0.2px;
}

.badge-active {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-pending {
    background: #fff3e0;
    color: #e65100;
}

.badge-disabled {
    background: #fce4ec;
    color: #c62828;
}

.btn-approve {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

.btn-approve:hover {
    background: var(--gray-800);
}

.btn-disable {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-disable:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

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

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

    .admin-table-header {
        display: none;
    }

    .admin-table-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 6px;
    }

    .admin-col-name,
    .admin-col-email,
    .admin-col-status,
    .admin-col-date,
    .admin-col-actions {
        flex: none;
        width: 100%;
    }

    .admin-col-actions {
        margin-top: 6px;
    }

    .admin-col-actions .btn {
        flex: 1;
        text-align: center;
    }
}

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

/* ===== ACCOUNT PAGE ===== */
.account-page {
    max-width: 640px;
}

.account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-detail-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    background: var(--white);
}

.account-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.account-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.3px;
    word-break: break-word;
    line-height: 1.4;
}

.account-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.account-status-active {
    color: var(--black);
    background: var(--gray-100);
}

.account-status-pending {
    color: var(--gray-600);
    background: var(--gray-100);
}

.account-status-disabled {
    color: var(--black);
    background: var(--gray-200);
}

.account-password-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.account-password-form {
    max-width: 400px;
}

.account-password-actions {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .account-page {
        max-width: 100%;
    }

    .account-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-detail-card {
        padding: 16px 18px;
    }

    .account-detail-label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .account-detail-value {
        font-size: 14px;
    }

    .account-password-card {
        padding: 20px 16px;
    }

    .account-password-form {
        max-width: 100%;
    }
}
