/* Modern CSS Reset & Base Styles */
:root {
    /* Color Palette - Modern 2025 */
    --primary-900: #0a0a0f;
    --primary-800: #1a1a2e;
    --primary-700: #16213e;
    --primary-600: #1e3a8a;
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    --primary-300: #93c5fd;
    --primary-200: #dbeafe;
    --primary-100: #eff6ff;
    
    --secondary-900: #7c2d12;
    --secondary-800: #ea580c;
    --secondary-700: #f97316;
    --secondary-600: #fb923c;
    --secondary-500: #fdba74;
    --secondary-400: #fed7aa;
    
    --accent-cyan: #00f5ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-upload: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #ff4757 100%);
    --gradient-download: linear-gradient(135deg, #3742fa 0%, #00d2ff 50%, #2f3542 100%);
    --gradient-success: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --gradient-error: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Advanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(59, 130, 246, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(12px);
    
    /* Animation Variables */
    --animation-fast: 0.15s;
    --animation-normal: 0.3s;
    --animation-slow: 0.5s;
    --animation-ultra-slow: 1s;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* 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;
    --space-4xl: 6rem;
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--neutral-100);
    background: var(--primary-900);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Advanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--neutral-50);
}

p {
    line-height: 1.6;
    color: var(--neutral-200);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--animation-slow) ease-out, visibility var(--animation-slow) ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-100);
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loadingProgress 2s ease-in-out infinite;
}

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

@keyframes loadingProgress {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0%); }
    100% { width: 100%; transform: translateX(100%); }
}

/* Consent Modal */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: var(--space-md);
}

.consent-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp var(--animation-slow) ease-out;
}

.consent-header {
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.consent-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.consent-body {
    padding: var(--space-lg) var(--space-2xl);
}

.consent-section {
    margin-bottom: var(--space-lg);
}

.consent-section h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--neutral-100);
}

.consent-section ul {
    list-style: none;
    padding-left: var(--space-md);
}

.consent-section li {
    position: relative;
    margin-bottom: var(--space-sm);
    color: var(--neutral-300);
    line-height: 1.5;
}

.consent-section li::before {
    content: "•";
    color: var(--primary-400);
    font-weight: bold;
    position: absolute;
    left: -var(--space-md);
}

.consent-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.consent-warning h4 {
    color: var(--accent-red);
    margin-bottom: var(--space-sm);
}

.consent-actions {
    padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
    display: flex;
    gap: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

.consent-btn {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.consent-btn.decline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.3);
}

.consent-btn.accept {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-md) 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--neutral-200);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--animation-normal) ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.donate-nav {
    color: var(--accent-yellow);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Hero Section */
.hero-section {
    padding: calc(80px + var(--space-4xl)) var(--space-lg) var(--space-4xl);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--neutral-300);
    margin-top: var(--space-sm);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--neutral-300);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

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

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--neutral-100);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.float-element {
    position: absolute;
    font-size: 3rem;
    animation: float var(--animation-ultra-slow) ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-element:nth-child(1) {
    top: 20%;
    left: 20%;
}

.float-element:nth-child(2) {
    top: 20%;
    right: 20%;
}

.float-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
}

.float-element:nth-child(4) {
    bottom: 20%;
    right: 20%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

/* Main Application */
.app-container {
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    min-height: 600px;
}

.app-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: all var(--animation-normal) ease;
}

.app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.app-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.app-section:hover::before {
    opacity: 1;
}

.upload-section {
    border-color: rgba(255, 107, 107, 0.2);
}

.upload-section::before {
    background: var(--gradient-upload);
}

.download-section {
    border-color: rgba(59, 130, 246, 0.2);
}

