/**
 * dtransfer.one - "Berlin Glass" Design System
 * Glassmorphic panels over German landmarks
 * With micro-animations and theme support
 */

/* ========================================
   Self-hosted Fonts (DSGVO compliant)
   ======================================== */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/outfit.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-mono-400.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/dm-mono-500.woff2') format('woff2');
}

/* ========================================
   CSS Custom Properties
   ======================================== */

:root {
    /* Dark Theme (Default) */
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 15, 15, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-blur: 24px;
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    --accent: #F97316;
    --accent-hover: #FB923C;
    --accent-glow: rgba(249, 115, 22, 0.4);
    --accent-soft: rgba(249, 115, 22, 0.15);

    --success: #22C55E;
    --success-glow: rgba(34, 197, 94, 0.4);

    --danger: #EF4444;
    --danger-soft: rgba(239, 68, 68, 0.15);

    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --divider: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'DM Mono', 'JetBrains Mono', monospace;

    /* 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;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;
}

/* Light Theme */
[data-theme="light"] {
    --bg-overlay: rgba(255, 255, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    --text-primary: #0F172A;
    --text-secondary: rgba(15, 23, 42, 0.7);
    --text-tertiary: rgba(15, 23, 42, 0.4);

    --accent: #EA580C;
    --accent-hover: #F97316;
    --accent-glow: rgba(234, 88, 12, 0.3);
    --accent-soft: rgba(234, 88, 12, 0.1);

    --success: #16A34A;
    --success-glow: rgba(22, 163, 74, 0.3);

    --danger: #DC2626;
    --danger-soft: rgba(220, 38, 38, 0.1);

    --surface: rgba(0, 0, 0, 0.03);
    --surface-hover: rgba(0, 0, 0, 0.06);
    --divider: rgba(0, 0, 0, 0.08);
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: #000;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Background Slideshow
   ======================================== */

.bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: bgCrossfade 32s infinite, kenBurns 32s infinite ease-out;
}

.bg-slide-1 {
    background-image: url('../media/latest/backgrounds/elbphilharmonie.png');
    animation-delay: 0s;
}

.bg-slide-2 {
    background-image: url('../media/latest/backgrounds/brandenburg.png');
    animation-delay: 8s;
}

.bg-slide-3 {
    background-image: url('../media/latest/backgrounds/neuschwanstein.png');
    animation-delay: 16s;
}

.bg-slide-4 {
    background-image: url('../media/latest/backgrounds/rhine-castle.png');
    animation-delay: 24s;
}

@keyframes bgCrossfade {
    0%, 20% { opacity: 1; }
    25%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(-1%, -1%); }
    100% { transform: scale(1) translate(0, 0); }
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-overlay);
    backdrop-filter: blur(2px);
    transition: background var(--duration-slow) var(--ease-out);
}

/* ========================================
   Layout
   ======================================== */

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn var(--duration-slower) var(--ease-out) forwards;
    animation-delay: 0.1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.app-header {
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: slideDown var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 0.2s;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.app-logo:hover {
    transform: scale(1.02);
}

.app-logo span {
    color: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all var(--duration-base) var(--ease-out);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(15deg);
    box-shadow: 0 0 20px var(--accent-glow);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: transform var(--duration-base) var(--ease-spring);
}

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: none; }

.app-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.app-footer {
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    opacity: 0;
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 0.5s;
}

/* ========================================
   Glass Panel
   ======================================== */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
}

/* ========================================
   Upload Container
   ======================================== */

.upload-container {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    animation: slideUp var(--duration-slower) var(--ease-out) forwards;
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Drop Zone
   ======================================== */

.dropzone {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    position: relative;
    border: 2px dashed transparent;
    border-radius: var(--radius-xl);
    transition: all var(--duration-base) var(--ease-out);
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--divider);
    transition: all var(--duration-base) var(--ease-out);
}

.dropzone:hover::before,
.dropzone.drag-over::before {
    border-color: var(--accent);
}

