/* AuthENDication - CVE.art Installation
   Temporally-Aware Password Security
   
   Design: Institutional security aesthetic with mortality undertones
   Colors: Inherited from cve.art landing page
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* Core palette from cve.art */
    --primary-blue: #00629B;
    --primary-blue-dark: #004d7a;
    --primary-blue-light: #0077b6;
    --accent-red: #C00000;
    --accent-red-dark: #990000;
    --accent-gold: #FFD700;
    --dark: #333;
    --dark-footer: #1a1a1a;
    
    /* Lifespan colors */
    --life-full: #2a9d8f;
    --life-good: #52b788;
    --life-warning: #e9c46a;
    --life-danger: #f4a261;
    --life-critical: #e76f51;
    --life-dead: #C00000;
    
    /* UI Colors */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #ddd;
    --border-dark: #ccc;
    
    /* Typography */
    --font-main: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-md) 0;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-md) 0; }

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

pre {
    background: var(--dark);
    color: #f0f0f0;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 0 0 var(--space-md) 0;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow { max-width: 800px; }
.container--wide { max-width: 1400px; }

/* Header */
.header {
    background: var(--primary-blue);
    color: white;
    padding: var(--space-lg) 0;
    border-bottom: 5px solid var(--accent-red);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.header__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__logo-icon {
    font-family: var(--font-mono);
    background: var(--accent-gold);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.header__parent {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.header__parent a {
    color: white;
    opacity: 0.8;
}

.header__parent a:hover {
    opacity: 1;
    text-decoration: none;
}

.header__nav {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.header__nav a {
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.header__nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.header__nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    flex: 1;
    padding: var(--space-2xl) 0;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.card--highlight { border-left: 4px solid var(--primary-blue); }
.card--warning { border-left: 4px solid var(--accent-red); background: #fff9f9; }
.card--success { border-left: 4px solid var(--life-full); background: #f9fffc; }
.card--large { grid-column: span 2; }

.card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card__title-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Forms */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-label--required::after {
    content: ' *';
    color: var(--accent-red);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-main);
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 155, 0.15);
}

.form-input::placeholder { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary-blue); color: white; }
.btn--primary:hover { background: var(--primary-blue-dark); color: white; }
.btn--secondary { background: white; color: var(--primary-blue); border-color: var(--primary-blue); }
.btn--secondary:hover { background: var(--primary-blue); color: white; }
.btn--danger { background: var(--accent-red); color: white; }
.btn--danger:hover { background: var(--accent-red-dark); color: white; }
.btn--ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-color); }
.btn--ghost:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn--sm { padding: var(--space-xs) var(--space-md); font-size: 0.875rem; }
.btn--lg { padding: var(--space-md) var(--space-xl); font-size: 1.125rem; }

.btn-group {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Alert */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert--info { background: #e8f4fc; border: 1px solid var(--primary-blue-light); color: var(--primary-blue-dark); }
.alert--warning { background: #fff3e0; border: 1px solid var(--life-danger); color: #bf360c; }
.alert--error { background: #ffebee; border: 1px solid var(--accent-red); color: var(--accent-red-dark); }
.alert--success { background: #e8f5e9; border: 1px solid var(--life-full); color: #1b5e20; }

.alert__icon { font-size: 1.25rem; flex-shrink: 0; }
.alert__content { flex: 1; }
.alert__title { font-weight: 600; margin-bottom: var(--space-xs); }

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    white-space: nowrap;
}

.data-table tr:hover td { background: #f8f8f8; }
.data-table--compact td { padding: var(--space-xs) var(--space-sm); }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.divider span { padding: 0 var(--space-md); }

/* ===== AUTHENDICATION-SPECIFIC STYLES ===== */

/* Password Analysis Display */
.password-analysis {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Lifespan Display */
.lifespan-display { margin-bottom: var(--space-lg); }

.lifespan-display__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-sm);
}

.lifespan-display__label {
    font-weight: 500;
    color: var(--text-secondary);
}

.lifespan-display__value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary-blue);
}

.lifespan-display__dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Lifespan Bar */
.lifespan-bar {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.lifespan-bar__fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease, background 0.3s ease;
    background: var(--life-dead);
}

.lifespan-bar__fill--instant { background: var(--life-dead); width: 2%; }
.lifespan-bar__fill--seconds { background: var(--life-critical); }
.lifespan-bar__fill--minutes { background: var(--life-danger); }
.lifespan-bar__fill--hours { background: var(--life-warning); }
.lifespan-bar__fill--days { background: var(--life-warning); }
.lifespan-bar__fill--weeks { background: var(--life-good); }
.lifespan-bar__fill--months { background: var(--life-good); }
.lifespan-bar__fill--years { background: var(--life-full); }

/* Crack Analysis */
.crack-analysis { margin-bottom: var(--space-lg); }

.crack-analysis h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* Composition Grid */
.composition-breakdown h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.composition-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.composition-item.active {
    color: var(--life-full);
    border-color: var(--life-full);
    background: rgba(42, 157, 143, 0.1);
}

.composition-item__icon { font-weight: 700; }

.composition-item--length .composition-item__icon,
.composition-item--charset .composition-item__icon {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary-blue);
}

/* Lifespan Examples */
.lifespan-examples {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.lifespan-example {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border-left: 4px solid;
}

.lifespan-example--terrible { border-color: var(--life-dead); }
.lifespan-example--bad { border-color: var(--life-critical); }
.lifespan-example--ok { border-color: var(--life-warning); }
.lifespan-example--good { border-color: var(--life-good); }
.lifespan-example--great { border-color: var(--life-full); }

.lifespan-example__password {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.lifespan-example__time {
    font-weight: 600;
    text-align: right;
}

.lifespan-example__rating {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* ===== DASHBOARD STYLES ===== */

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Session Bar */
.session-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.session-bar__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.session-bar__icon { font-size: 1.25rem; }

.session-bar__countdown {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.session-bar__label {
    font-size: 0.875rem;
    color: #aaa;
}

.session-bar__timer {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--life-full);
    min-width: 120px;
    text-align: right;
}

.session-bar__timer.expired {
    color: var(--accent-red);
    animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Health Display */
.health-display {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.health-display__gauge {
    flex-shrink: 0;
}

.health-gauge {
    width: 180px;
    height: 180px;
}

.health-gauge__bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 12;
}

.health-gauge__fill {
    fill: none;
    stroke: var(--life-full);
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.health-gauge__fill.warning { stroke: var(--life-warning); }
.health-gauge__fill.danger { stroke: var(--life-critical); }
.health-gauge__fill.dead { stroke: var(--life-dead); }

.health-gauge__text {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    fill: var(--text-primary);
    text-anchor: middle;
}

.health-gauge__label {
    font-size: 0.875rem;
    fill: var(--text-muted);
    text-anchor: middle;
}

.health-display__details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.health-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.health-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-stat__value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
}

/* Attack Progress */
.attack-progress {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-lg);
}

.attack-progress h4 {
    margin-bottom: var(--space-sm);
}

.attack-scenario {
    margin-bottom: var(--space-md);
}

.attack-scenario__header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.attack-scenario__name { color: var(--text-secondary); }
.attack-scenario__percent { font-family: var(--font-mono); font-weight: 600; }
.attack-scenario__eta { font-size: 0.75rem; color: var(--text-muted); }

.attack-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.attack-bar__fill {
    height: 100%;
    background: var(--life-full);
    border-radius: 4px;
    transition: width 1s linear;
}

.attack-bar__fill--warning { background: var(--life-warning); }
.attack-bar__fill--danger { background: var(--life-critical); }

/* Password History */
.password-history {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.history-item:last-child { border-bottom: none; }
.history-item--current { background: rgba(0, 98, 155, 0.05); }

.history-item__index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 30px;
}

.history-item__details { flex: 1; }

.history-item__lifespan {
    font-weight: 600;
    font-size: 0.875rem;
}

.history-item__date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge--active { background: var(--life-full); color: white; }
.badge--expired { background: var(--bg-tertiary); color: var(--text-muted); }

/* New Password Preview */
.new-password-preview {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.new-password-preview__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.new-password-preview__row:last-child { margin-bottom: 0; }

.lifespan-change { font-weight: 600; }
.lifespan-change--positive { color: var(--life-full); }
.lifespan-change--negative { color: var(--accent-red); }

/* Death Banner */
.death-banner {
    background: repeating-linear-gradient(
        45deg,
        var(--accent-red),
        var(--accent-red) 10px,
        #000 10px,
        #000 20px
    );
    padding: 4px;
}

.death-banner__inner {
    background: var(--dark);
    color: var(--accent-red);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    animation: flash-death 0.5s ease-in-out infinite;
}

@keyframes flash-death {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.death-banner__icon { font-size: 1.25rem; }

/* Death Modal */
.death-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.death-modal__content {
    background: var(--dark);
    border: 3px solid var(--accent-red);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 500px;
    text-align: center;
    color: white;
    animation: scale-in 0.3s ease;
}

@keyframes scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.death-modal__icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: pulse-skull 1s ease-in-out infinite;
}

@keyframes pulse-skull {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.death-modal__content h2 {
    color: var(--accent-red);
    margin-bottom: var(--space-md);
}

.death-modal__content p {
    color: #aaa;
    margin-bottom: var(--space-lg);
}

.death-modal__stats {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.death-stat {
    text-align: center;
}

.death-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.death-stat__value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
}

body.session-dead {
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--dark-footer);
    color: white;
    padding: var(--space-xl) 0;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__links a {
    color: #aaa;
    font-size: 0.875rem;
}

.footer__links a:hover { color: white; }

.footer__copyright {
    color: #666;
    font-size: 0.75rem;
}

.footer__disclaimer {
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #333;
}

/* Artist Statement */
.statement-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    margin: calc(-1 * var(--space-2xl)) 0 var(--space-2xl) 0;
    text-align: center;
}

.statement-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.statement-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.statement-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.statement-content h2 {
    margin-top: var(--space-2xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-blue);
}

.statement-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.statement-content blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    font-style: normal;
}

.statement-content ul {
    padding-left: var(--space-lg);
}

.statement-content li {
    margin-bottom: var(--space-sm);
}

/* Utilities */
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 0.875rem; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .card--large {
        grid-column: span 1;
    }
    
    .health-display {
        flex-direction: column;
        text-align: center;
    }
    
    .health-display__details {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .header__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header__nav {
        justify-content: center;
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .session-bar {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .session-bar__countdown {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .composition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lifespan-example {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .lifespan-example__time,
    .lifespan-example__rating {
        text-align: left;
    }
    
    .death-modal__stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}
