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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

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

.header h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header h1 i {
    color: #667eea;
}

.subtitle {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.input-group i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
}

.input-group input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

#checkBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    white-space: nowrap;
}

#checkBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#checkBtn:active {
    transform: translateY(0);
}

.search-hint {
    color: #718096;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.search-hint i {
    color: #667eea;
}

.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #667eea;
    font-size: 1.1rem;
}

.result {
    background: white;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
}

.result-header h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
}

.result-content {
    padding: 40px 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.initial-state {
    text-align: center;
    color: #a0aec0;
}

.initial-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.initial-state p {
    font-size: 1.2rem;
    max-width: 400px;
    line-height: 1.6;
}

.account-status {
    width: 100%;
    text-align: center;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-valid .status-icon {
    color: #38a169;
}

.status-expired .status-icon {
    color: #e53e3e;
}

.status-unknown .status-icon {
    color: #d69e2e;
}

.account-details {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid;
}

.status-valid .account-details {
    border-left-color: #38a169;
}

.status-expired .account-details {
    border-left-color: #e53e3e;
}

.status-unknown .account-details {
    border-left-color: #d69e2e;
}

.account-details h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-label {
    color: #718096;
    font-weight: 500;
}

.detail-value {
    color: #2d3748;
    font-weight: 600;
}

.days-count {
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.days-valid {
    background: #c6f6d5;
    color: #22543d;
}

.days-expired {
    background: #fed7d7;
    color: #742a2a;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-box {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.info-box h3 {
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.update-time {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 1.1rem;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.info-box ol {
    margin-left: 20px;
    color: #718096;
}

.info-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.instructions {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #f6ad55;
}

.instructions h3 {
    color: #744210;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    background: #744210;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step p {
    color: #744210;
    line-height: 1.6;
}

.step code {
    background: rgba(116, 66, 16, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
}

.version {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #a0aec0;
}

/* Responsywność */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input, #checkBtn {
        width: 100%;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Kolory statusów */
.valid-badge {
    background: #c6f6d5;
    color: #22543d;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.expired-badge {
    background: #fed7d7;
    color: #742a2a;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.notfound-badge {
    background: #feebc8;
    color: #744210;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