.dropzone:hover,
.dropzone.drag-over {
    background: var(--accent-soft);
    transform: scale(1.01);
}

.dropzone.drag-over {
    box-shadow: 0 0 40px var(--accent-glow);
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent);
    transition: all var(--duration-base) var(--ease-spring);
}

.dropzone:hover .dropzone-icon {
    transform: scale(1.1) translateY(-4px);
    background: var(--accent-soft);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.dropzone-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.dropzone-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dropzone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ========================================
   File Panel
   ======================================== */

.file-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--divider);
}

.file-panel-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.file-panel-count {
    color: var(--accent);
}

.file-panel-size {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.file-list {
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--divider);
    transition: background var(--duration-fast);
    animation: fileSlideIn var(--duration-base) var(--ease-out) forwards;
}

@keyframes fileSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.file-item:hover {
    background: var(--surface-hover);
}

.file-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.file-remove {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--duration-fast);
}

.file-remove:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

/* ========================================
   Options Bar
   ======================================== */

.options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--divider);
    background: var(--surface);
}

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

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color var(--duration-fast);
    user-select: none;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-spring);
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-box {
    border-color: var(--accent);
    background: var(--accent);
    transform: scale(1.05);
}

.checkbox-box::after {
    content: '✓';
    font-size: 0.6875rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--duration-fast) var(--ease-spring);
}

.checkbox-input:checked + .checkbox-box::after {
    opacity: 1;
    transform: scale(1);
}

/* Custom Select */
.select-wrapper {
    position: relative;
}

.select-input {
    appearance: none;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.select-input:hover,
.select-input:focus {
    border-color: var(--accent);
    outline: none;
}

.select-arrow {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-tertiary);
    font-size: 0.625rem;
    transition: transform var(--duration-fast);
}

.select-input:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Password Input */
.password-input {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    width: 120px;
    transition: all var(--duration-fast);
}

.password-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.password-input::placeholder {
    color: var(--text-tertiary);
}

/* ========================================
   Action Bar
   ======================================== */

.action-bar {
    padding: var(--space-lg);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--divider);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-tertiary);
}

.btn-ghost {
    background: none;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    padding: var(--space-sm) var(--space-md);
}

.btn-danger:hover {
    background: var(--danger-soft);
}

/* ========================================
   Progress State
   ======================================== */

.progress-panel {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.progress-percentage {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar-container {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width var(--duration-base) var(--ease-out);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

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

.progress-file {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: var(--space-xl);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Complete State
   ======================================== */

.complete-panel {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 40px var(--success-glow);
    animation: successPop var(--duration-slow) var(--ease-spring);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.complete-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.url-box {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.8125rem;
    word-break: break-all;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.url-box:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.complete-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.complete-actions .btn {
    flex: 1;
}

.complete-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--divider);
}

/* ========================================
   Error State
   ======================================== */

.error-panel {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: var(--danger-soft);
    border: 2px solid var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--danger);
    animation: errorShake var(--duration-slow) var(--ease-out);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.error-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ========================================
   Toast
   ======================================== */

.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + var(--space-xl)));
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    color: var(--accent);
    opacity: 0;
    transition: all var(--duration-base) var(--ease-spring);
    z-index: 1000;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   States
   ======================================== */

.state {
    display: none;
}

.state.active {
    display: block;
    animation: stateIn var(--duration-base) var(--ease-out);
}

@keyframes stateIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--divider);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========================================
   Selection
   ======================================== */

::selection {
    background: var(--accent);
    color: white;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
    .app-header {
        padding: var(--space-md);
    }

    .app-main {
        padding: var(--space-md);
    }

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

    .dropzone {
        padding: var(--space-2xl) var(--space-md);
    }

    .dropzone-title {
        font-size: 1.25rem;
    }

    .options-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .option-group {
        justify-content: space-between;
    }

    .password-input {
        width: 100%;
    }

    .complete-actions {
        flex-direction: column;
    }

    .complete-secondary {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .progress-percentage {
        font-size: 3.5rem;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */

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

    .bg-slide {
        animation: none;
        opacity: 0;
    }

    .bg-slide-1 {
        opacity: 1;
    }
}

/* ========================================
   Footer - Enhanced
   ======================================== */

.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 24px;
    width: auto;
}

[data-theme="light"] .footer-logo img {
    filter: invert(1);
}

.footer-copyright {
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.footer-divider {
    color: var(--border);
}

.footer-info {
    color: var(--text-dim);
}

/* ========================================
   Modal System
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .modal-backdrop {
    background: rgba(255, 255, 255, 0.7);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-content {
    position: relative;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: 1.5rem 2rem;
    padding-right: 4rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Legal content styling */
.legal-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease both;
}

.legal-section:nth-child(1) { animation-delay: 0.05s; }
.legal-section:nth-child(2) { animation-delay: 0.1s; }
.legal-section:nth-child(3) { animation-delay: 0.15s; }
.legal-section:nth-child(4) { animation-delay: 0.2s; }
.legal-section:nth-child(5) { animation-delay: 0.25s; }
.legal-section:nth-child(6) { animation-delay: 0.3s; }

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.75rem 0;
}

.legal-section h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 1.25rem 0 0.5rem 0;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 500;
}

