:root {
    /* Color Palette - Medical & Trustworthy */
    --health-bg: #0a0e14;
    --health-card: #151b23;
    --health-accent: #00f2ff;
    --health-accent-soft: rgba(0, 242, 255, 0.1);
    --health-success: #00ff9d;
    --health-warning: #ffb800;
    --health-danger: #ff4d4d;
    --health-text: #e6edf3;
    --health-text-dim: #8b949e;
    --health-border: #30363d;
    --health-glow: 0 0 20px rgba(0, 242, 255, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--health-bg);
    color: var(--health-text);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Kiosk Layout */
.kiosk-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: var(--space-md);
}

/* Background Atmosphere */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.kiosk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    margin-bottom: var(--space-lg);
}

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

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--health-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--health-glow);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--health-accent);
}

.status-bar {
    display: flex;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--health-text-dim);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--health-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--health-success);
}

/* Hero Section / Ambient Mode */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
    max-width: 800px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--health-text-dim);
    margin: var(--space-md) 0 var(--space-lg);
    max-width: 600px;
}

/* Interactive Elements */
.btn {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--health-accent);
    color: var(--health-bg);
    box-shadow: var(--health-glow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
}

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

.btn-outline:hover {
    border-color: var(--health-accent);
    background: var(--health-accent-soft);
}

/* Dashboard Grid */
.scan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.scan-card {
    background: var(--health-card);
    border: 1px solid var(--health-border);
    padding: var(--space-md);
    border-radius: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.scan-card:hover {
    border-color: var(--health-accent);
    transform: translateY(-5px);
}

.scan-card.active {
    border-color: var(--health-accent);
    background: linear-gradient(135deg, var(--health-card) 0%, var(--health-accent-soft) 100%);
}

.scan-icon {
    width: 48px;
    height: 48px;
    color: var(--health-accent);
    margin-bottom: var(--space-sm);
}

.scan-label {
    font-weight: 600;
    font-size: 1.25rem;
}

.scan-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--health-accent);
}

.scan-status {
    font-size: 0.9rem;
    color: var(--health-text-dim);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--health-border);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.badge.future {
    color: var(--health-warning);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

/* Progress Section */
.scan-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--health-border);
    border-radius: 10px;
    margin: var(--space-lg) 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--health-accent);
    box-shadow: 0 0 10px var(--health-accent);
    transition: width 0.5s ease;
}

/* Animated Elements */
.pulse {
    animation: pulse 2s infinite;
}

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

.waveform {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
}

.waveform-bar {
    flex: 1;
    background: var(--health-accent);
    height: 20%;
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { height: 20%; }
    50% { height: 80%; }
}

/* UI Modules Specifics */
.instruction-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.instruction-visual {
    width: 300px;
    height: 300px;
    margin: var(--space-md) auto;
    background: var(--health-card);
    border: 2px dashed var(--health-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-humanoid {
    width: 120px;
    height: 180px;
    border: 2px solid var(--health-accent);
    border-radius: 40px 40px 10px 10px;
    position: relative;
}

/* Footer Stats */
.kiosk-footer {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--health-border);
    font-size: 0.9rem;
    color: var(--health-text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
    .scan-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .scan-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}
