* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 24px 32px;
    color: white;
}

.auto-generated {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.auto-generated svg {
    flex-shrink: 0;
}

.main-content {
    padding: 48px 32px;
    text-align: center;
}

.status-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.order-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

.order-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.order-number {
    font-size: 48px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-family: 'Courier New', monospace;
}

.order-details {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.status-ready {
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-ready::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.download-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn svg {
    transition: transform 0.3s ease;
}

.download-btn:hover svg {
    transform: translateY(2px);
}

.info-section {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.info-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.info-text svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer {
    background: #f9fafb;
    padding: 24px 32px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.auto-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.auto-badge svg {
    flex-shrink: 0;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.footer-copyright {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .container {
        border-radius: 0;
    }

    .header,
    .main-content,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .title {
        font-size: 28px;
    }

    .order-number {
        font-size: 36px;
    }

    .order-card {
        padding: 24px;
    }

    .download-btn {
        font-size: 16px;
        padding: 14px 24px;
    }
}