.download-section::before {
    background: var(--gradient-download);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.section-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.upload-icon {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.download-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.section-title {
    flex: 1;
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.section-title p {
    color: var(--neutral-400);
    font-size: 0.95rem;
}

.section-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator.ready {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.processing {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator.locked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Upload Zone */
.upload-zone {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.05);
    transform: scale(1.02);
}

.upload-zone:hover::before,
.upload-zone.dragover::before {
    opacity: 1;
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-visual {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.upload-icon-large {
    font-size: 4rem;
    opacity: 0.8;
    z-index: 2;
    position: relative;
}

.upload-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

.ring:nth-child(1) {
    width: 80px;
    height: 80px;
    margin: -40px;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    width: 120px;
    height: 120px;
    margin: -60px;
    animation-delay: 0.5s;
}

.ring:nth-child(3) {
    width: 160px;
    height: 160px;
    margin: -80px;
    animation-delay: 1s;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.upload-zone h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--neutral-100);
}

.upload-specs {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 0.875rem;
    color: var(--neutral-400);
}

.file-input {
    display: none;
}

/* Progress System */
.progress-system {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.progress-label {
    font-weight: 600;
    color: var(--neutral-100);
}

.progress-percentage {
    font-weight: 700;
    color: var(--primary-400);
    font-family: 'JetBrains Mono', monospace;
}

.progress-bar {
    height: 8px;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-upload);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width var(--animation-normal) ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: var(--radius-full);
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    font-size: 0.875rem;
    color: var(--neutral-400);
    text-align: center;
}

/* Passcode System */
.passcode-system {
    margin-bottom: var(--space-xl);
}

.passcode-system h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--neutral-100);
}

.passcode-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.passcode-inputs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.passcode-digit {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--neutral-100);
    font-family: 'JetBrains Mono', monospace;
    transition: all var(--animation-normal) ease;
    outline: none;
}

.passcode-digit:focus {
    border-color: var(--primary-400);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.passcode-digit:invalid {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.passcode-hints {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.hint-item {
    font-size: 0.75rem;
    color: var(--neutral-400);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Security Status */
.security-status {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.security-label {
    font-size: 0.875rem;
    color: var(--neutral-400);
}

.security-value {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.security-value.active {
    color: var(--accent-green);
}

.security-value.warning {
    color: var(--accent-yellow);
}

.security-value.danger {
    color: var(--accent-red);
}

/* Action Buttons */
.action-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.action-btn {
    position: relative;
    padding: var(--space-lg) var(--space-2xl);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    overflow: hidden;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-transform: none;
    font-family: inherit;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--animation-slow) ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn.primary {
    background: var(--gradient-upload);
    color: white;
    border-color: transparent;
}

.action-btn.secondary {
    background: var(--gradient-download);
    color: white;
    border-color: transparent;
}

.btn-icon {
    font-size: 1.25rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    filter: blur(20px);
    transition: opacity var(--animation-normal) ease;
}

.action-btn:hover .btn-glow {
    opacity: 0.7;
}

/* Result Panels */
.result-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    display: none;
    animation: slideUp var(--animation-slow) ease-out;
}

.result-panel.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.result-panel.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.result-panel.show {
    display: block;
}

/* Timer Panel */
.timer-panel {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    color: var(--accent-yellow);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    display: none;
    animation: timerPulse 1s ease-in-out infinite;
}

.timer-panel.show {
    display: block;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Lockout Panel */
.lockout-panel {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    color: var(--accent-red);
    display: none;
    animation: slideUp var(--animation-slow) ease-out;
}

.lockout-panel.show {
    display: block;
}

/* Support Section */
.support-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-4xl) var(--space-lg);
    margin-top: var(--space-4xl);
}

.support-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.support-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-content p {
    font-size: 1.125rem;
    color: var(--neutral-300);
    margin-bottom: var(--space-2xl);
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: var(--primary-900);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--animation-slow) ease;
}

.support-btn:hover::before {
    left: 100%;
}

.support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.info-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--glass-blur);
}

.modal-container {
    background: var(--primary-800);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: modalSlideUp var(--animation-slow) ease-out;
}

.modal-header {
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    color: var(--neutral-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--animation-normal) ease;
}

.modal-close:hover {
    background: var(--neutral-700);
    color: var(--neutral-100);
}

.modal-content {
    padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.info-section {
    margin-bottom: var(--space-2xl);
}

.info-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--neutral-100);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.tech-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.tech-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tech-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--neutral-100);
}

.tech-content p {
    font-size: 0.875rem;
    color: var(--neutral-400);
    line-height: 1.4;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.privacy-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.privacy-column ul {
    list-style: none;
    padding: 0;
}

.privacy-column li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--neutral-300);
    font-size: 0.875rem;
}

.privacy-column li:last-child {
    border-bottom: none;
}

.legal-content {
    margin-top: var(--space-lg);
}

.legal-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.legal-warning h4 {
    color: var(--accent-red);
    margin-bottom: var(--space-sm);
}

.legal-terms ul {
    list-style: none;
    padding: 0;
}

.legal-terms li {
    padding: var(--space-sm) 0;
    color: var(--neutral-300);
    font-size: 0.875rem;
    position: relative;
    padding-left: var(--space-lg);
}

.legal-terms li::before {
    content: "•";
    color: var(--primary-400);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.spec-label {
    font-size: 0.875rem;
    color: var(--neutral-400);
}

.spec-value {
    font-weight: 700;
    color: var(--neutral-100);
    font-family: 'JetBrains Mono', monospace;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: var(--space-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    animation: slideInRight var(--animation-normal) ease-out;
    position: relative;
    overflow: hidden;
}

.notification.success {
    border-left: 4px solid var(--accent-green);
}

.notification.error {
    border-left: 4px solid var(--accent-red);
}

.notification.warning {
    border-left: 4px solid var(--accent-yellow);
}

.notification.info {
    border-left: 4px solid var(--primary-400);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-400);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 8s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

/* Animation Keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .nav-actions {
        gap: var(--space-xs);
    }
    
    .nav-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.875rem;
    }
    
    .hero-section {
        padding: calc(80px + var(--space-2xl)) var(--space-md) var(--space-2xl);
    }
    
    .hero-stats {
        justify-content: center;
        gap: var(--space-lg);
    }
    
    .app-container {
        padding: var(--space-xl) var(--space-md);
    }
    
    .app-section {
        padding: var(--space-xl);
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .upload-specs {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .passcode-inputs {
        gap: var(--space-sm);
    }
    
    .passcode-digit {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .security-status {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .modal-container {
        margin: var(--space-md);
        width: calc(100% - var(--space-2xl));
    }
    
    .modal-header {
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .modal-content {
        padding: var(--space-lg);
    }
    
    .tech-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .notification-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .upload-zone {
        padding: var(--space-xl) var(--space-md);
    }
    
    .passcode-digit {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .action-btn {
        min-width: 150px;
        padding: var(--space-md) var(--space-lg);
    }
    
    .consent-actions {
        flex-direction: column;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.08);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --neutral-300: #ffffff;
        --neutral-400: #cccccc;
    }
}

/* Print styles */
@media print {
    .bg-effects,
    .floating-elements,
    .upload-rings,
    .particle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .app-section {
        background: white;
        border: 2px solid black;
    }
}