.legal-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.legal-footer p {
    color: var(--text-dim);
    font-size: 0.8125rem;
}

/* ========================================
   Modal Responsive
   ======================================== */

@media (max-width: 640px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        max-width: 100%;
        max-height: 90vh;
        transform: translateY(100%);
    }

    .modal.active .modal-container {
        transform: translateY(0);
    }

    .modal-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.5rem;
        padding: 1.25rem 1.5rem;
        padding-right: 3.5rem;
    }

    .modal-body {
        padding: 1.25rem 1.5rem;
    }

    .modal-close {
        top: 0.875rem;
        right: 0.875rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }

    .app-footer {
        padding: 1.25rem 1rem;
    }
}

/* ========================================
   Download Page - f.php
   ======================================== */

.download-panel {
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 2rem 2.5rem;
}

.download-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.download-subtitle {
    color: var(--text-secondary);
    margin: -1rem 0 1.5rem 0;
    font-size: 0.9375rem;
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    animation: slideUp 0.4s ease both;
}

.file-lock {
    font-size: 1.25rem;
    opacity: 0.6;
}

.file-item:hover {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
}

.file-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.file-download {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-download:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.05);
}

.file-download svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Download Actions */
.download-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.download-terms {
    font-size: 0.8125rem;
    color: var(--text-dim);
    line-height: 1.5;
    word-wrap: break-word;
    padding: 0 0.5rem;
}

.download-terms button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download-terms button:hover {
    color: var(--accent-hover);
}

/* ========================================
   Password Form
   ======================================== */

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.password-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: left;
}

.password-input-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.password-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.password-input::placeholder {
    color: var(--text-dim);
}

.password-error {
    font-size: 0.8125rem;
    color: var(--danger);
    text-align: left;
    margin-top: 0.25rem;
}

/* ========================================
   Error Panel
   ======================================== */

.error-panel {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.error-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--danger);
    margin: 0 0 0.75rem 0;
}

.error-message {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.error-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: -0.5rem 0 1.5rem 0;
}

/* ========================================
   Success Panel (Delete Confirmation)
   ======================================== */

.success-panel {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--success);
    border-radius: var(--radius-full);
    font-size: 2.5rem;
    color: white;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success);
    margin: 0 0 0.75rem 0;
}

