/* ============================================
   HEIC Converter - Modern Styles
   Color Scheme: White, Black, #02c39a
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #02c39a;
    --primary-hover: #01a883;
    --primary-light: rgba(2, 195, 154, 0.1);
    --primary-glow: rgba(2, 195, 154, 0.4);

    --white: #ffffff;
    --black: #000000;

    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f5;

    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-tertiary: #a0aec0;

    --border-color: #e2e8f0;
    --border-light: #f0f0f0;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;

    --border-color: #475569;
    --border-light: #334155;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
}

@media (min-width: 769px) {
    .app-container {
        padding-bottom: 0;
    }
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.header {
    background-color: var(--black);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    padding: 5px;
}

.logo-wrapper a {
    display: block;
}

.logo {
    height: 36px;
    width: auto;
}

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

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }

body.dark-mode .theme-toggle .sun-icon { display: none; }
body.dark-mode .theme-toggle .moon-icon { display: block; }

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        gap: 30px;
    }
}

.nav-link {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #16213e 100%);
    color: var(--white);
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(2,195,154,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(2,195,154,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2,195,154,0.15);
    border: 1px solid rgba(2,195,154,0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #00e5b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(2,195,154,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero-stats .stat span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

/* Lifetime Statistics */
.lifetime-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.lifetime-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lifetime-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.lifetime-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lifetime-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
    .lifetime-stats {
        gap: 16px;
        padding: 12px 16px;
    }

    .lifetime-value {
        font-size: 20px;
    }

    .lifetime-label {
        font-size: 10px;
    }
}


/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

/* ============================================
   Converter Card
   ============================================ */
