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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: -0.03em;
}

header p {
    font-size: 1.25rem;
    color: #a1a1a6;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-container {
    background: #1c1c1e;
    border: 1px solid #38383a;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.stores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.store-section {
    padding: 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.store-section h2 {
    margin-bottom: 28px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.input-group {
    margin-bottom: 28px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9375rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #38383a;
    border-radius: 8px;
    font-size: 16px;
    background: #2c2c2e;
    color: #ffffff;
    transition: all 0.2s ease;
}

.input-group input::placeholder {
    color: #8e8e93;
}

.input-group input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.input-group small {
    display: block;
    margin-top: 6px;
    color: #8e8e93;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.transfer-options {
    margin: 48px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.transfer-options h2 {
    margin-bottom: 32px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 20px;
    border: 1px solid #38383a;
    border-radius: 12px;
    background: #2c2c2e;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.checkbox-item:hover {
    border-color: #48484a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.checkbox-item:focus-within {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.checkbox-item input:checked + .checkmark {
    background: linear-gradient(135deg, #007AFF 0%, #005FCC 100%);
    border-color: #007AFF;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.checkbox-item input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-content {
    flex: 1;
}

.checkbox-content strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 600;
}

.checkbox-content small {
    color: #a1a1a6;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.security-notice {
    background: rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.permissions-notice {
    background: rgba(52, 199, 89, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 1s both;
}

.permissions-notice h3 {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.0625rem;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.permissions-notice p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.transfer-btn {
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, #007AFF 0%, #005FCC 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3),
                0 4px 12px rgba(0, 122, 255, 0.2);
    animation: fadeInUp 1s ease-out 1.2s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.transfer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.transfer-btn:focus {
    outline: none;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.4),
                0 4px 12px rgba(0, 122, 255, 0.3),
                0 0 0 3px rgba(255, 255, 255, 0.3);
}

.transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4),
                0 8px 20px rgba(0, 122, 255, 0.3);
}

.transfer-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.transfer-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-section, .results-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 10px 20px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.progress-section::before, .results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
}

.progress-section h2, .results-section h2 {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007AFF 0%, #00C7FF 100%);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
    position: relative;
}

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

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

#progressText {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.result-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

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

.result-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.status-created {
    background: rgba(52, 199, 89, 0.8);
    color: #ffffff;
    border: 1px solid rgba(52, 199, 89, 0.9);
}

.status-skipped {
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.status-error {
    background: rgba(255, 59, 48, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 59, 48, 0.9);
}

.summary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.summary-item {
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out;
}

.summary-item .number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Additional animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 32px 16px;
    }
    
    header {
        margin-bottom: 48px;
    }
    
    header h1 {
        font-size: 2.75rem;
    }
    
    header p {
        font-size: 1.1875rem;
    }
    
    .form-container, .progress-section, .results-section {
        padding: 32px 24px;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .transfer-btn {
        padding: 18px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.25rem;
    }
    
    header p {
        font-size: 1.0625rem;
    }
    
    .form-container, .progress-section, .results-section {
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    
    .checkbox-item {
        padding: 20px;
    }
    
    .summary-item .number {
        font-size: 2.5rem;
    }
}