.success-message {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.countdown-text {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.875rem;
}

.countdown-number {
    color: var(--accent);
    font-weight: 600;
}

/* ========================================
   Loading Spinner
   ======================================== */

.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin: 2rem auto;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   One-time Warning
   ======================================== */

.onetime-warning {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.875rem;
    text-align: center;
}

/* ========================================
   Download Page Responsive
   ======================================== */

@media (max-width: 640px) {
    .download-panel {
        padding: 1.5rem;
    }

    .download-title {
        font-size: 1.5rem;
    }

    .file-item {
        padding: 0.75rem;
    }

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

    .file-download {
        width: 2.25rem;
        height: 2.25rem;
    }

    .error-panel,
    .success-panel {
        padding: 2rem 1.5rem;
    }

    .error-icon {
        font-size: 3rem;
    }

    .success-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
}

/* ========================================
   Email Form Styles
   ======================================== */

/* Email modal specific width */
#modal-email .modal-container {
    max-width: 480px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    background: rgba(255, 255, 255, 0.8);
}

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

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.email-recipients {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.email-recipient-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.email-recipient-row .form-input {
    flex: 1;
}

.btn-remove-email {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--danger);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-email:hover {
    background: var(--danger);
    color: white;
}

#btn-add-email {
    align-self: flex-start;
    margin-top: 0.25rem;
    color: var(--primary);
    border-color: transparent;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

#btn-add-email:hover {
    color: var(--primary-hover);
    background: transparent;
    text-decoration: underline;
}

.form-error {
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 0.875rem;
    text-align: center;
}

[data-theme="light"] .form-error {
    color: var(--danger);
}

.form-success {
    padding: 0.875rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: #86efac;
    font-size: 0.875rem;
    text-align: center;
}

[data-theme="light"] .form-success {
    color: var(--success);
}

.form-actions {
    padding-top: 0.5rem;
}

.form-actions .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Complete actions with email button */
.complete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.complete-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

@media (max-width: 640px) {
    .complete-actions {
        flex-direction: column;
    }

    .complete-actions .btn {
        width: 100%;
    }

    #modal-email .modal-container {
        max-width: 100%;
    }
}

/* ========================================
   Header with Info Button
   ======================================== */

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.info-button:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.info-button svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   About Modal
   ======================================== */

.about-modal {
    max-width: 420px;
    text-align: center;
}

.about-header {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    color: white;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
    50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 80px rgba(249, 115, 22, 0.2); }
}

.about-icon svg {
    width: 40px;
    height: 40px;
}

.about-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.about-title span {
    color: var(--accent);
}

.about-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.about-features {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    animation: fadeSlideIn 0.4s var(--ease-out) both;
}

.about-feature:nth-child(1) { animation-delay: 0.05s; }
.about-feature:nth-child(2) { animation-delay: 0.1s; }
.about-feature:nth-child(3) { animation-delay: 0.15s; }
.about-feature:nth-child(4) { animation-delay: 0.2s; }
.about-feature:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-feature:hover {
    background: var(--surface-hover);
}

.about-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-soft);
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 16px;
    height: 16px;
}

.about-feature-text {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-primary);
    text-align: left;
}