.converter-card {
    margin-bottom: 60px;
    overflow: hidden;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background: var(--bg-tertiary);
    padding: 8px;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.tab-btn.active {
    background: var(--bg-secondary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

@media (max-width: 600px) {
    .tab-content {
        padding: 20px;
    }
}

/* ============================================
   Upload Area
   ============================================ */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: var(--transition);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-content {
    position: relative;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon-inner {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(2,195,154,0.2) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.upload-area:hover .upload-icon-inner {
    transform: translateY(-5px);
}

.upload-area h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.upload-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--white);
}

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

.btn-glow {
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Options Panel
   ============================================ */
.options-panel {
    margin-top: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.options-header:hover {
    background: rgba(0,0,0,0.02);
}

body.dark-mode .options-header:hover {
    background: rgba(255,255,255,0.02);
}

.options-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.options-toggle {
    color: var(--text-tertiary);
    transition: var(--transition);
}

.options-panel.collapsed .options-toggle {
    transform: rotate(-90deg);
}

.options-panel.collapsed .options-body {
    display: none;
}

.options-body {
    padding: 0 20px 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-badge {
    background: var(--primary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

/* Format Selector */
.format-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.format-btn:hover {
    border-color: var(--primary);
}

.format-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.format-icon {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.format-btn.active .format-icon {
    color: var(--primary);
}

.format-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Quality Slider */
.quality-slider-wrapper {
    padding-top: 8px;
}

.quality-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.quality-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Options Extras */
.options-extras {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================
   Resize Options
   ============================================ */
.resize-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.resize-settings {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.resize-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.resize-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.resize-mode-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.resize-mode-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.resize-mode-btn svg {
    flex-shrink: 0;
}

.resize-mode-content {
    animation: fadeIn 0.2s ease;
}

.resize-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.resize-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resize-input-group.full-width {
    grid-column: 1 / -1;
}

.resize-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-with-unit,
.input-with-select {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.input-with-unit:focus-within,
.input-with-select:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-unit input,
.input-with-select input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-width: 0;
}

.input-with-unit input:focus,
.input-with-select input:focus {
    outline: none;
}

.input-with-unit .unit {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-left: 1px solid var(--border-color);
}

.input-with-select select {
    padding: 10px 12px;
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.input-with-select select:focus {
    outline: none;
}

.resize-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .resize-mode-selector {
        grid-template-columns: 1fr;
    }

    .resize-inputs {
        grid-template-columns: 1fr;
    }
}

/* Custom Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: var(--transition);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   File List
   ============================================ */
.file-list-container {
    margin-top: 24px;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.file-list-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.file-count-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.size-estimate-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.size-estimate-summary .estimate-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.size-estimate-summary .estimate-values {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.size-estimate-summary .estimate-values svg {
    color: var(--primary);
}

.size-estimate-summary #totalOriginalSize {
    color: var(--text-secondary);
}

.size-estimate-summary #totalEstimatedSize {
    color: var(--primary);
}

.file-list {
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

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

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.file-size {
    font-size: 13px;
    color: var(--text-tertiary);
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.file-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   Progress Section
   ============================================ */
.progress-section {
    padding: 48px 20px;
    text-align: center;
}

.progress-visual {
    margin-bottom: 24px;
}

.progress-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    position: relative;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle .progress-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 10;
}

.progress-circle .progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-circle .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.progress-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.progress-info p {
    color: var(--text-secondary);
    font-size: 15px;
}

.progress-stats-line {
    margin-top: 8px;
    font-size: 13px !important;
    color: var(--text-tertiary) !important;
}

/* Progress Header Layout */
.progress-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .progress-header-info {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }

    .progress-header-info .progress-visual {
        margin-bottom: 0;
    }

    .progress-header-info .progress-info {
        text-align: left;
    }
}

/* Per-file Progress List */
.per-file-progress {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 8px;
}

.file-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}

.file-progress-item:last-child {
    margin-bottom: 0;
}

.file-progress-item.completed {
    opacity: 0.7;
}

.file-progress-item.processing {
    border-left: 3px solid var(--primary);
}

.file-progress-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-progress-icon.pending {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.file-progress-icon.processing {
    background: var(--primary-light);
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

.file-progress-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.file-progress-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

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

.file-progress-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.file-progress-bar-wrapper {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.file-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00e5b0);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.file-progress-status {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.file-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

/* ============================================
   Results Section
   ============================================ */
.results-section {
    animation: fadeIn 0.4s ease;
}

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

.results-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(2,195,154,0.05) 100%);
    border-radius: var(--radius-lg);
}

@media (min-width: 600px) {
    .results-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.results-success {
    display: flex;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.success-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.success-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.results-stats {
    display: flex;
    gap: 24px;
}

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

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.results-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.result-item:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.result-preview {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

.result-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.result-actions {
    flex-shrink: 0;
}

.result-download {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.result-download:hover {
    background: var(--primary-hover);
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 500px) {
    .results-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   History Tab
   ============================================ */
.history-container {
    min-height: 200px;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    margin-bottom: 20px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.history-empty h4 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.history-empty p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.history-item:hover {
    background: var(--bg-secondary);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.history-date {
    font-size: 13px;
    color: var(--text-tertiary);
}

.history-size {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.history-note {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    margin-bottom: 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary-glow);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
    margin-bottom: 60px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 900px) {
    .steps-container {
        flex-direction: row;
        justify-content: center;
    }
}

.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.step-icon {
    margin-top: 16px;
    color: var(--text-tertiary);
}

.step-connector {
    color: var(--text-tertiary);
    transform: rotate(90deg);
}

@media (min-width: 900px) {
    .step-connector {
        transform: rotate(0);
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    margin-bottom: 60px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 32px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-brand p a {
    color: var(--primary);
    transition: var(--transition);
}

.footer-brand p a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item:active {
    background: var(--bg-tertiary);
}

/* ============================================
   Modals
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
    margin: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

@media (max-width: 480px) {
    .modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .modal-content {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
        max-height: none;
    }
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 480px) {
    .modal-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .modal-icon svg {
        width: 28px;
        height: 28px;
    }
}

.modal-icon.success {
    background: var(--primary-light);
    color: var(--primary);
}

.modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-content > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .modal-content > p {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* Email Signup */
.email-signup {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .email-signup {
        padding: 16px;
        margin-bottom: 12px;
    }
}

.email-signup h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.email-signup > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 400px) {
    .email-form {
        flex-direction: row;
    }
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-group svg {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.email-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

/* Preview Modal */
.preview-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 16px;
}

.preview-image-container {
    max-height: 70vh;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: var(--black);
}

.preview-image-container img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

#previewFileName {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
    max-width: 340px;
}

.toast.success {
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast-icon {
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--primary);
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

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

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

/* ============================================
   Privacy Policy Page
   ============================================ */
.policy-hero {
    background: linear-gradient(135deg, var(--black) 0%, #16213e 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.policy-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.policy-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.policy-content {
    padding: 48px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

@media (max-width: 600px) {
    .policy-content {
        padding: 28px;
    }
}

.policy-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-primary);
}

.policy-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.policy-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}

.policy-content ul {
    color: var(--text-secondary);
    margin: 16px 0;
    padding-left: 24px;
}

.policy-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 15px;
}

.policy-highlight {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 28px 0;
}

.policy-highlight p {
    color: var(--text-primary);
    margin: 0;
}

.contact-info {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--primary);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 4px;
}

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

/* ============================================
   Selection
   ============================================ */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Install App Prompt
   ============================================ */
.install-prompt {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    display: none;
    animation: slideUp 0.3s ease;
}

@media (min-width: 769px) {
    .install-prompt {
        bottom: 24px;
        left: auto;
        right: 24px;
        max-width: 380px;
    }
}

.install-prompt.show {
    display: block;
}

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

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.install-prompt-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.install-prompt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-prompt-text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.install-prompt-text span {
    font-size: 13px;
    color: var(--text-secondary);
}

.install-prompt-actions {
    display: flex;
    gap: 10px;
}

.install-prompt-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.install-prompt-btn.install-btn {
    background: var(--primary);
    color: var(--white);
}

.install-prompt-btn.install-btn:hover {
    background: var(--primary-hover);
}

.install-prompt-btn.dismiss-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.install-prompt-btn.dismiss-btn:hover {
    background: var(--border-color);
}

/* iOS Install Modal */
.ios-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.ios-install-modal.show {
    display: flex;
}

.ios-install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ios-install-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

.ios-install-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.ios-install-close:hover {
    background: var(--border-color);
}

.ios-install-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.ios-install-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ios-install-content > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.ios-install-steps {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.ios-install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.ios-install-steps li:last-child {
    border-bottom: none;
}

.ios-install-steps .step-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.ios-install-steps li > span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ios-install-steps li strong {
    color: var(--text-primary);
}

/* Header Install Button */
.header-install-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.header-install-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.header-install-btn.show {
    display: flex;
}

@media (max-width: 600px) {
    .header-install-btn span {
        display: none;
    }

    .header-install-btn {
        padding: 8px 12px;
    }
}