.about-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.about-company {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.about-locations {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0 0 1rem;
}

.btn-tour {
    margin-top: 0.5rem;
}

/* ========================================
   Onboarding Overlay
   ======================================== */

.onboarding {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.onboarding.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.onboarding-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.onboarding-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onboarding-step {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s var(--ease-out);
    pointer-events: none;
}

.onboarding-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.onboarding-step.exit {
    transform: translateX(-50px);
}

.onboarding-panel {
    padding: 2rem;
}

/* ========================================
   Onboarding Step 1: Terminal
   ======================================== */

.terminal-window {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.terminal-dot:nth-child(1) { background: #FF5F56; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #27C93F; }

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 500;
}

.terminal-text {
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid var(--accent);
    animation: typeText 1.5s steps(40) forwards, blinkCursor 0.8s step-end infinite;
}

@keyframes typeText {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

.terminal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.terminal-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.terminal-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.terminal-progress-text {
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

.terminal-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s var(--ease-out);
}

.terminal-check.visible {
    opacity: 1;
    transform: translateY(0);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid var(--text-tertiary);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s var(--ease-spring);
}

.terminal-check.visible .check-icon {
    background: var(--success);
    border-color: var(--success);
}

.terminal-check.visible .check-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.check-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.terminal-check.visible .check-text {
    color: var(--text-primary);
}

/* ========================================
   Onboarding Step 2: Lock Animation
   ======================================== */

.onboarding-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lock-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: var(--surface);
    border-radius: 50%;
    position: relative;
}

.lock-icon {
    position: relative;
    color: var(--accent);
}

.lock-icon .lock-open {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: all 0.5s var(--ease-out);
}

.lock-icon .lock-closed {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s var(--ease-spring);
}

.lock-animation.locked .lock-open {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.lock-animation.locked .lock-closed {
    opacity: 1;
    transform: scale(1);
}

.lock-animation.locked {
    box-shadow: 0 0 60px var(--accent-glow);
}

.onboarding-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.onboarding-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

/* ========================================
   Onboarding Step 3: Server Animation
   ======================================== */

.server-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.server-rack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.server-unit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    min-width: 160px;
}

.server-led {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: ledBlink 2s ease-in-out infinite;
}

.server-unit:nth-child(2) .server-led {
    animation-delay: 0.3s;
}

.server-unit:nth-child(3) .server-led {
    animation-delay: 0.6s;
}

@keyframes ledBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success-glow); }
    50% { opacity: 0.4; box-shadow: none; }
}

.server-slots {
    flex: 1;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--text-tertiary) 0px,
        var(--text-tertiary) 3px,
        transparent 3px,
        transparent 6px
    );
    border-radius: 2px;
}

.server-flag {
    display: flex;
    width: 60px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flag-stripe {
    flex: 1;
    height: 100%;
}

.flag-black { background: #000000; }
.flag-red { background: #DD0000; }
.flag-gold { background: #FFCC00; }

/* ========================================
   Onboarding Step 4: Ready Features
   ======================================== */

.ready-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 60px var(--success-glow);
    animation: readyPop 0.6s var(--ease-spring) both;
}

@keyframes readyPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ready-check {
    color: white;
}

.ready-check svg {
    animation: checkDraw 0.5s ease-out 0.3s both;
}

@keyframes checkDraw {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.ready-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

.ready-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    animation: featureFade 0.4s var(--ease-out) forwards;
}

.ready-feature:nth-child(1) { animation-delay: 0.4s; }
.ready-feature:nth-child(2) { animation-delay: 0.5s; }
.ready-feature:nth-child(3) { animation-delay: 0.6s; }
.ready-feature:nth-child(4) { animation-delay: 0.7s; }

@keyframes featureFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ready-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-soft);
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
}

.ready-feature-icon svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Onboarding Navigation
   ======================================== */

.onboarding-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.onboarding-dots {
    display: flex;
    gap: 0.5rem;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: var(--text-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.onboarding-dot:hover {
    background: var(--text-secondary);
}

.onboarding-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.onboarding-dot.completed {
    background: var(--success);
}

.onboarding-skip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--duration-fast) ease;
}

.onboarding-skip:hover {
    color: var(--text-secondary);
}

.onboarding-next,
.onboarding-start {
    min-width: 140px;
}

/* ========================================
   Responsive Onboarding
   ======================================== */

@media (max-width: 480px) {
    .onboarding-panel {
        padding: 1.5rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .onboarding-title {
        font-size: 1.25rem;
    }

    .onboarding-text {
        font-size: 0.8125rem;
    }

    .lock-animation {
        width: 100px;
        height: 100px;
    }

    .lock-icon svg {
        width: 50px;
        height: 50px;
    }

    .ready-animation {
        width: 80px;
        height: 80px;
    }

    .ready-check svg {
        width: 48px;
        height: 48px;
    }

    .about-modal {
        max-width: 100%;
    }

    .about-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .about-features {
        padding: 1rem 1.5rem;
    }

    .about-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
}
